nouveau/codegen: Handle nir op amul
authorGeorge Ouzounoudis <geothrock@gmail.com>
Sun, 27 Nov 2022 12:49:04 +0000 (14:49 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 1 Aug 2023 18:58:03 +0000 (18:58 +0000)
This came from CTS clipping tests with geometry shaders.  Maybe can be
done as a lowering operation instead.

Reviewed-by: M Henning <drawoc@darkrefraction.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24327>

src/nouveau/codegen/nv50_ir_from_nir.cpp

index 18e6166..113e08f 100644 (file)
@@ -445,6 +445,7 @@ Converter::getOperation(nir_op op)
       return OP_MOD;
    case nir_op_fmul:
    case nir_op_fmulz:
+   case nir_op_amul:
    case nir_op_imul:
    case nir_op_imul_high:
    case nir_op_umul_high:
@@ -2525,6 +2526,7 @@ Converter::visit(nir_alu_instr *insn)
    case nir_op_umod:
    case nir_op_fmul:
    case nir_op_fmulz:
+   case nir_op_amul:
    case nir_op_imul:
    case nir_op_imul_high:
    case nir_op_umul_high: