Skip to content

Commit 078e655

Browse files
JablonskiMateuszsys_zuul
authored and
sys_zuul
committed
Allow to disable cl_khr_3d_image_writes
Change-Id: Idfea387ab109a767525f5c7da531760ead9c8b44
1 parent 8a748ce commit 078e655

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

IGC/BiFModule/Languages/OpenCL/opencl_cth_released.h

+3-6
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,6 @@ typedef size_t uintptr_t;
4040
#define cl_khr_byte_addressable_store
4141
#endif
4242

43-
// All of our devices support cl_khr_3d_image_writes, so #define it
44-
// if it isn't already #defined.
45-
#if !defined(cl_khr_3d_image_writes)
46-
#define cl_khr_3d_image_writes
47-
#endif
48-
4943
#ifdef cl_khr_3d_image_writes
5044
#pragma OPENCL EXTENSION cl_khr_3d_image_writes : enable
5145
#endif
@@ -962,10 +956,13 @@ __CLFN_DECL_F_VSTOREN_HALF(vstorea_half, double, half)
962956
* values that are not in the range (0 ... image width -
963957
* 1, 0 ... image height - 1), respectively, is undefined.
964958
*/
959+
960+
#ifdef cl_khr_3d_image_writes
965961
void __attribute__((overloadable)) write_imagef(write_only image3d_t image, int4 coord, float4 color);
966962
void __attribute__((overloadable)) write_imagei(write_only image3d_t image, int4 coord, int4 color);
967963
void __attribute__((overloadable)) write_imageui(write_only image3d_t image, int4 coord, uint4 color);
968964
#endif
965+
#endif
969966

970967
#if (__OPENCL_C_VERSION__ >= CL_VERSION_1_2)
971968

0 commit comments

Comments
 (0)