zink: fix store subsitution in `lower_pv_mode_gs_store`
authorantonino <antonino.maniscalco@collabora.com>
Tue, 25 Apr 2023 10:29:35 +0000 (12:29 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 25 Apr 2023 15:00:48 +0000 (15:00 +0000)
commit39770c6503ac44090decd88698802bb95189bb4d
tree91f9f8d976d824a8329cdc1aae35046b5de83d7f
parenta0645e3383ed8476c1bf7e16115395ab6a0de086
zink: fix store subsitution in `lower_pv_mode_gs_store`

Previously it was assumed that between the and the variable there was
only one deref.

To handle all cases a new function is introduced that recreates a chain
of derefs.

Fixes: 5a4083349f3 ("zink: add provoking vertex mode lowering")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22678>
src/gallium/drivers/zink/zink_compiler.c