lvp: avoid reading immutable sampler from desc write info
authorYiwei Zhang <zzyiwei@chromium.org>
Thu, 20 Jul 2023 18:47:52 +0000 (11:47 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 21 Jul 2023 17:11:26 +0000 (17:11 +0000)
commit8cb7bab3413d85a7773b7b2e4fd2a42841634ea9
tree51e43a53fa0ba3d3faea834fab660f14316c1bbe
parent1f3e320d15c7b33a620f807fcfe6a8f4db06d7f9
lvp: avoid reading immutable sampler from desc write info

Lavapipe has switched to layer push descriptor support atop descriptor
updates internally since 12a7fc51c77925a5562fd104a8fbd664a46ffc8b, so
it must skip retrieving immutable samplers from the write info even if
the update call itself is blessed by the spec to not hit that case.

Fixes: 12a7fc51c77 ("lavapipe: Rework descriptor handling")
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24263>
src/gallium/frontends/lavapipe/lvp_descriptor_set.c