zink: fix legacy depth texture rewriting for single component reads
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 18 Oct 2023 16:21:02 +0000 (12:21 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 19 Oct 2023 00:09:59 +0000 (00:09 +0000)
commit0d2923dfbbec4bfe919ec5005b16191122d3ac96
treebff0ed33ad2a87a653c1d873a73ffa61b9cfd2c0
parentb3e864b326875befaa153b061a934aa04ca80dea
zink: fix legacy depth texture rewriting for single component reads

if only a single component is read, this instruction can (and must) be
rewritten to use that component since depth sampling in vulkan is single-component

cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25795>
src/gallium/drivers/zink/zink_compiler.c