[OpenCL] opencl-c.h: Fix incorrect get_image_width guard
authorSven van Haastregt <sven.vanhaastregt@arm.com>
Fri, 25 Feb 2022 11:05:56 +0000 (11:05 +0000)
committerSven van Haastregt <sven.vanhaastregt@arm.com>
Fri, 25 Feb 2022 11:05:56 +0000 (11:05 +0000)
`cl_khr_3d_image_writes` should not guard `read_only image3d_t`.

clang/lib/Headers/opencl-c.h

index 0adf07c..9b8461b 100644 (file)
@@ -15715,9 +15715,7 @@ void __ovld write_imageh(read_write image1d_buffer_t, int, half4);
 int __ovld __cnfn get_image_width(read_only image1d_t);
 int __ovld __cnfn get_image_width(read_only image1d_buffer_t);
 int __ovld __cnfn get_image_width(read_only image2d_t);
-#ifdef cl_khr_3d_image_writes
 int __ovld __cnfn get_image_width(read_only image3d_t);
-#endif
 int __ovld __cnfn get_image_width(read_only image1d_array_t);
 int __ovld __cnfn get_image_width(read_only image2d_array_t);
 #ifdef cl_khr_depth_images