From 1b444a7574508c1e165d778973a2c988f8efd94a Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Wed, 25 Jan 2023 19:19:17 +0000 Subject: [PATCH] aco: set has_color_exports with GPL Signed-off-by: Rhys Perry Reviewed-by: Samuel Pitoiset Fixes: 192486b7aa5 ("aco/gfx11: export mrtz in discard early exit for non-color shaders") Part-of: (cherry picked from commit 695cf75266f43c0f9d123c5030b136bbdf061d4c) --- .pick_status.json | 2 +- src/amd/compiler/aco_instruction_selection.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.pick_status.json b/.pick_status.json index e8678606701..e97b3f06ff2 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -607,7 +607,7 @@ "description": "aco: set has_color_exports with GPL", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "192486b7aa5ef3b24516e16b0e219fad7032fb7c" }, diff --git a/src/amd/compiler/aco_instruction_selection.cpp b/src/amd/compiler/aco_instruction_selection.cpp index 4a5dacb11c1..28a3d498d8d 100644 --- a/src/amd/compiler/aco_instruction_selection.cpp +++ b/src/amd/compiler/aco_instruction_selection.cpp @@ -11482,6 +11482,9 @@ create_fs_exports(isel_context* ctx) if (ctx->program->info.ps.has_epilog) { create_fs_jump_to_epilog(ctx); + + /* FS epilogs always have at least one color/null export. */ + ctx->program->has_color_exports = true; } else { struct aco_export_mrt mrts[8]; unsigned compacted_mrt_index = 0;