glsl: add double support to lower_mat_op_to_vec
authorDave Airlie <airlied@gmail.com>
Thu, 14 Aug 2014 08:48:09 +0000 (18:48 +1000)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 19 Feb 2015 05:28:35 +0000 (00:28 -0500)
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>
src/glsl/lower_mat_op_to_vec.cpp

index 105ee0d3f51ad75916a16e2c6846107de83e3afe..dda754f91494f026c3961c6ba9cad75a6b19362d 100644 (file)
@@ -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++) {