ac/nir: Only clamp shadow reference on radeonsi.
Vulkan CTS does not expect the value to be clamped (at least for D32), and it makes a differences even though depth is in [0,1], due to strict inequalities. I couldn't find anything in the Vulkan spec about this, but the test seemed to be copied from GL tests and the GL spec only specifies clamping for fixed point formats. Hence I expect radeonsi to run into this at some point as well, but given that they still have a usecase with the Z16->Z32 promotion, I'll leave that for someone else to clean up. This at least fixes radv dEQP-VK.texture.shadow.* on VI. Fixes: 0f9e3251 'ac/nir: clamp shadow texture comparison value on VI' Reviewed-by:Dave Airlie <airlied@redhat.com>
- src/amd/common/ac_nir_to_llvm.c 3 additions, 2 deletionssrc/amd/common/ac_nir_to_llvm.c
- src/amd/common/ac_nir_to_llvm.h 1 addition, 0 deletionssrc/amd/common/ac_nir_to_llvm.h
- src/amd/common/ac_shader_abi.h 4 additions, 0 deletionssrc/amd/common/ac_shader_abi.h
- src/gallium/drivers/radeonsi/si_shader_nir.c 1 addition, 0 deletionssrc/gallium/drivers/radeonsi/si_shader_nir.c