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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user