mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
aco: fix incorrect cast in parse_wait_instr()
s_waitcnt is SOPP, not SOPK Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
This commit is contained in:
parent
11f43caaec
commit
54742e157d
1 changed files with 1 additions and 1 deletions
|
|
@ -359,7 +359,7 @@ wait_imm parse_wait_instr(wait_ctx& ctx, Instruction *instr)
|
|||
imm.vs = std::min<uint8_t>(imm.vs, static_cast<SOPK_instruction*>(instr)->imm);
|
||||
return imm;
|
||||
} else if (instr->opcode == aco_opcode::s_waitcnt) {
|
||||
return wait_imm(ctx.chip_class, static_cast<SOPK_instruction*>(instr)->imm);
|
||||
return wait_imm(ctx.chip_class, static_cast<SOPP_instruction*>(instr)->imm);
|
||||
}
|
||||
return wait_imm();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue