aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHyunjun Ko <[email protected]>2019-05-07 06:20:28 +0000
committerMarge Bot <[email protected]>2020-03-09 16:31:08 +0000
commitad27eb28d95e10b72ec728f52f87364db8184e32 (patch)
tree919166562e9349ec5f7791b859e1cfca670893bb /src
parent1b8edffaa5816449436fac981fd27005fcede8c9 (diff)
glsl: Handle fp16 unary operations when lowering matrix operations
Reviewed-by: Marek Olšák <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Reviewed-by: Ian Romanick <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3929>
Diffstat (limited to 'src')
-rw-r--r--src/compiler/glsl/lower_mat_op_to_vec.cpp3
1 files changed, 3 insertions, 0 deletions
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++) {