From 3a0f085837bd605dd5fbd52e4cf934995193e689 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Tue, 23 Aug 2022 09:27:10 +0200 Subject: [PATCH] r600/sfn: Handle color0 writes all on R700 like on EG Fixes: 069f3869ac3a140898224c8c37d5b3b6349361a4 r600/sfn: Fix color outputs when color0 writes all Signed-off-by: Gert Wollny Reviewed-by: Filip Gawin Part-of: --- src/gallium/drivers/r600/sfn/sfn_shader_fs.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallium/drivers/r600/sfn/sfn_shader_fs.cpp b/src/gallium/drivers/r600/sfn/sfn_shader_fs.cpp index 794c08d..09f2e6d 100644 --- a/src/gallium/drivers/r600/sfn/sfn_shader_fs.cpp +++ b/src/gallium/drivers/r600/sfn/sfn_shader_fs.cpp @@ -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) -- 2.7.4