aco: fix debug info offset
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Signed-off-by: abdelhadi <abdelhadims@icloud.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37244>
This commit is contained in:
abdelhadi 2025-09-09 02:16:38 +03:00 committed by Marge Bot
parent abd2a79264
commit 5c82a3e114

View file

@ -1253,7 +1253,7 @@ emit_instruction(asm_context& ctx, std::vector<uint32_t>& out, Instruction* inst
} else if (instr->opcode == aco_opcode::p_debug_info) {
assert(instr->operands[0].isConstant());
uint32_t index = instr->operands[0].constantValue();
ctx.program->debug_info[index].offset = (out.size() - 1) * 4;
ctx.program->debug_info[index].offset = out.size() * 4;
return;
}