radv: Deal with derefs from opaque types in function parameters.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 13 Jun 2022 20:17:19 +0000 (22:17 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 27 Jun 2022 01:23:43 +0000 (01:23 +0000)
commite75f11625d1d9bac1d8c477ec75924290325c705
tree683af38efa84388bfa5750de4fe694e22589e4be
parenta7d6365f20078cda63052eecc0e3aad9a3779d28
radv: Deal with derefs from opaque types in function parameters.

Needs more copy propagation before nir_opt_derefs picks it up.

Note that the full general problem of opaque types stored in
intermediate variables is still open, but that seems like a whole
can of worms, and no sense to have gfxbench stay broken during the
time it takes to solve that.

Cc: mesa-stable
Gitlab: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5945
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17012>
src/amd/vulkan/radv_shader.c