ac/llvm: fix mixing non-uniform/uniform sampler/texture descriptors
authorRhys Perry <pendingchaos02@gmail.com>
Wed, 19 Oct 2022 17:17:29 +0000 (18:17 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 21 Oct 2022 19:09:49 +0000 (19:09 +0000)
commitc492779924cd4798b7666b812d3a805380ef67bb
tree694526540e5a66c1f38fbfb0d1d94b9e917377bf
parent5b47e32474283596f026eb3f06c7f01e95712589
ac/llvm: fix mixing non-uniform/uniform sampler/texture descriptors

Non-uniform descriptors are not loaded in NIR and instead the pointer is
passed to abi->load_sampler_desc. It can be the case that only the texture
or sampler uses this path.

For the descriptor which doesn't use the path, we would previously pass
NULL to abi->load_sampler_desc.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19198>
src/amd/llvm/ac_nir_to_llvm.c