Skip to content

Commit 806d59e

Browse files
authored
[libclc] Fix unguarded use of image types (#136871)
Commit 8292e05 which switched the OpenCL C version to 3.0 exposed this issue, which wasn't caught in pre-commit CI.
1 parent 8502ba1 commit 806d59e

File tree

1 file changed

+4
-0
lines changed
  • libclc/generic/include/clc/image

1 file changed

+4
-0
lines changed

libclc/generic/include/clc/image/image.h

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9+
#if defined(__opencl_c_images)
10+
911
_CLC_OVERLOAD _CLC_DECL int get_image_width (image2d_t image);
1012
_CLC_OVERLOAD _CLC_DECL int get_image_width (image3d_t image);
1113

@@ -42,3 +44,5 @@ _CLC_OVERLOAD _CLC_DECL uint4
4244
read_imageui(image2d_t image, sampler_t sampler, int2 coord);
4345
_CLC_OVERLOAD _CLC_DECL uint4
4446
read_imageui(image2d_t image, sampler_t sampler, float2 coord);
47+
48+
#endif

0 commit comments

Comments
 (0)