diff options
author | Kenneth Graunke <[email protected]> | 2010-09-03 16:10:57 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2010-09-04 02:19:37 -0700 |
commit | bacbf941d25b8c2c22cc991384ac7304bb951a03 (patch) | |
tree | f6b9fef73ef46a495f16e2892da170b5854be15e /src/glsl/builtins/ir/distance | |
parent | 03a6276477702404f5c7a4f5f2fbb713371c7eed (diff) |
glsl/builtins: Convert assignments to new format (with write mask).
Diffstat (limited to 'src/glsl/builtins/ir/distance')
-rw-r--r-- | src/glsl/builtins/ir/distance | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/glsl/builtins/ir/distance b/src/glsl/builtins/ir/distance index a2309c484f9..1595bf669bb 100644 --- a/src/glsl/builtins/ir/distance +++ b/src/glsl/builtins/ir/distance @@ -4,7 +4,7 @@ (declare (in) float p0) (declare (in) float p1)) ((declare () float p) - (assign (constant bool (1)) (var_ref p) (expression float - (var_ref p0) (var_ref p1))) + (assign (constant bool (1)) (x) (var_ref p) (expression float - (var_ref p0) (var_ref p1))) (return (expression float sqrt (expression float dot (var_ref p) (var_ref p)))))) (signature float @@ -12,7 +12,7 @@ (declare (in) vec2 p0) (declare (in) vec2 p1)) ((declare () vec2 p) - (assign (constant bool (1)) (var_ref p) (expression vec2 - (var_ref p0) (var_ref p1))) + (assign (constant bool (1)) (xy) (var_ref p) (expression vec2 - (var_ref p0) (var_ref p1))) (return (expression float sqrt (expression float dot (var_ref p) (var_ref p)))))) (signature float @@ -20,7 +20,7 @@ (declare (in) vec3 p0) (declare (in) vec3 p1)) ((declare () vec3 p) - (assign (constant bool (1)) (var_ref p) (expression vec3 - (var_ref p0) (var_ref p1))) + (assign (constant bool (1)) (xyz) (var_ref p) (expression vec3 - (var_ref p0) (var_ref p1))) (return (expression float sqrt (expression float dot (var_ref p) (var_ref p)))))) (signature float @@ -28,6 +28,6 @@ (declare (in) vec4 p0) (declare (in) vec4 p1)) ((declare () vec4 p) - (assign (constant bool (1)) (var_ref p) (expression vec4 - (var_ref p0) (var_ref p1))) + (assign (constant bool (1)) (xyzw) (var_ref p) (expression vec4 - (var_ref p0) (var_ref p1))) (return (expression float sqrt (expression float dot (var_ref p) (var_ref p)))))) )) |