projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01b39b0
)
glsl/builtins: Rename 'x' to 'y_over_x' in atan(float) implementation.
author
Kenneth Graunke
<kenneth@whitecape.org>
Sun, 31 Oct 2010 04:51:01 +0000
(21:51 -0700)
committer
Kenneth Graunke
<kenneth@whitecape.org>
Wed, 3 Nov 2010 20:39:41 +0000
(13:39 -0700)
For consistency with the vec2/vec3/vec4 variants.
src/glsl/builtins/ir/atan
patch
|
blob
|
history
diff --git
a/src/glsl/builtins/ir/atan
b/src/glsl/builtins/ir/atan
index
6dc99d7
..
32f09d3
100644
(file)
--- a/
src/glsl/builtins/ir/atan
+++ b/
src/glsl/builtins/ir/atan
@@
-1,14
+1,14
@@
((function atan
(signature float
(parameters
- (declare (in) float x))
+ (declare (in) float
y_over_
x))
((return (call asin ((expression float *
- (var_ref x)
+ (var_ref
y_over_
x)
(expression float rsq
(expression float +
(expression float *
- (var_ref x)
- (var_ref x))
+ (var_ref
y_over_
x)
+ (var_ref
y_over_
x))
(constant float (1.0))))))))))
(signature vec2