glsl: Use constant_template_horizontal instead of constant_template_horizontal_single...
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 18 Jul 2016 18:13:55 +0000 (11:13 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 30 Aug 2016 23:28:03 +0000 (16:28 -0700)
This changes the "shape" of all the pack and unpack operators, but they
should function the same.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Acked-by: Dylan Baker <dylan@pnwbakers.com>
src/compiler/glsl/ir_expression_operation.py

index c718faa9d87fbb2f43fa7bc4048abb0cf72b9dbf..8dfcf2c0397be8d000d685415ab6535ef8974dc4 100644 (file)
@@ -369,7 +369,7 @@ class operation(object):
          if horizontal_operation in self.flags and non_assign_operation in self.flags:
             return constant_template_horizontal_nonassignment.render(op=self)
          elif horizontal_operation in self.flags:
-            return constant_template_horizontal_single_implementation.render(op=self)
+            return constant_template_horizontal.render(op=self)
       elif self.num_operands == 2:
          if self.name == "mul":
             return constant_template_mul.render(op=self)