From: Ian Romanick Date: Mon, 18 Jul 2016 18:13:55 +0000 (-0700) Subject: glsl: Use constant_template_horizontal instead of constant_template_horizontal_single... X-Git-Tag: upstream/17.1.0~6725 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d6e73150a4017ace895472b049ca9381b1073a6d;p=platform%2Fupstream%2Fmesa.git 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 --- diff --git a/src/compiler/glsl/ir_expression_operation.py b/src/compiler/glsl/ir_expression_operation.py index c718faa..8dfcf2c 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)