[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.
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#if defined(__opencl_c_images)
|
||||
|
||||
_CLC_OVERLOAD _CLC_DECL int get_image_width (image2d_t image);
|
||||
_CLC_OVERLOAD _CLC_DECL int get_image_width (image3d_t image);
|
||||
|
||||
@@ -42,3 +44,5 @@ _CLC_OVERLOAD _CLC_DECL uint4
|
||||
read_imageui(image2d_t image, sampler_t sampler, int2 coord);
|
||||
_CLC_OVERLOAD _CLC_DECL uint4
|
||||
read_imageui(image2d_t image, sampler_t sampler, float2 coord);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user