[Mesa-dev] [PATCH 54/56] glsl: Use constant_template_horizontal instead of constant_template_horizontal_single_implementation for unops

Ian Romanick idr at freedesktop.org
Tue Jul 19 19:25:13 UTC 2016


From: Ian Romanick <ian.d.romanick at intel.com>

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 at intel.com>
---
 src/compiler/glsl/ir_expression_operation.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compiler/glsl/ir_expression_operation.py b/src/compiler/glsl/ir_expression_operation.py
index a22b6f9..bd71370 100644
--- a/src/compiler/glsl/ir_expression_operation.py
+++ b/src/compiler/glsl/ir_expression_operation.py
@@ -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)
-- 
2.5.5



More information about the mesa-dev mailing list