zink: be more permissive for injecting LOD into texture() instructions
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 28 Oct 2021 13:53:02 +0000 (09:53 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 29 Oct 2021 19:05:07 +0000 (19:05 +0000)
commit87fbb0eab03c8348f74ca1f4b3489e89e89f691f
treed00e654b9a03e1513c0aae2b95934e7534d8cd99
parent8d0b508d91e8f873ff7974e1aad8fb6c9b8f20cf
zink: be more permissive for injecting LOD into texture() instructions

there's other variants of implicit lod sampling, and none of them are valid
outside fragment stage

Fixes: 3ad06b69490 ("zink: always use explicit lod for texture() when legal in non-fragment stages")

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13585>
src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c