radeonsi: fix incorrect vgpr indices in the ps_prolog
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Thu, 23 Feb 2023 09:52:26 +0000 (10:52 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 24 Feb 2023 09:17:20 +0000 (09:17 +0000)
commit2b655e267e5a04a6fedc2e5fd1ef9c291ba2ba8c
tree76e6db5aea71e80d61178da825812b89ba5c8bb3
parenta8e1e5b5c2aeb7c2fb4eff2203a026090f0853b9
radeonsi: fix incorrect vgpr indices in the ps_prolog

In monolithic PS shaders, we need to account for PERSP_PULL_MODEL even
if we don't use it; si_get_ps_prolog_key already does the same thing
to determine color_interp_vgpr_index.

Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8280
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21483>
src/gallium/drivers/radeonsi/si_shader.c
src/gallium/drivers/radeonsi/si_shader_internal.h
src/gallium/drivers/radeonsi/si_shader_llvm.c
src/gallium/drivers/radeonsi/si_shader_llvm_ps.c
src/gallium/drivers/radeonsi/si_shader_llvm_tess.c
src/gallium/drivers/radeonsi/si_shader_llvm_vs.c