ac/llvm: add support for texturing with clamped LOD
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 11 May 2020 14:51:33 +0000 (16:51 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 14 May 2020 10:05:44 +0000 (10:05 +0000)
commit0d63a1a84d409d08fd6c6f8a0c569b2620d6a600
treee700a4c8c270d35f765f6db337cf6d4ea4a46ba7
parentaaf5706aa32208b456df6b7f53b281baf24c6f3c
ac/llvm: add support for texturing with clamped LOD

This is a requirement for the shaderResourceMinLod feature which
allows to clamp LOD. This uses all image_sample_*_cl variants.

All dEQP-VK.glsl.texture_functions.texture*clamp.* pass.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4989>
src/amd/llvm/ac_llvm_build.c
src/amd/llvm/ac_llvm_build.h
src/amd/llvm/ac_nir_to_llvm.c