mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
nv50/ir/nir: avoid 8/16 bit dest regs for OP_MOV
Instructions like mov u16 %r78s 0x00ff (0) are dropped, since they're not supported by the HW, hence avoid using 8/16 bit destination registers for OP_MOV and use the full width of the register instead. Reviewed-by: Karol Herbst <kherbst@redhat.com> Signed-off-by: Danilo Krummrich <dakr@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18109>
This commit is contained in:
parent
6e2fda15f1
commit
ec60dcd870
1 changed files with 2 additions and 2 deletions
|
|
@ -2509,10 +2509,10 @@ Converter::convert(nir_load_const_instr *insn, uint8_t idx)
|
|||
val = loadImm(getSSA(4), insn->value[idx].u32);
|
||||
break;
|
||||
case 16:
|
||||
val = loadImm(getSSA(2), insn->value[idx].u16);
|
||||
val = loadImm(getSSA(4), insn->value[idx].u16);
|
||||
break;
|
||||
case 8:
|
||||
val = loadImm(getSSA(1), insn->value[idx].u8);
|
||||
val = loadImm(getSSA(4), insn->value[idx].u8);
|
||||
break;
|
||||
default:
|
||||
unreachable("unhandled bit size!\n");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue