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 <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Acked-by: Dylan Baker <dylan@pnwbakers.com>
This commit is contained in:
Ian Romanick
2016-07-18 11:13:55 -07:00
parent 822b5c5eb2
commit d6e73150a4

View 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)