From ad27eb28d95e10b72ec728f52f87364db8184e32 Mon Sep 17 00:00:00 2001 From: Hyunjun Ko Date: Tue, 7 May 2019 06:20:28 +0000 Subject: glsl: Handle fp16 unary operations when lowering matrix operations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák Reviewed-by: Alyssa Rosenzweig Reviewed-by: Ian Romanick Part-of: --- src/compiler/glsl/lower_mat_op_to_vec.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/compiler/glsl/lower_mat_op_to_vec.cpp b/src/compiler/glsl/lower_mat_op_to_vec.cpp index 88c5d6679d2..13d3ccbaddb 100644 --- a/src/compiler/glsl/lower_mat_op_to_vec.cpp +++ b/src/compiler/glsl/lower_mat_op_to_vec.cpp @@ -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++) { -- cgit v1.2.3