From f380398f8fb06d5f0b45aab94b8eef61a1a6788c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timur=20Krist=C3=B3f?= Date: Tue, 15 Oct 2019 09:55:17 +0200 Subject: [PATCH] aco/gfx10: Fix PS exports for SPI_SHADER_32_AR. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Timur Kristóf Reviewed-by: Daniel Schürmann --- src/amd/compiler/aco_instruction_selection.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/amd/compiler/aco_instruction_selection.cpp b/src/amd/compiler/aco_instruction_selection.cpp index 0e7d8a857e4..fede0979bd2 100644 --- a/src/amd/compiler/aco_instruction_selection.cpp +++ b/src/amd/compiler/aco_instruction_selection.cpp @@ -2524,7 +2524,13 @@ void visit_store_fs_output(isel_context *ctx, nir_intrinsic_instr *instr) break; case V_028714_SPI_SHADER_32_AR: - enabled_channels = 0x9; + if (ctx->options->chip_class >= GFX10) { + /* Special case: on GFX10, the outputs are different for 32_AR */ + enabled_channels = 0x3; + values[1] = values[3]; + } else { + enabled_channels = 0x9; + } break; case V_028714_SPI_SHADER_FP16_ABGR: -- 2.30.2