mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 15:48:36 +02:00
aco/lower_to_hw_instr: Run p_init_scratch if the program has a call
Callees may use scratch even if the caller doesn't. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40008>
This commit is contained in:
parent
378c9536de
commit
b53dc3f052
1 changed files with 1 additions and 1 deletions
|
|
@ -2746,7 +2746,7 @@ lower_to_hw_instr(Program* program)
|
|||
}
|
||||
case aco_opcode::p_init_scratch: {
|
||||
assert(program->gfx_level >= GFX8 && program->gfx_level <= GFX10_3);
|
||||
if (!program->config->scratch_bytes_per_wave)
|
||||
if (!program->config->scratch_bytes_per_wave && !program->has_call)
|
||||
break;
|
||||
|
||||
Operand scratch_addr = instr->operands[0];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue