mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
nvir/nir: implement nir_op_uror
Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Reviewed-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5377>
This commit is contained in:
parent
23d56c842d
commit
126954aade
1 changed files with 10 additions and 0 deletions
|
|
@ -2852,6 +2852,16 @@ Converter::visit(nir_alu_instr *insn)
|
|||
NV50_IR_SUBOP_SHF_HI;
|
||||
break;
|
||||
}
|
||||
case nir_op_uror: {
|
||||
DEFAULT_CHECKS;
|
||||
LValues &newDefs = convert(&insn->dest);
|
||||
mkOp3(OP_SHF, TYPE_U32, newDefs[0], getSrc(&insn->src[0]),
|
||||
getSrc(&insn->src[1]), getSrc(&insn->src[0]))
|
||||
->subOp = NV50_IR_SUBOP_SHF_R |
|
||||
NV50_IR_SUBOP_SHF_W |
|
||||
NV50_IR_SUBOP_SHF_LO;
|
||||
break;
|
||||
}
|
||||
// boolean conversions
|
||||
case nir_op_b2f32: {
|
||||
DEFAULT_CHECKS;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue