radeonsi: determine si_pm4_state::reg_va_low_idx automatically
authorMarek Olšák <marek.olsak@amd.com>
Wed, 7 Jun 2023 17:43:31 +0000 (13:43 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 22 Jun 2023 08:35:54 +0000 (08:35 +0000)
commitccb856fbaa1ae9d77e034f6822c9d004837932fa
tree8687221b3cf81903deb1114787f91e6dc259885d
parent22f3bcfb5a3311a2c61ad26c943976e66b68b09c
radeonsi: determine si_pm4_state::reg_va_low_idx automatically

The existing code doesn't work with the packed SET packets, so si_pm4_state
needs to find reg_va_low_idx after the whole packet is built.

Remove si_pm4_set_reg_va and do the same thing for SET_SH_REG.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23517>
src/gallium/drivers/radeonsi/si_pm4.c
src/gallium/drivers/radeonsi/si_pm4.h
src/gallium/drivers/radeonsi/si_state_shaders.cpp