aco: fix reading registers from the trap handler shader
It should read 32-bit values, otherwise some MSB are 0 and it's missing some information. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31926>
This commit is contained in:
committed by
Marge Bot
parent
94cf47e43f
commit
281eb14df8
@@ -12452,7 +12452,7 @@ select_trap_handler_shader(Program* program, struct nir_shader* shader, ac_shade
|
||||
for (unsigned i = 0; i < ARRAY_SIZE(hw_regs_idx); i++) {
|
||||
/* "((size - 1) << 11) | register" */
|
||||
bld.sopk(aco_opcode::s_getreg_b32, Definition(PhysReg{ttmp8}, s1),
|
||||
((20 - 1) << 11) | hw_regs_idx[i]);
|
||||
((32 - 1) << 11) | hw_regs_idx[i]);
|
||||
|
||||
bld.smem(aco_opcode::s_buffer_store_dword, Operand(PhysReg{ttmp4}, s4),
|
||||
Operand::c32(8u + i * 4), Operand(PhysReg{ttmp8}, s1), memory_sync_info(),
|
||||
|
||||
Reference in New Issue
Block a user