mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
aco: fix debug info offset
Signed-off-by: abdelhadi <abdelhadims@icloud.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37244>
This commit is contained in:
parent
abd2a79264
commit
5c82a3e114
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue