nouveau: set lower_sub = true
Subtractions are already implemented as additions anyway. Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
This commit is contained in:
parent
ca1aa5d225
commit
b3c1f601aa
|
@ -451,9 +451,6 @@ Converter::getOperation(nir_op op)
|
|||
return OP_SIN;
|
||||
case nir_op_fsqrt:
|
||||
return OP_SQRT;
|
||||
case nir_op_fsub:
|
||||
case nir_op_isub:
|
||||
return OP_SUB;
|
||||
case nir_op_ftrunc:
|
||||
return OP_TRUNC;
|
||||
case nir_op_ixor:
|
||||
|
@ -2817,8 +2814,6 @@ Converter::visit(nir_alu_instr *insn)
|
|||
case nir_op_ushr:
|
||||
case nir_op_fsin:
|
||||
case nir_op_fsqrt:
|
||||
case nir_op_fsub:
|
||||
case nir_op_isub:
|
||||
case nir_op_ftrunc:
|
||||
case nir_op_ishl:
|
||||
case nir_op_ixor: {
|
||||
|
|
|
@ -901,6 +901,7 @@ static const nir_shader_compiler_options nir_options = {
|
|||
.lower_fpow = false,
|
||||
.lower_uadd_carry = true,
|
||||
.lower_usub_borrow = true,
|
||||
.lower_sub = true,
|
||||
.lower_ffract = true,
|
||||
.lower_pack_half_2x16 = true,
|
||||
.lower_pack_unorm_2x16 = true,
|
||||
|
|
|
@ -939,7 +939,7 @@ static const nir_shader_compiler_options nir_options = {
|
|||
.lower_usub_borrow = true, // TODO
|
||||
.lower_mul_high = false,
|
||||
.lower_negate = false,
|
||||
.lower_sub = false, // TODO
|
||||
.lower_sub = true,
|
||||
.lower_scmp = true, // TODO: not implemented yet
|
||||
.lower_idiv = true,
|
||||
.lower_isign = false, // TODO
|
||||
|
|
Loading…
Reference in New Issue