Skip to content

Commit

Permalink
[SYCL][Bindless] Fix Grad flag (#12729)
Browse files Browse the repository at this point in the history
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 <victor@codeplay.com>
  • Loading branch information
Naghasan authored Feb 19, 2024
1 parent 54a67eb commit f614781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sycl/include/sycl/detail/image_ocl_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ static RetType __invoke__ImageReadGrad(SmpImageT SmpImg, CoordT Coords,
auto TmpGraddX = sycl::detail::convertToOpenCLType(Dx);
auto TmpGraddY = sycl::detail::convertToOpenCLType(Dy);

enum ImageOperands { Grad = 0x3 };
enum ImageOperands { Grad = 0x4 };

// OpImageSampleExplicitLod
// Its components must be the same as Sampled Type of the underlying
Expand Down

0 comments on commit f614781

Please sign in to comment.