mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 16:50:10 +01:00
aco: fix p_extract with v1 dst and s1 operand
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Fixes: f14023666c ("aco: Allow p_extract to have different definition and operand sizes.")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25403>
This commit is contained in:
parent
ae9a476c42
commit
4ea611bca0
1 changed files with 1 additions and 1 deletions
|
|
@ -2615,7 +2615,7 @@ lower_to_hw_instr(Program* program)
|
|||
bld.sop2(signext ? aco_opcode::s_bfe_i32 : aco_opcode::s_bfe_u32, dst,
|
||||
bld.def(s1, scc), op, Operand::c32((bits << 16) | offset));
|
||||
}
|
||||
} else if ((dst.regClass() == v1 && op.regClass() == v1) ||
|
||||
} else if ((dst.regClass() == v1 && op.physReg().byte() == 0) ||
|
||||
ctx.program->gfx_level <= GFX7) {
|
||||
assert(op.physReg().byte() == 0 && dst.physReg().byte() == 0);
|
||||
if (offset == (32 - bits) && op.regClass() != s1) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue