mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-20 22:50:36 +01:00
aco: add return address to call_clobbered_regs
It's better for handle_call() to make sure these SGPRs are clear. Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Natalie Vock <natalie.vock@gmx.de> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39590>
This commit is contained in:
parent
837afd7faf
commit
ec74e34672
1 changed files with 3 additions and 0 deletions
|
|
@ -3954,6 +3954,9 @@ register_allocation(Program* program, ra_test_policy policy)
|
|||
}
|
||||
BITSET_NOT(call_clobbered_regs);
|
||||
|
||||
BITSET_SET(call_clobbered_regs, instr->definitions[0].physReg().reg());
|
||||
BITSET_SET(call_clobbered_regs, instr->definitions[0].physReg().reg() + 1);
|
||||
|
||||
/* Allow linear VGPRs in the clobbered range.
|
||||
* Linear VGPRs are spilled in spill_preserved, and the stack pointer is always
|
||||
* guaranteed to be preserved.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue