From 8d209840be9f90afc73a8c0cfcb0a19f20bacd7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Petit?= Date: Wed, 10 Apr 2019 13:25:13 +0100 Subject: [PATCH] cl20: Khronos Bug 16236: Support CL_DEPTH images in the image helpers when using the border colour (#149) Signed-off-by: Kevin Petit --- test_common/harness/imageHelpers.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/test_common/harness/imageHelpers.cpp b/test_common/harness/imageHelpers.cpp index a0cce7d4..614705ea 100644 --- a/test_common/harness/imageHelpers.cpp +++ b/test_common/harness/imageHelpers.cpp @@ -1397,16 +1397,9 @@ void read_image_pixel_float( void *imageData, image_descriptor *imageInfo, || ( depth_lod != 0 && z >= (int)depth_lod ) || ( 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; if (!has_alpha(imageInfo->format)) outData[3] = 1; - } return; }