I encountered some failures in piglit's tests of builtins because a vector constructor that is given only 1 single argument does not replicate the argument into the yzw components, for example:
diff --git a/src/glsl/builtins/ir/cosh b/src/glsl/builtins/ir/cosh index 45e0ae4..8bf3ad2 100644 --- a/src/glsl/builtins/ir/cosh +++ b/src/glsl/builtins/ir/cosh @@ -9,21 +9,21 @@ (signature vec2 (parameters (declare (in) vec2 x)) - ((return (expression vec2 * (constant vec2 (0.5)) + ((return (expression vec2 * (constant vec2 (0.5, 0.5)) (expression vec2 + (expression vec2 exp (var_ref x)) (expression vec2 exp (expression vec2 neg (var_ref x)))))))) (signature vec3 (parameters (declare (in) vec3 x)) Should the constructors or should all the builtin files be fixed ? _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev