From 272ff275fa27a2536e8699c7de100c8e266ae2b0 Mon Sep 17 00:00:00 2001 From: Georg Lehmann Date: Thu, 2 Jan 2025 12:27:11 +0100 Subject: [PATCH] aco/insert_exec: reset top exec for p_discard_if MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Timur Kristóf Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12363 Fixes: 31f62a6123d ("aco/insert_exec: don't always reset top exec") Part-of: --- src/amd/compiler/aco_insert_exec_mask.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/amd/compiler/aco_insert_exec_mask.cpp b/src/amd/compiler/aco_insert_exec_mask.cpp index 7b9ab8bd8a5..734385c5e47 100644 --- a/src/amd/compiler/aco_insert_exec_mask.cpp +++ b/src/amd/compiler/aco_insert_exec_mask.cpp @@ -469,6 +469,7 @@ process_instructions(exec_ctx& ctx, Block* block, std::vectoroperands[0] = bld.scc(exit_cond); } + info.exec.back().op = Operand(exec, bld.lm); instr->opcode = aco_opcode::p_exit_early_if_not; assert(!ctx.handle_wqm || (info.exec[0].type & mask_type_wqm) == 0); } else if (instr->opcode == aco_opcode::p_is_helper) {