zink: fix shadow mask change logic when binding sampler views
authorSoroushIMG <soroush.kashani@imgtec.com>
Sat, 25 Feb 2023 22:19:49 +0000 (22:19 +0000)
committerMarge Bot <emma+marge@anholt.net>
Tue, 14 Mar 2023 17:03:29 +0000 (17:03 +0000)
commita83e63437f98573e6eaa3257a88e5b4d81fbd5c8
tree10b22924e1bbd1c736b26e8a9654bacd3bcc03d1
parent5903868f9919db6b929effa665b5a273604fa27d
zink: fix shadow mask change logic when binding sampler views

First make sure shadow mask change sets dirty state.
Second move shadow mask bit removal to unbind_samplerview which
is cleaner and correctly clears the shadow bit when binding buffer texture.

Fixes: 5193f4f712b ("zink: add a fs shader key member to indicate depth texturing mode")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21571>
src/gallium/drivers/zink/zink_context.c