From d872d255f66516ea8bb7a34ee5d2571f6207e9f2 Mon Sep 17 00:00:00 2001 From: Grzegorz Wawiorko Date: Fri, 6 Mar 2020 19:25:49 +0100 Subject: [PATCH] Add pragma cl_khr_3d_image_writes (#658) --- test_conformance/gl/test_images_write_common.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test_conformance/gl/test_images_write_common.cpp b/test_conformance/gl/test_images_write_common.cpp index 1345f46f..3427e247 100644 --- a/test_conformance/gl/test_images_write_common.cpp +++ b/test_conformance/gl/test_images_write_common.cpp @@ -98,6 +98,7 @@ static const char *kernelpattern_image_write_1Darray_half = "}\n"; static const char *kernelpattern_image_write_3D = +"#pragma OPENCL EXTENSION cl_khr_3d_image_writes : enable\n" "__kernel void sample_test( __global %s4 *source, write_only image3d_t dest )\n" "{\n" " int tidX = get_global_id(0);\n" @@ -111,6 +112,7 @@ static const char *kernelpattern_image_write_3D = "}\n"; static const char *kernelpattern_image_write_3D_half = +"#pragma OPENCL EXTENSION cl_khr_3d_image_writes : enable\n" "__kernel void sample_test( __global half4 *source, write_only image3d_t dest )\n" "{\n" " int tidX = get_global_id(0);\n"