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>
(cherry picked from commit e75f11625d1d9bac1d8c477ec75924290325c705)

BUG=b:217467368
TEST=Run through the fossilize in the upstream bug without crashes.

Change-Id: If9694c2e58999d7c4e2996296170a6d14e1c2867
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/mesa/+/3732659
Tested-by: Bas Nieuwenhuizen <basni@chromium.org>
Commit-Queue: Bas Nieuwenhuizen <basni@chromium.org>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
1 file changed