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 Dylan Baker
parent 23659a5cce
commit 1b444a7574
2 changed files with 4 additions and 1 deletions

View file

@ -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"
},

View file

@ -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;