aco: Fix p_init_scratch for task shaders.

Fixes: d2d94b62f2
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18339>
This commit is contained in:
Timur Kristóf 2022-08-31 15:04:58 +02:00 committed by Marge Bot
parent ec653eda9d
commit 16c14663e5

View file

@ -2335,7 +2335,7 @@ lower_to_hw_instr(Program* program)
Operand scratch_addr = instr->operands[0];
Operand scratch_addr_lo(scratch_addr.physReg(), s1);
if (program->stage != compute_cs) {
if (program->stage.hw != HWStage::CS) {
bld.smem(aco_opcode::s_load_dwordx2, instr->definitions[0], scratch_addr,
Operand::zero());
scratch_addr_lo.setFixed(instr->definitions[0].physReg());