venus: properly ignore the sampler for immutable sampler
authorYiwei Zhang <zzyiwei@chromium.org>
Sun, 1 Jan 2023 01:21:53 +0000 (17:21 -0800)
committerMarge Bot <emma+marge@anholt.net>
Tue, 3 Jan 2023 19:26:42 +0000 (19:26 +0000)
commit33b778cc36158568e308564313effb219b3adb5b
treee6601cf0ac5c5963019736c2343b566e36535c84
parent9a104f6348d9f86825f0d9ace1886b7f26277845
venus: properly ignore the sampler for immutable sampler

This was found while debugging venus-lavapipe ci failure. It's a real
bug though no tests have caught this yet, but fixing this would regress
venus-lavapipe non-templated push tests if without the dependent lvp
fix. The sampler in the descriptor write can be garbled if the binding
has immutable samplers.

cc: mesa-stable

Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Corentin Noël <corentin.noel@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20471>
src/virtio/vulkan/vn_descriptor_set.c