aco: prevent adding DONE/VM to the last export if the FS has an epilog

If the fragment shader exports MRTZ and the epilog some color exports,
DONE/VM should be added to the last export.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17485>
This commit is contained in:
Samuel Pitoiset 2022-06-24 14:38:59 +02:00 committed by Marge Bot
parent 2784bfe93f
commit d9ffff09b0
1 changed files with 4 additions and 2 deletions

View File

@ -803,8 +803,10 @@ fix_exports(asm_context& ctx, std::vector<uint32_t>& out, Program* program)
break;
}
} else {
exp.done = true;
exp.valid_mask = true;
if (!program->info.ps.has_epilog) {
exp.done = true;
exp.valid_mask = true;
}
exported = true;
break;
}