Skip to content

Commit f614781

Browse files
authored
[SYCL][Bindless] Fix Grad flag (#12729)
Grad flag was set to 0x3 (meaning Lod + Bias) instead of 0x4. See https://registry.khronos.org/SPIR-V/specs/unified1/SPIRV.html#Image_Operands Signed-off-by: Victor Lomuller <[email protected]>
1 parent 54a67eb commit f614781

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/include/sycl/detail/image_ocl_types.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ static RetType __invoke__ImageReadGrad(SmpImageT SmpImg, CoordT Coords,
110110
auto TmpGraddX = sycl::detail::convertToOpenCLType(Dx);
111111
auto TmpGraddY = sycl::detail::convertToOpenCLType(Dy);
112112

113-
enum ImageOperands { Grad = 0x3 };
113+
enum ImageOperands { Grad = 0x4 };
114114

115115
// OpImageSampleExplicitLod
116116
// Its components must be the same as Sampled Type of the underlying

0 commit comments

Comments
 (0)