1753b321f8
Instead of writing SH registers into the command buffer, push them into an array in si_context. Before a draw, take all buffered register writes and create a single SET_SH_REG_PAIRS_PACKED packet for them. Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23517>