zink: be more consistent about applying module hash for gfx pipeline
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 10 Nov 2021 00:42:16 +0000 (19:42 -0500)
committerMarge Bot <emma+marge@anholt.net>
Wed, 10 Nov 2021 01:15:39 +0000 (01:15 +0000)
commitbfa81c1e8c8f1885ab63c4c09e57e4c0bbb37bb2
treed0876abef33cbc33469b1456f5a07577d570df9f
parent937a841b5746f7b00f1e26993272db03f7eb9146
zink: be more consistent about applying module hash for gfx pipeline

this was a little spaghetti-ish: the module hash was sometimes being applied
during module update, sometimes in draw during program create, and then also
it was removed when a shader unbind would cause the program to no longer be reachable

now things are more consistent:
* keep removing module hash when program becomes unreachable
* only apply module hash in draw during updates there

cc: mesa-stable

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13727>
src/gallium/drivers/zink/zink_draw.cpp
src/gallium/drivers/zink/zink_program.c