mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-25 08:19:02 +00:00
cl20: Khronos Bug 16236: Support CL_DEPTH images in the image helpers when using the border colour (#149)
Signed-off-by: Kevin Petit <kevin.petit@arm.com>
This commit is contained in:
@@ -1397,16 +1397,9 @@ void read_image_pixel_float( void *imageData, image_descriptor *imageInfo,
|
|||||||
|| ( depth_lod != 0 && z >= (int)depth_lod )
|
|| ( depth_lod != 0 && z >= (int)depth_lod )
|
||||||
|| ( imageInfo->arraySize != 0 && z >= (int)imageInfo->arraySize ) )
|
|| ( imageInfo->arraySize != 0 && z >= (int)imageInfo->arraySize ) )
|
||||||
{
|
{
|
||||||
// Border color
|
|
||||||
if (imageInfo->format->image_channel_order == CL_DEPTH)
|
|
||||||
{
|
|
||||||
outData[ 0 ] = 0;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
outData[ 0 ] = outData[ 1 ] = outData[ 2 ] = outData[ 3 ] = 0;
|
outData[ 0 ] = outData[ 1 ] = outData[ 2 ] = outData[ 3 ] = 0;
|
||||||
if (!has_alpha(imageInfo->format))
|
if (!has_alpha(imageInfo->format))
|
||||||
outData[3] = 1;
|
outData[3] = 1;
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user