r600/sfn: sort FS color outputs before all other outputs
authorGert Wollny <gert.wollny@collabora.com>
Fri, 18 Nov 2022 15:53:34 +0000 (16:53 +0100)
committerEric Engestrom <eric@engestrom.ch>
Wed, 23 Nov 2022 19:11:59 +0000 (19:11 +0000)
commit7f33a0b9973fb100d073953a772574f4e65773b5
treeabd92d251d006ba5fd7cbe6966d37acc956d118e
parent4e0f9c36e0068f7596c2cbd6a9742544561e9d7b
r600/sfn: sort FS color outputs before all other outputs

The color outputs must be checked against the number of available
color buffers, therefore it is best to sort the color outputs to be
on the driver locations before the other FS outputs.

Fixes: 79ca456b4837b3bc21cf9ef3c03c505c4b4909f6
   r600/sfn: rewrite NIR backend

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7530

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19804>
(cherry picked from commit be570cd32254f1360e5010d091eea142b3990e72)
.pick_status.json
src/gallium/drivers/r600/sfn/sfn_nir.cpp
src/gallium/drivers/r600/sfn/sfn_shader_fs.cpp
src/gallium/drivers/r600/sfn/sfn_shader_fs.h