From: Timur Kristóf Date: Tue, 15 Oct 2019 07:55:17 +0000 (+0200) Subject: aco/gfx10: Fix PS exports for SPI_SHADER_32_AR. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f380398f8fb06d5f0b45aab94b8eef61a1a6788c;p=mesa.git aco/gfx10: Fix PS exports for SPI_SHADER_32_AR. Signed-off-by: Timur Kristóf Reviewed-by: Daniel Schürmann --- 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: