r600: Update scratch buffer late
authorGert Wollny <gert.wollny@collabora.com>
Wed, 16 Nov 2022 16:38:41 +0000 (17:38 +0100)
committerMarge Bot <emma+marge@anholt.net>
Sat, 19 Nov 2022 16:59:26 +0000 (16:59 +0000)
commit684e90b15c708898dbbf8a300d52600adb187213
tree24ec097515568dd29a19bda1018259ee7e93a607
parent394d8e4122e1682db40e75bf33943d90a53cfe33
r600: Update scratch buffer late

For some reason the setup that comes after the scratch buffer
setup calls clobber the PS output configuration. Emitting the
scratch buffer setup as last action before the actual draw commands
seems to fix this.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19804>
src/gallium/drivers/r600/r600_state_common.c