glsl: Handle fp16 unary operations when lowering matrix operations
authorHyunjun Ko <zzoon@igalia.com>
Tue, 7 May 2019 06:20:28 +0000 (06:20 +0000)
committerMarge Bot <eric+marge@anholt.net>
Mon, 9 Mar 2020 16:31:08 +0000 (16:31 +0000)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3929>

src/compiler/glsl/lower_mat_op_to_vec.cpp

index 88c5d6679d246bec06b17584f688a4815c98cc81..13d3ccbaddbbfd28ea7aade5629277f4da990240 100644 (file)
@@ -360,6 +360,9 @@ ir_mat_op_to_vec_visitor::visit_leave(ir_assignment *orig_assign)
    switch (orig_expr->operation) {
    case ir_unop_d2f:
    case ir_unop_f2d:
+   case ir_unop_f2f16:
+   case ir_unop_f2fmp:
+   case ir_unop_f162f:
    case ir_unop_neg: {
       /* Apply the operation to each column.*/
       for (i = 0; i < matrix_columns; i++) {