mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-22 20:20:37 +01:00
aco: use inlined constant offsets for storing SGPRs in the trap handler
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31976>
This commit is contained in:
parent
29db405c16
commit
32a537b25b
1 changed files with 2 additions and 3 deletions
|
|
@ -12514,11 +12514,10 @@ select_trap_handler_shader(Program* program, struct nir_shader* shader, ac_shade
|
|||
/* Dump all SGPRs. */
|
||||
for (uint32_t i = 0; i < program->dev.sgpr_limit; i++) {
|
||||
bld.copy(Definition(PhysReg{256}, v1) /* v0 */, Operand(PhysReg{i}, s1));
|
||||
bld.copy(Definition(PhysReg{ttmp8}, s1), Operand::c32(offset));
|
||||
|
||||
bld.mubuf(aco_opcode::buffer_store_dword, Operand(PhysReg{ttmp4}, s4), Operand(v1),
|
||||
Operand(PhysReg{ttmp8}, s1), Operand(PhysReg{256}, v1) /* v0 */, 0 /* offset */,
|
||||
false /* offen */, false /* idxen */, /* addr64 */ false,
|
||||
Operand::c32(0u), Operand(PhysReg{256}, v1) /* v0 */, offset, false /* offen */,
|
||||
false /* idxen */, /* addr64 */ false,
|
||||
/* disable_wqm */ false, cache_glc);
|
||||
|
||||
offset += 4;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue