HLSL: use LOD form of ImageQuerySize when needed.
The non-LOD form of image size query is prohibited in certain cases: see the OpImageQuerySize and OpImageQuerySizeLod sections of the SPIR-V spec for details. Sometimes we were generating the non-LOD form when we should have been using the LOD form. Sometimes the LOD form is required even if the underlying HLSL query did not supply a MIP level itself, in which case level 0 is now queried.
Showing
- Test/baseResults/hlsl.getdimensions.dx10.frag.out 890 additions, 806 deletionsTest/baseResults/hlsl.getdimensions.dx10.frag.out
- Test/baseResults/hlsl.getdimensions.dx10.vert.out 29 additions, 25 deletionsTest/baseResults/hlsl.getdimensions.dx10.vert.out
- Test/baseResults/hlsl.intrinsics.promote.frag.out 5 additions, 1 deletionTest/baseResults/hlsl.intrinsics.promote.frag.out
- Test/baseResults/hlsl.intrinsics.promote.outputs.frag.out 59 additions, 55 deletionsTest/baseResults/hlsl.intrinsics.promote.outputs.frag.out
- hlsl/hlslParseHelper.cpp 21 additions, 5 deletionshlsl/hlslParseHelper.cpp
Loading
Please register or sign in to comment