mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
i965/nir/vec4: Implement "shift" operations
Adds NIR ALU operations: * nir_op_ishl * nir_op_ishr * nir_op_ushr Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
This commit is contained in:
parent
798cb33a25
commit
d12e165dbb
1 changed files with 12 additions and 0 deletions
|
|
@ -1181,6 +1181,18 @@ vec4_visitor::nir_emit_alu(nir_alu_instr *instr)
|
|||
inst->predicate = BRW_PREDICATE_NORMAL;
|
||||
break;
|
||||
|
||||
case nir_op_ishl:
|
||||
emit(SHL(dst, op[0], op[1]));
|
||||
break;
|
||||
|
||||
case nir_op_ishr:
|
||||
emit(ASR(dst, op[0], op[1]));
|
||||
break;
|
||||
|
||||
case nir_op_ushr:
|
||||
emit(SHR(dst, op[0], op[1]));
|
||||
break;
|
||||
|
||||
default:
|
||||
unreachable("Unimplemented ALU operation");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue