From d6e73150a4017ace895472b049ca9381b1073a6d Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Mon, 18 Jul 2016 11:13:55 -0700 Subject: [PATCH] glsl: Use constant_template_horizontal instead of constant_template_horizontal_single_implementation for unops This changes the "shape" of all the pack and unpack operators, but they should function the same. Signed-off-by: Ian Romanick Reviewed-by: Matt Turner Acked-by: Dylan Baker --- 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 c718faa9d87..8dfcf2c0397 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.30.2