summaryrefslogtreecommitdiffstats
path: root/builtins/110
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-05-19 13:05:01 -0700
committerEric Anholt <[email protected]>2010-06-01 15:15:04 -0700
commitf03acfc7d7275b60418fec94f4a7044de486a05c (patch)
treec9e28a52180381da6bcc2e88bba8f02a8e0da1d6 /builtins/110
parent336b4ad8c76a525a0df2f4b0fc1d67e86bc5db3f (diff)
builtins: Add the mix(gentype, gentype, float) variant.
The broken-in-mesa Regnum Online shader now parses, except for its preprocessor usage.
Diffstat (limited to 'builtins/110')
-rw-r--r--builtins/110/mix21
1 files changed, 21 insertions, 0 deletions
diff --git a/builtins/110/mix b/builtins/110/mix
index 6bdac74f6ff..032f29e5fa8 100644
--- a/builtins/110/mix
+++ b/builtins/110/mix
@@ -26,4 +26,25 @@
(declare (in) vec4 arg1)
(declare (in) vec4 arg2))
((return (expression vec4 + (expression vec4 * (var_ref arg0) (expression vec4 - (constant float (1.000000)) (var_ref arg2))) (expression vec4 * (var_ref arg1) (var_ref arg2))))))
+
+ (signature vec2
+ (parameters
+ (declare (in) vec2 arg0)
+ (declare (in) vec2 arg1)
+ (declare (in) float arg2))
+ ((return (expression vec2 + (expression vec2 * (var_ref arg0) (expression vec2 - (constant float (1.000000)) (var_ref arg2))) (expression vec2 * (var_ref arg1) (var_ref arg2))))))
+
+ (signature vec3
+ (parameters
+ (declare (in) vec3 arg0)
+ (declare (in) vec3 arg1)
+ (declare (in) float arg2))
+ ((return (expression vec3 + (expression vec3 * (var_ref arg0) (expression vec3 - (constant float (1.000000)) (var_ref arg2))) (expression vec3 * (var_ref arg1) (var_ref arg2))))))
+
+ (signature vec4
+ (parameters
+ (declare (in) vec4 arg0)
+ (declare (in) vec4 arg1)
+ (declare (in) float arg2))
+ ((return (expression vec4 + (expression vec4 * (var_ref arg0) (expression vec4 - (constant float (1.000000)) (var_ref arg2))) (expression vec4 * (var_ref arg1) (var_ref arg2))))))
))