radeonsi: merge pm4 state and atom emit loops into one
authorMarek Olšák <marek.olsak@amd.com>
Sun, 16 Jul 2023 12:38:17 +0000 (08:38 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 17 Aug 2023 15:34:06 +0000 (15:34 +0000)
commit3986f27396be17023550a45916b0bf7a45759c7e
treeaad81ac59c9c0a18ff1acd7831a67ba2078a2888
parentc21ce0401458417287e9419abb09ac945c588e65
radeonsi: merge pm4 state and atom emit loops into one

This merges both loops in si_draw by tracking which pm4 states are dirty
using the state atom mechanism used for other states. pm4 states now have
to set their own emit function.

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