aco: set has_color_exports with GPL

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Fixes: 192486b7aa ("aco/gfx11: export mrtz in discard early exit for non-color shaders")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20937>
(cherry picked from commit 695cf75266)
This commit is contained in:
Rhys Perry 2023-01-25 19:19:17 +00:00 committed by Eric Engestrom
parent 68246581eb
commit c02ae8592e
2 changed files with 4 additions and 1 deletions

View file

@ -4693,7 +4693,7 @@
"description": "aco: set has_color_exports with GPL",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "192486b7aa5ef3b24516e16b0e219fad7032fb7c"
},

View file

@ -11497,6 +11497,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;