r600/sfn: Handle color0 writes all on R700 like on EG

Fixes: 069f3869ac
    r600/sfn: Fix color outputs when color0 writes all

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Filip Gawin <filip@gawin.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18212>
This commit is contained in:
Gert Wollny
2022-08-23 09:27:10 +02:00
committed by Marge Bot
parent 43eb5e777e
commit 3a0f085837

View File

@@ -491,10 +491,9 @@ bool FragmentShader::emit_export_pixel(nir_intrinsic_instr& intr)
ShaderOutput output(driver_location, TGSI_SEMANTIC_COLOR, write_mask);
add_output(output);
unsigned color_outputs = m_fs_write_all && chip_class() >= ISA_CC_EVERGREEN ?
unsigned color_outputs = m_fs_write_all && chip_class() >= ISA_CC_R700 ?
m_max_color_exports : 1;
for (unsigned k = 0; k < color_outputs; ++k) {
unsigned location = (m_dual_source_blend && (semantics.location == FRAG_RESULT_COLOR)