summaryrefslogtreecommitdiffstats
path: root/src/glsl/lower_mat_op_to_vec.cpp
diff options
context:
space:
mode:
authorDave Airlie <airlied@gmail.com>2014-08-14 18:48:09 +1000
committerIlia Mirkin <imirkin@alum.mit.edu>2015-02-19 00:28:35 -0500
commit94f9ed701abe33b854f22577adffc4c7ad45cf18 (patch)
tree8bf084e4cdc71617eb6ad07f561379ac6d07846d /src/glsl/lower_mat_op_to_vec.cpp
parent37730721696a0644242af1a96112381052501b18 (diff)
downloadexternal_mesa3d-94f9ed701abe33b854f22577adffc4c7ad45cf18.zip
external_mesa3d-94f9ed701abe33b854f22577adffc4c7ad45cf18.tar.gz
external_mesa3d-94f9ed701abe33b854f22577adffc4c7ad45cf18.tar.bz2
glsl: add double support to lower_mat_op_to_vec
Signed-off-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Diffstat (limited to 'src/glsl/lower_mat_op_to_vec.cpp')
-rw-r--r--src/glsl/lower_mat_op_to_vec.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/lower_mat_op_to_vec.cpp b/src/glsl/lower_mat_op_to_vec.cpp
index 105ee0d..dda754f 100644
--- a/src/glsl/lower_mat_op_to_vec.cpp
+++ b/src/glsl/lower_mat_op_to_vec.cpp
@@ -354,6 +354,8 @@ ir_mat_op_to_vec_visitor::visit_leave(ir_assignment *orig_assign)
/* OK, time to break down this matrix operation. */
switch (orig_expr->operation) {
+ case ir_unop_d2f:
+ case ir_unop_f2d:
case ir_unop_neg: {
/* Apply the operation to each column.*/
for (i = 0; i < matrix_columns; i++) {