aco/optimizer_postRA: Properly handle vccz/execz/scc in reset_block.
authorTimur Kristóf <timur.kristof@gmail.com>
Thu, 6 Oct 2022 00:32:13 +0000 (19:32 -0500)
committerMarge Bot <emma+marge@anholt.net>
Mon, 24 Oct 2022 20:14:16 +0000 (20:14 +0000)
Fixes: a8dd07518c59af0087ed311cee232c31c3e8268c
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18103>

src/amd/compiler/aco_optimizer_postRA.cpp

index b969937..a850b98 100644 (file)
@@ -111,6 +111,7 @@ struct pr_opt_ctx {
                    not_written_yet);
       } else {
          reset_block_regs(block->linear_preds, block->index, 0, max_sgpr_cnt);
+         reset_block_regs(block->linear_preds, block->index, 251, 3);
 
          if (!block->logical_preds.empty()) {
             /* We assume that VGPRs are only read by blocks which have a logical predecessor,