diff options
author | Kenneth Graunke <[email protected]> | 2013-09-03 21:23:18 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2013-09-09 14:42:33 -0700 |
commit | 722eff674b832e2321f791c68358ef52d2a1ff25 (patch) | |
tree | f50c7cdd2a303bc41307116e58faec1b88d33997 /src/glsl/builtins/ir | |
parent | c845140a20efa6a30a5465301d1f9b4acea79155 (diff) |
glsl: Delete old built-in function generation code.
None of this is used anymore.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Acked-by: Paul Berry <[email protected]>
Diffstat (limited to 'src/glsl/builtins/ir')
90 files changed, 0 insertions, 3561 deletions
diff --git a/src/glsl/builtins/ir/EmitVertex.ir b/src/glsl/builtins/ir/EmitVertex.ir deleted file mode 100644 index 8ffb6c4df11..00000000000 --- a/src/glsl/builtins/ir/EmitVertex.ir +++ /dev/null @@ -1,5 +0,0 @@ -((function EmitVertex - (signature void - (parameters) - ((emit-vertex))) -)) diff --git a/src/glsl/builtins/ir/EndPrimitive.ir b/src/glsl/builtins/ir/EndPrimitive.ir deleted file mode 100644 index ed7e12ab450..00000000000 --- a/src/glsl/builtins/ir/EndPrimitive.ir +++ /dev/null @@ -1,5 +0,0 @@ -((function EndPrimitive - (signature void - (parameters) - ((end-primitive))) -)) diff --git a/src/glsl/builtins/ir/abs.ir b/src/glsl/builtins/ir/abs.ir deleted file mode 100644 index d07d1d99e9f..00000000000 --- a/src/glsl/builtins/ir/abs.ir +++ /dev/null @@ -1,41 +0,0 @@ -((function abs - (signature float - (parameters - (declare (in) float arg0)) - ((return (expression float abs (var_ref arg0))))) - - (signature vec2 - (parameters - (declare (in) vec2 arg0)) - ((return (expression vec2 abs (var_ref arg0))))) - - (signature vec3 - (parameters - (declare (in) vec3 arg0)) - ((return (expression vec3 abs (var_ref arg0))))) - - (signature vec4 - (parameters - (declare (in) vec4 arg0)) - ((return (expression vec4 abs (var_ref arg0))))) - - (signature int - (parameters - (declare (in) int arg0)) - ((return (expression int abs (var_ref arg0))))) - - (signature ivec2 - (parameters - (declare (in) ivec2 arg0)) - ((return (expression ivec2 abs (var_ref arg0))))) - - (signature ivec3 - (parameters - (declare (in) ivec3 arg0)) - ((return (expression ivec3 abs (var_ref arg0))))) - - (signature ivec4 - (parameters - (declare (in) ivec4 arg0)) - ((return (expression ivec4 abs (var_ref arg0))))) -)) diff --git a/src/glsl/builtins/ir/acos.ir b/src/glsl/builtins/ir/acos.ir deleted file mode 100644 index 8c3797e9677..00000000000 --- a/src/glsl/builtins/ir/acos.ir +++ /dev/null @@ -1,29 +0,0 @@ -((function acos - (signature float - (parameters - (declare (in) float x)) - ((declare () float s) - (call asin (var_ref s) ((var_ref x))) - (return (expression float - (constant float (1.5707964)) (var_ref s))))) - - (signature vec2 - (parameters - (declare (in) vec2 x)) - ((declare () vec2 s) - (call asin (var_ref s) ((var_ref x))) - (return (expression vec2 - (constant float (1.5707964)) (var_ref s))))) - - (signature vec3 - (parameters - (declare (in) vec3 x)) - ((declare () vec3 s) - (call asin (var_ref s) ((var_ref x))) - (return (expression vec3 - (constant float (1.5707964)) (var_ref s))))) - - (signature vec4 - (parameters - (declare (in) vec4 x)) - ((declare () vec4 s) - (call asin (var_ref s) ((var_ref x))) - (return (expression vec4 - (constant float (1.5707964)) (var_ref s))))) -)) diff --git a/src/glsl/builtins/ir/acosh.ir b/src/glsl/builtins/ir/acosh.ir deleted file mode 100644 index 9a4c291ad5b..00000000000 --- a/src/glsl/builtins/ir/acosh.ir +++ /dev/null @@ -1,21 +0,0 @@ -((function acosh - (signature float - (parameters - (declare (in) float x)) - ((return (expression float log (expression float + (var_ref x) (expression float sqrt (expression float - (expression float * (var_ref x) (var_ref x)) (constant float (1))))))))) - - (signature vec2 - (parameters - (declare (in) vec2 x)) - ((return (expression vec2 log (expression vec2 + (var_ref x) (expression vec2 sqrt (expression vec2 - (expression vec2 * (var_ref x) (var_ref x)) (constant float (1))))))))) - - (signature vec3 - (parameters - (declare (in) vec3 x)) - ((return (expression vec3 log (expression vec3 + (var_ref x) (expression vec3 sqrt (expression vec3 - (expression vec3 * (var_ref x) (var_ref x)) (constant float (1))))))))) - - (signature vec4 - (parameters - (declare (in) vec4 x)) - ((return (expression vec4 log (expression vec4 + (var_ref x) (expression vec4 sqrt (expression vec4 - (expression vec4 * (var_ref x) (var_ref x)) (constant float (1))))))))) -)) diff --git a/src/glsl/builtins/ir/all.ir b/src/glsl/builtins/ir/all.ir deleted file mode 100644 index 2cac0dfb684..00000000000 --- a/src/glsl/builtins/ir/all.ir +++ /dev/null @@ -1,16 +0,0 @@ -((function all - (signature bool - (parameters - (declare (in) bvec2 arg0)) - ((return (expression bool && (swiz x (var_ref arg0))(swiz y (var_ref arg0)))))) - - (signature bool - (parameters - (declare (in) bvec3 arg0)) - ((return (expression bool && (expression bool && (swiz x (var_ref arg0))(swiz y (var_ref arg0))) (swiz z (var_ref arg0)))))) - - (signature bool - (parameters - (declare (in) bvec4 arg0)) - ((return (expression bool && (expression bool && (expression bool && (swiz x (var_ref arg0))(swiz y (var_ref arg0))) (swiz z (var_ref arg0))) (swiz w (var_ref arg0)))))) -)) diff --git a/src/glsl/builtins/ir/any.ir b/src/glsl/builtins/ir/any.ir deleted file mode 100644 index cc6038a3156..00000000000 --- a/src/glsl/builtins/ir/any.ir +++ /dev/null @@ -1,16 +0,0 @@ -((function any - (signature bool - (parameters - (declare (in) bvec2 arg0)) - ((return (expression bool any (var_ref arg0))))) - - (signature bool - (parameters - (declare (in) bvec3 arg0)) - ((return (expression bool any (var_ref arg0))))) - - (signature bool - (parameters - (declare (in) bvec4 arg0)) - ((return (expression bool any (var_ref arg0))))) -)) diff --git a/src/glsl/builtins/ir/asin.ir b/src/glsl/builtins/ir/asin.ir deleted file mode 100644 index 45d9e672958..00000000000 --- a/src/glsl/builtins/ir/asin.ir +++ /dev/null @@ -1,109 +0,0 @@ -((function asin - (signature float - (parameters - (declare (in) float x)) - ((return (expression float * - (expression float sign (var_ref x)) - (expression float - - (constant float (1.5707964)) - (expression float * - (expression float sqrt - (expression float - - (constant float (1.0)) - (expression float abs (var_ref x)))) - (expression float + - (constant float (1.5707964)) - (expression float * - (expression float abs (var_ref x)) - (expression float + - (constant float (-0.21460183)) - (expression float * - (expression float abs (var_ref x)) - (expression float + - (constant float (0.086566724)) - (expression float * - (expression float abs (var_ref x)) - (constant float (-0.03102955)) - )))))))))))) - - (signature vec2 - (parameters - (declare (in) vec2 x)) - ((return (expression vec2 * - (expression vec2 sign (var_ref x)) - (expression vec2 - - (constant float (1.5707964)) - (expression vec2 * - (expression vec2 sqrt - (expression vec2 - - (constant float (1.0)) - (expression vec2 abs (var_ref x)))) - (expression vec2 + - (constant float (1.5707964)) - (expression vec2 * - (expression vec2 abs (var_ref x)) - (expression vec2 + - (constant float (-0.21460183)) - (expression vec2 * - (expression vec2 abs (var_ref x)) - (expression vec2 + - (constant float (0.086566724)) - (expression vec2 * - (expression vec2 abs (var_ref x)) - (constant float (-0.03102955)) - )))))))))))) - - (signature vec3 - (parameters - (declare (in) vec3 x)) - ((return (expression vec3 * - (expression vec3 sign (var_ref x)) - (expression vec3 - - (constant float (1.5707964)) - (expression vec3 * - (expression vec3 sqrt - (expression vec3 - - (constant float (1.0)) - (expression vec3 abs (var_ref x)))) - (expression vec3 + - (constant float (1.5707964)) - (expression vec3 * - (expression vec3 abs (var_ref x)) - (expression vec3 + - (constant float (-0.21460183)) - (expression vec3 * - (expression vec3 abs (var_ref x)) - (expression vec3 + - (constant float (0.086566724)) - (expression vec3 * - (expression vec3 abs (var_ref x)) - (constant float (-0.03102955)) - )))))))))))) - - (signature vec4 - (parameters - (declare (in) vec4 x)) - ((return (expression vec4 * - (expression vec4 sign (var_ref x)) - (expression vec4 - - (constant float (1.5707964)) - (expression vec4 * - (expression vec4 sqrt - (expression vec4 - - (constant float (1.0)) - (expression vec4 abs (var_ref x)))) - (expression vec4 + - (constant float (1.5707964)) - (expression vec4 * - (expression vec4 abs (var_ref x)) - (expression vec4 + - (constant float (-0.21460183)) - (expression vec4 * - (expression vec4 abs (var_ref x)) - (expression vec4 + - (constant float (0.086566724)) - (expression vec4 * - (expression vec4 abs (var_ref x)) - (constant float (-0.03102955)) - )))))))))))) -)) diff --git a/src/glsl/builtins/ir/asinh.ir b/src/glsl/builtins/ir/asinh.ir deleted file mode 100644 index d2dc7102cc3..00000000000 --- a/src/glsl/builtins/ir/asinh.ir +++ /dev/null @@ -1,53 +0,0 @@ -((function asinh - (signature float - (parameters - (declare (in) float x)) - ((return (expression float * - (expression float sign (var_ref x)) - (expression float log - (expression float + - (expression float abs (var_ref x)) - (expression float sqrt - (expression float + - (expression float * (var_ref x) (var_ref x)) - (constant float (1)))))))))) - - (signature vec2 - (parameters - (declare (in) vec2 x)) - ((return (expression vec2 * - (expression vec2 sign (var_ref x)) - (expression vec2 log - (expression vec2 + - (expression vec2 abs (var_ref x)) - (expression vec2 sqrt - (expression vec2 + - (expression vec2 * (var_ref x) (var_ref x)) - (constant float (1)))))))))) - - (signature vec3 - (parameters - (declare (in) vec3 x)) - ((return (expression vec3 * - (expression vec3 sign (var_ref x)) - (expression vec3 log - (expression vec3 + - (expression vec3 abs (var_ref x)) - (expression vec3 sqrt - (expression vec3 + - (expression vec3 * (var_ref x) (var_ref x)) - (constant float (1)))))))))) - - (signature vec4 - (parameters - (declare (in) vec4 x)) - ((return (expression vec4 * - (expression vec4 sign (var_ref x)) - (expression vec4 log - (expression vec4 + - (expression vec4 abs (var_ref x)) - (expression vec4 sqrt - (expression vec4 + - (expression vec4 * (var_ref x) (var_ref x)) - (constant float (1)))))))))) -)) diff --git a/src/glsl/builtins/ir/atan.ir b/src/glsl/builtins/ir/atan.ir deleted file mode 100644 index a9dc08e9727..00000000000 --- a/src/glsl/builtins/ir/atan.ir +++ /dev/null @@ -1,134 +0,0 @@ -((function atan - (signature float - (parameters - (declare (in) float y_over_x)) - ((declare () float s) - (call asin (var_ref s) - ((expression float * - (var_ref y_over_x) - (expression float rsq - (expression float + - (expression float * - (var_ref y_over_x) - (var_ref y_over_x)) - (constant float (1.0))))))) - (return (var_ref s)))) - - (signature vec2 - (parameters - (declare (in) vec2 y_over_x)) - ((declare () vec2 s) - (call asin (var_ref s) - ((expression vec2 * - (var_ref y_over_x) - (expression vec2 rsq - (expression vec2 + - (expression vec2 * - (var_ref y_over_x) - (var_ref y_over_x)) - (constant float (1.0))))))) - (return (var_ref s)))) - - (signature vec3 - (parameters - (declare (in) vec3 y_over_x)) - ((declare () vec3 s) - (call asin (var_ref s) - ((expression vec3 * - (var_ref y_over_x) - (expression vec3 rsq - (expression vec3 + - (expression vec3 * - (var_ref y_over_x) - (var_ref y_over_x)) - (constant float (1.0))))))) - (return (var_ref s)))) - - (signature vec4 - (parameters - (declare (in) vec4 y_over_x)) - ((declare () vec4 s) - (call asin (var_ref s) - ((expression vec4 * - (var_ref y_over_x) - (expression vec4 rsq - (expression vec4 + - (expression vec4 * - (var_ref y_over_x) - (var_ref y_over_x)) - (constant float (1.0))))))) - (return (var_ref s)))) - - (signature float - (parameters - (declare (in ) float y) - (declare (in ) float x) - ) - ( - (declare () float r) - (if (expression bool > - (expression float abs (var_ref x)) - (expression float * (constant float (1.0e-8)) (expression float abs (var_ref y)))) ( - (call atan (var_ref r) ((expression float / (var_ref y) (var_ref x)))) - (if (expression bool < (var_ref x) (constant float (0.000000)) ) ( - (if (expression bool >= (var_ref y) (constant float (0.000000)) ) - ((assign (x) (var_ref r) (expression float + (var_ref r) (constant float (3.141593))))) - ((assign (x) (var_ref r) (expression float - (var_ref r) (constant float (3.141593)))))) - ) - ( - )) - ) - ( - (declare () float sgn) - (assign (x) (var_ref sgn) (expression float sign (var_ref y))) - (assign (x) (var_ref r) (expression float * (var_ref sgn) (constant float (1.5707965)))) - )) - - (return (var_ref r) ) - )) - - - - (signature vec2 - (parameters - (declare (in) vec2 y) - (declare (in) vec2 x)) - ((declare () vec2 r) - (declare () float temp) - (call atan (var_ref temp) ((swiz x (var_ref y)) (swiz x (var_ref x)))) - (assign (x) (var_ref r) (var_ref temp)) - (call atan (var_ref temp) ((swiz y (var_ref y)) (swiz y (var_ref x)))) - (assign (y) (var_ref r) (var_ref temp)) - (return (var_ref r)))) - - (signature vec3 - (parameters - (declare (in) vec3 y) - (declare (in) vec3 x)) - ((declare () vec3 r) - (declare () float temp) - (call atan (var_ref temp) ((swiz x (var_ref y)) (swiz x (var_ref x)))) - (assign (x) (var_ref r) (var_ref temp)) - (call atan (var_ref temp) ((swiz y (var_ref y)) (swiz y (var_ref x)))) - (assign (y) (var_ref r) (var_ref temp)) - (call atan (var_ref temp) ((swiz z (var_ref y)) (swiz z (var_ref x)))) - (assign (z) (var_ref r) (var_ref temp)) - (return (var_ref r)))) - - (signature vec4 - (parameters - (declare (in) vec4 y) - (declare (in) vec4 x)) - ((declare () vec4 r) - (declare () float temp) - (call atan (var_ref temp) ((swiz x (var_ref y)) (swiz x (var_ref x)))) - (assign (x) (var_ref r) (var_ref temp)) - (call atan (var_ref temp) ((swiz y (var_ref y)) (swiz y (var_ref x)))) - (assign (y) (var_ref r) (var_ref temp)) - (call atan (var_ref temp) ((swiz z (var_ref y)) (swiz z (var_ref x)))) - (assign (z) (var_ref r) (var_ref temp)) - (call atan (var_ref temp) ((swiz w (var_ref y)) (swiz w (var_ref x)))) - (assign (w) (var_ref r) (var_ref temp)) - (return (var_ref r)))) - -)) diff --git a/src/glsl/builtins/ir/atanh.ir b/src/glsl/builtins/ir/atanh.ir deleted file mode 100644 index 5ef3596f052..00000000000 --- a/src/glsl/builtins/ir/atanh.ir +++ /dev/null @@ -1,37 +0,0 @@ -((function atanh - (signature float - (parameters - (declare (in) float x)) - ((return (expression float * (constant float (0.5)) - (expression float log - (expression float / - (expression float + (constant float (1)) (var_ref x)) - (expression float - (constant float (1)) (var_ref x)))))))) - - (signature vec2 - (parameters - (declare (in) vec2 x)) - ((return (expression vec2 * (constant float (0.5)) - (expression vec2 log - (expression vec2 / - (expression vec2 + (constant float (1)) (var_ref x)) - (expression vec2 - (constant float (1)) (var_ref x)))))))) - - (signature vec3 - (parameters - (declare (in) vec3 x)) - ((return (expression vec3 * (constant float (0.5)) - (expression vec3 log - (expression vec3 / - (expression vec3 + (constant float (1)) (var_ref x)) - (expression vec3 - (constant float (1)) (var_ref x)))))))) - - (signature vec4 - (parameters - (declare (in) vec4 x)) - ((return (expression vec4 * (constant float (0.5)) - (expression vec4 log - (expression vec4 / - (expression vec4 + (constant float (1)) (var_ref x)) - (expression vec4 - (constant float (1)) (var_ref x)))))))) -)) diff --git a/src/glsl/builtins/ir/bitCount.ir b/src/glsl/builtins/ir/bitCount.ir deleted file mode 100644 index 71fcae2db1a..00000000000 --- a/src/glsl/builtins/ir/bitCount.ir +++ /dev/null @@ -1,41 +0,0 @@ -((function bitCount - (signature int - (parameters - (declare (in) int value)) - ((return (expression int bit_count (var_ref value))))) - - (signature ivec2 - (parameters - (declare (in) ivec2 value)) - ((return (expression ivec2 bit_count (var_ref value))))) - - (signature ivec3 - (parameters - (declare (in) ivec3 value)) - ((return (expression ivec3 bit_count (var_ref value))))) - - (signature ivec4 - (parameters - (declare (in) ivec4 value)) - ((return (expression ivec4 bit_count (var_ref value))))) - - (signature int - (parameters - (declare (in) uint value)) - ((return (expression int bit_count (var_ref value))))) - - (signature ivec2 - (parameters - (declare (in) uvec2 value)) - ((return (expression ivec2 bit_count (var_ref value))))) - - (signature ivec3 - (parameters - (declare (in) uvec3 value)) - ((return (expression ivec3 bit_count (var_ref value))))) - - (signature ivec4 - (parameters - (declare (in) uvec4 value)) - ((return (expression ivec4 bit_count (var_ref value))))) -)) diff --git a/src/glsl/builtins/ir/bitfieldExtract.ir b/src/glsl/builtins/ir/bitfieldExtract.ir deleted file mode 100644 index 0491c82180b..00000000000 --- a/src/glsl/builtins/ir/bitfieldExtract.ir +++ /dev/null @@ -1,57 +0,0 @@ -((function bitfieldExtract - (signature int - (parameters - (declare (in) int value) - (declare (in) int offset) - (declare (in) int bits)) - ((return (expression int bitfield_extract (var_ref value) (var_ref offset) (var_ref bits))))) - - (signature ivec2 - (parameters - (declare (in) ivec2 value) - (declare (in) int offset) - (declare (in) int bits)) - ((return (expression ivec2 bitfield_extract (var_ref value) (var_ref offset) (var_ref bits))))) - - (signature ivec3 - (parameters - (declare (in) ivec3 value) - (declare (in) int offset) - (declare (in) int bits)) - ((return (expression ivec3 bitfield_extract (var_ref value) (var_ref offset) (var_ref bits))))) - - (signature ivec4 - (parameters - (declare (in) ivec4 value) - (declare (in) int offset) - (declare (in) int bits)) - ((return (expression ivec4 bitfield_extract (var_ref value) (var_ref offset) (var_ref bits))))) - - (signature uint - (parameters - (declare (in) uint value) - (declare (in) int offset) - (declare (in) int bits)) - ((return (expression uint bitfield_extract (var_ref value) (var_ref offset) (var_ref bits))))) - - (signature uvec2 - (parameters - (declare (in) uvec2 value) - (declare (in) int offset) - (declare (in) int bits)) - ((return (expression uvec2 bitfield_extract (var_ref value) (var_ref offset) (var_ref bits))))) - - (signature uvec3 - (parameters - (declare (in) uvec3 value) - (declare (in) int offset) - (declare (in) int bits)) - ((return (expression uvec3 bitfield_extract (var_ref value) (var_ref offset) (var_ref bits))))) - - (signature uvec4 - (parameters - (declare (in) uvec4 value) - (declare (in) int offset) - (declare (in) int bits)) - ((return (expression uvec4 bitfield_extract (var_ref value) (var_ref offset) (var_ref bits))))) -)) diff --git a/src/glsl/builtins/ir/bitfieldInsert.ir b/src/glsl/builtins/ir/bitfieldInsert.ir deleted file mode 100644 index 2bb4442bef8..00000000000 --- a/src/glsl/builtins/ir/bitfieldInsert.ir +++ /dev/null @@ -1,65 +0,0 @@ -((function bitfieldInsert - (signature int - (parameters - (declare (in) int base) - (declare (in) int insert) - (declare (in) int offset) - (declare (in) int bits)) - ((return (expression int bitfield_insert (var_ref base) (var_ref insert) (var_ref offset) (var_ref bits))))) - - (signature ivec2 - (parameters - (declare (in) ivec2 base) - (declare (in) ivec2 insert) - (declare (in) int offset) - (declare (in) int bits)) - ((return (expression ivec2 bitfield_insert (var_ref base) (var_ref insert) (var_ref offset) (var_ref bits))))) - - (signature ivec3 - (parameters - (declare (in) ivec3 base) - (declare (in) ivec3 insert) - (declare (in) int offset) - (declare (in) int bits)) - ((return (expression ivec3 bitfield_insert (var_ref base) (var_ref insert) (var_ref offset) (var_ref bits))))) - - (signature ivec4 - (parameters - (declare (in) ivec4 base) - (declare (in) ivec4 insert) - (declare (in) int offset) - (declare (in) int bits)) - ((return (expression ivec4 bitfield_insert (var_ref base) (var_ref insert) (var_ref offset) (var_ref bits))))) - - (signature uint - (parameters - (declare (in) uint base) - (declare (in) uint insert) - (declare (in) int offset) - (declare (in) int bits)) - ((return (expression uint bitfield_insert (var_ref base) (var_ref insert) (var_ref offset) (var_ref bits))))) - - (signature uvec2 - (parameters - (declare (in) uvec2 base) - (declare (in) uvec2 insert) - (declare (in) int offset) - (declare (in) int bits)) - ((return (expression uvec2 bitfield_insert (var_ref base) (var_ref insert) (var_ref offset) (var_ref bits))))) - - (signature uvec3 - (parameters - (declare (in) uvec3 base) - (declare (in) uvec3 insert) - (declare (in) int offset) - (declare (in) int bits)) - ((return (expression uvec3 bitfield_insert (var_ref base) (var_ref insert) (var_ref offset) (var_ref bits))))) - - (signature uvec4 - (parameters - (declare (in) uvec4 base) - (declare (in) uvec4 insert) - (declare (in) int offset) - (declare (in) int bits)) - ((return (expression uvec4 bitfield_insert (var_ref base) (var_ref insert) (var_ref offset) (var_ref bits))))) -)) diff --git a/src/glsl/builtins/ir/bitfieldReverse.ir b/src/glsl/builtins/ir/bitfieldReverse.ir deleted file mode 100644 index f05c119edb3..00000000000 --- a/src/glsl/builtins/ir/bitfieldReverse.ir +++ /dev/null @@ -1,41 +0,0 @@ -((function bitfieldReverse - (signature int - (parameters - (declare (in) int value)) - ((return (expression int bitfield_reverse (var_ref value))))) - - (signature ivec2 - (parameters - (declare (in) ivec2 value)) - ((return (expression ivec2 bitfield_reverse (var_ref value))))) - - (signature ivec3 - (parameters - (declare (in) ivec3 value)) - ((return (expression ivec3 bitfield_reverse (var_ref value))))) - - (signature ivec4 - (parameters - (declare (in) ivec4 value)) - ((return (expression ivec4 bitfield_reverse (var_ref value))))) - - (signature uint - (parameters - (declare (in) uint value)) - ((return (expression uint bitfield_reverse (var_ref value))))) - - (signature uvec2 - (parameters - (declare (in) uvec2 value)) - ((return (expression uvec2 bitfield_reverse (var_ref value))))) - - (signature uvec3 - (parameters - (declare (in) uvec3 value)) - ((return (expression uvec3 bitfield_reverse (var_ref value))))) - - (signature uvec4 - (parameters - (declare (in) uvec4 value)) - ((return (expression uvec4 bitfield_reverse (var_ref value))))) -)) diff --git a/src/glsl/builtins/ir/ceil.ir b/src/glsl/builtins/ir/ceil.ir deleted file mode 100644 index a26a7750493..00000000000 --- a/src/glsl/builtins/ir/ceil.ir +++ /dev/null @@ -1,21 +0,0 @@ -((function ceil - (signature float - (parameters - (declare (in) float arg0)) - ((return (expression float ceil (var_ref arg0))))) - - (signature vec2 - (parameters - (declare (in) vec2 arg0)) - ((return (expression vec2 ceil (var_ref arg0))))) - - (signature vec3 - (parameters - (declare (in) vec3 arg0)) - ((return (expression vec3 ceil (var_ref arg0))))) - - (signature vec4 - (parameters - (declare (in) vec4 arg0)) - ((return (expression vec4 ceil (var_ref arg0))))) -)) diff --git a/src/glsl/builtins/ir/clamp.ir b/src/glsl/builtins/ir/clamp.ir deleted file mode 100644 index 2bdc466b269..00000000000 --- a/src/glsl/builtins/ir/clamp.ir +++ /dev/null @@ -1,148 +0,0 @@ -((function clamp - (signature float - (parameters - (declare (in) float arg0) - (declare (in) float arg1) - (declare (in) float arg2)) - ((return (expression float max (expression float min (var_ref arg0) (var_ref arg2)) (var_ref arg1))))) - - (signature vec2 - (parameters - (declare (in) vec2 arg0) - (declare (in) vec2 arg1) - (declare (in) vec2 arg2)) - ((return (expression vec2 max (expression vec2 min (var_ref arg0) (var_ref arg2)) (var_ref arg1))))) - - (signature vec3 - (parameters - (declare (in) vec3 arg0) - (declare (in) vec3 arg1) - (declare (in) vec3 arg2)) - ((return (expression vec3 max (expression vec3 min (var_ref arg0) (var_ref arg2)) (var_ref arg1))))) - - (signature vec4 - (parameters - (declare (in) vec4 arg0) - (declare (in) vec4 arg1) - (declare (in) vec4 arg2)) - ((return (expression vec4 max (expression vec4 min (var_ref arg0) (var_ref arg2)) (var_ref arg1))))) - - (signature vec2 - (parameters - (declare (in) vec2 arg0) - (declare (in) float arg1) - (declare (in) float arg2)) - ((return (expression vec2 max (expression vec2 min (var_ref arg0) (var_ref arg2)) (var_ref arg1))))) - - (signature vec3 - (parameters - (declare (in) vec3 arg0) - (declare (in) float arg1) - (declare (in) float arg2)) - ((return (expression vec3 max (expression vec3 min (var_ref arg0) (var_ref arg2)) (var_ref arg1))))) - - (signature vec4 - (parameters - (declare (in) vec4 arg0) - (declare (in) float arg1) - (declare (in) float arg2)) - ((return (expression vec4 max (expression vec4 min (var_ref arg0) (var_ref arg2)) (var_ref arg1))))) - - (signature int - (parameters - (declare (in) int arg0) - (declare (in) int arg1) - (declare (in) int arg2)) - ((return (expression int max (expression int min (var_ref arg0) (var_ref arg2)) (var_ref arg1))))) - - (signature ivec2 - (parameters - (declare (in) ivec2 arg0) - (declare (in) ivec2 arg1) - (declare (in) ivec2 arg2)) - ((return (expression ivec2 max (expression ivec2 min (var_ref arg0) (var_ref arg2)) (var_ref arg1))))) - - (signature ivec3 - (parameters - (declare (in) ivec3 arg0) - (declare (in) ivec3 arg1) - (declare (in) ivec3 arg2)) - ((return (expression ivec3 max (expression ivec3 min (var_ref arg0) (var_ref arg2)) (var_ref arg1))))) - - (signature ivec4 - (parameters - (declare (in) ivec4 arg0) - (declare (in) ivec4 arg1) - (declare (in) ivec4 arg2)) - ((return (expression ivec4 max (expression ivec4 min (var_ref arg0) (var_ref arg2)) (var_ref arg1))))) - - (signature ivec2 - (parameters - (declare (in) ivec2 arg0) - (declare (in) int arg1) - (declare (in) int arg2)) - ((return (expression ivec2 max (expression ivec2 min (var_ref arg0) (var_ref arg2)) (var_ref arg1))))) - - (signature ivec3 - (parameters - (declare (in) ivec3 arg0) - (declare (in) int arg1) - (declare (in) int arg2)) - ((return (expression ivec3 max (expression ivec3 min (var_ref arg0) (var_ref arg2)) (var_ref arg1))))) - - (signature ivec4 - (parameters - (declare (in) ivec4 arg0) - (declare (in) int arg1) - (declare (in) int arg2)) - ((return (expression ivec4 max (expression ivec4 min (var_ref arg0) (var_ref arg2)) (var_ref arg1))))) - - (signature uint - (parameters - (declare (in) uint arg0) - (declare (in) uint arg1) - (declare (in) uint arg2)) - ((return (expression uint max (expression uint min (var_ref arg0) (var_ref arg2)) (var_ref arg1))))) - - (signature uvec2 - (parameters - (declare (in) uvec2 arg0) - (declare (in) uvec2 arg1) - (declare (in) uvec2 arg2)) - ((return (expression uvec2 max (expression uvec2 min (var_ref arg0) (var_ref arg2)) (var_ref arg1))))) - - (signature uvec3 - (parameters - (declare (in) uvec3 arg0) - (declare (in) uvec3 arg1) - (declare (in) uvec3 arg2)) - ((return (expression uvec3 max (expression uvec3 min (var_ref arg0) (var_ref arg2)) (var_ref arg1))))) - - (signature uvec4 - (parameters - (declare (in) uvec4 arg0) - (declare (in) uvec4 arg1) - (declare (in) uvec4 arg2)) - ((return (expression uvec4 max (expression uvec4 min (var_ref arg0) (var_ref arg2)) (var_ref arg1))))) - - (signature uvec2 - (parameters - (declare (in) uvec2 arg0) - (declare (in) uint arg1) - (declare (in) uint arg2)) - ((return (expression uvec2 max (expression uvec2 min (var_ref arg0) (var_ref arg2)) (var_ref arg1))))) - - (signature uvec3 - (parameters - (declare (in) uvec3 arg0) - (declare (in) uint arg1) - (declare (in) uint arg2)) - ((return (expression uvec3 max (expression uvec3 min (var_ref arg0) (var_ref arg2)) (var_ref arg1))))) - - (signature uvec4 - (parameters - (declare (in) uvec4 arg0) - (declare (in) uint arg1) - (declare (in) uint arg2)) - ((return (expression uvec4 max (expression uvec4 min (var_ref arg0) (var_ref arg2)) (var_ref arg1))))) -)) diff --git a/src/glsl/builtins/ir/cos.ir b/src/glsl/builtins/ir/cos.ir deleted file mode 100644 index 88f266eccbe..00000000000 --- a/src/glsl/builtins/ir/cos.ir +++ /dev/null @@ -1,21 +0,0 @@ -((function cos - (signature float - (parameters - (declare (in) float angle)) - ((return (expression float cos (var_ref angle))))) - - (signature vec2 - (parameters - (declare (in) vec2 angle)) - ((return (expression vec2 cos (var_ref angle))))) - - (signature vec3 - (parameters - (declare (in) vec3 angle)) - ((return (expression vec3 cos (var_ref angle))))) - - (signature vec4 - (parameters - (declare (in) vec4 angle)) - ((return (expression vec4 cos (var_ref angle))))) -)) diff --git a/src/glsl/builtins/ir/cosh.ir b/src/glsl/builtins/ir/cosh.ir deleted file mode 100644 index 945743138fc..00000000000 --- a/src/glsl/builtins/ir/cosh.ir +++ /dev/null @@ -1,30 +0,0 @@ -((function cosh - (signature float - (parameters - (declare (in) float x)) - ((return (expression float * (constant float (0.5)) - (expression float + - (expression float exp (var_ref x)) - (expression float exp (expression float neg (var_ref x)))))))) - (signature vec2 - (parameters - (declare (in) vec2 x)) - ((return (expression vec2 * (constant float (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)) - ((return (expression vec3 * (constant float (0.5)) - (expression vec3 + - (expression vec3 exp (var_ref x)) - (expression vec3 exp (expression vec3 neg (var_ref x)))))))) - (signature vec4 - (parameters - (declare (in) vec4 x)) - ((return (expression vec4 * (constant float (0.5)) - (expression vec4 + - (expression vec4 exp (var_ref x)) - (expression vec4 exp (expression vec4 neg (var_ref x)))))))) -)) diff --git a/src/glsl/builtins/ir/cross.ir b/src/glsl/builtins/ir/cross.ir deleted file mode 100644 index 02991fe4227..00000000000 --- a/src/glsl/builtins/ir/cross.ir +++ /dev/null @@ -1,9 +0,0 @@ -((function cross - (signature vec3 - (parameters - (declare (in) vec3 a) - (declare (in) vec3 b)) - ((return (expression vec3 - - (expression vec3 * (swiz yzx (var_ref a)) (swiz zxy (var_ref b))) - (expression vec3 * (swiz zxy (var_ref a)) (swiz yzx (var_ref b))))))) -)) diff --git a/src/glsl/builtins/ir/dFdx.ir b/src/glsl/builtins/ir/dFdx.ir deleted file mode 100644 index 30594d33c74..00000000000 --- a/src/glsl/builtins/ir/dFdx.ir +++ /dev/null @@ -1,21 +0,0 @@ -((function dFdx - (signature float - (parameters - (declare (in) float p)) - ((return (expression float dFdx (var_ref p))))) - - (signature vec2 - (parameters - (declare (in) vec2 p)) - ((return (expression vec2 dFdx (var_ref p))))) - - (signature vec3 - (parameters - (declare (in) vec3 p)) - ((return (expression vec3 dFdx (var_ref p))))) - - (signature vec4 - (parameters - (declare (in) vec4 p)) - ((return (expression vec4 dFdx (var_ref p))))) -)) diff --git a/src/glsl/builtins/ir/dFdy.ir b/src/glsl/builtins/ir/dFdy.ir deleted file mode 100644 index fb5798d3cbe..00000000000 --- a/src/glsl/builtins/ir/dFdy.ir +++ /dev/null @@ -1,21 +0,0 @@ -((function dFdy - (signature float - (parameters - (declare (in) float p)) - ((return (expression float dFdy (var_ref p))))) - - (signature vec2 - (parameters - (declare (in) vec2 p)) - ((return (expression vec2 dFdy (var_ref p))))) - - (signature vec3 - (parameters - (declare (in) vec3 p)) - ((return (expression vec3 dFdy (var_ref p))))) - - (signature vec4 - (parameters - (declare (in) vec4 p)) - ((return (expression vec4 dFdy (var_ref p))))) -)) diff --git a/src/glsl/builtins/ir/degrees.ir b/src/glsl/builtins/ir/degrees.ir deleted file mode 100644 index dc0d7b9e20d..00000000000 --- a/src/glsl/builtins/ir/degrees.ir +++ /dev/null @@ -1,21 +0,0 @@ -((function degrees - (signature float - (parameters - (declare (in) float arg0)) - ((return (expression float * (var_ref arg0) (constant float (57.295780)))))) - - (signature vec2 - (parameters - (declare (in) vec2 arg0)) - ((return (expression vec2 * (var_ref arg0) (constant float (57.295780)))))) - - (signature vec3 - (parameters - (declare (in) vec3 arg0)) - ((return (expression vec3 * (var_ref arg0) (constant float (57.295780)))))) - - (signature vec4 - (parameters - (declare (in) vec4 arg0)) - ((return (expression vec4 * (var_ref arg0) (constant float (57.295780)))))) -)) diff --git a/src/glsl/builtins/ir/distance.ir b/src/glsl/builtins/ir/distance.ir deleted file mode 100644 index c249f8c9962..00000000000 --- a/src/glsl/builtins/ir/distance.ir +++ /dev/null @@ -1,31 +0,0 @@ -((function distance - (signature float - (parameters - (declare (in) float p0) - (declare (in) float p1)) - ((return (expression float abs (expression float - (var_ref p0) (var_ref p1)))))) - - (signature float - (parameters - (declare (in) vec2 p0) - (declare (in) vec2 p1)) - ((declare () vec2 p) - (assign (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 - (parameters - (declare (in) vec3 p0) - (declare (in) vec3 p1)) - ((declare () vec3 p) - (assign (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 - (parameters - (declare (in) vec4 p0) - (declare (in) vec4 p1)) - ((declare () vec4 p) - (assign (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)))))) -)) diff --git a/src/glsl/builtins/ir/dot.ir b/src/glsl/builtins/ir/dot.ir deleted file mode 100644 index 1f27f323597..00000000000 --- a/src/glsl/builtins/ir/dot.ir +++ /dev/null @@ -1,25 +0,0 @@ -((function dot - (signature float - (parameters - (declare (in) float arg0) - (declare (in) float arg1)) - ((return (expression float * (var_ref arg0) (var_ref arg1))))) - - (signature float - (parameters - (declare (in) vec2 arg0) - (declare (in) vec2 arg1)) - ((return (expression float dot (var_ref arg0) (var_ref arg1))))) - - (signature float - (parameters - (declare (in) vec3 arg0) - (declare (in) vec3 arg1)) - ((return (expression float dot (var_ref arg0) (var_ref arg1))))) - - (signature float - (parameters - (declare (in) vec4 arg0) - (declare (in) vec4 arg1)) - ((return (expression float dot (var_ref arg0) (var_ref arg1))))) -)) diff --git a/src/glsl/builtins/ir/equal.ir b/src/glsl/builtins/ir/equal.ir deleted file mode 100644 index a414b3e535f..00000000000 --- a/src/glsl/builtins/ir/equal.ir +++ /dev/null @@ -1,73 +0,0 @@ -((function equal - (signature bvec2 - (parameters - (declare (in) vec2 arg0) - (declare (in) vec2 arg1)) - ((return (expression bvec2 == (var_ref arg0) (var_ref arg1))))) - - (signature bvec3 - (parameters - (declare (in) vec3 arg0) - (declare (in) vec3 arg1)) - ((return (expression bvec3 == (var_ref arg0) (var_ref arg1))))) - - (signature bvec4 - (parameters - (declare (in) vec4 arg0) - (declare (in) vec4 arg1)) - ((return (expression bvec4 == (var_ref arg0) (var_ref arg1))))) - - (signature bvec2 - (parameters - (declare (in) bvec2 arg0) - (declare (in) bvec2 arg1)) - ((return (expression bvec2 == (var_ref arg0) (var_ref arg1))))) - - (signature bvec3 - (parameters - (declare (in) bvec3 arg0) - (declare (in) bvec3 arg1)) - ((return (expression bvec3 == (var_ref arg0) (var_ref arg1))))) - - (signature bvec4 - (parameters - (declare (in) bvec4 arg0) - (declare (in) bvec4 arg1)) - ((return (expression bvec4 == (var_ref arg0) (var_ref arg1))))) - - (signature bvec2 - (parameters - (declare (in) ivec2 arg0) - (declare (in) ivec2 arg1)) - ((return (expression bvec2 == (var_ref arg0) (var_ref arg1))))) - - (signature bvec3 - (parameters - (declare (in) ivec3 arg0) - (declare (in) ivec3 arg1)) - ((return (expression bvec3 == (var_ref arg0) (var_ref arg1))))) - - (signature bvec4 - (parameters - (declare (in) ivec4 arg0) - (declare (in) ivec4 arg1)) - ((return (expression bvec4 == (var_ref arg0) (var_ref arg1))))) - - (signature bvec2 - (parameters - (declare (in) uvec2 arg0) - (declare (in) uvec2 arg1)) - ((return (expression bvec2 == (var_ref arg0) (var_ref arg1))))) - - (signature bvec3 - (parameters - (declare (in) uvec3 arg0) - (declare (in) uvec3 arg1)) - ((return (expression bvec3 == (var_ref arg0) (var_ref arg1))))) - - (signature bvec4 - (parameters - (declare (in) uvec4 arg0) - (declare (in) uvec4 arg1)) - ((return (expression bvec4 == (var_ref arg0) (var_ref arg1))))) -)) diff --git a/src/glsl/builtins/ir/exp.ir b/src/glsl/builtins/ir/exp.ir deleted file mode 100644 index a73bd6a7f84..00000000000 --- a/src/glsl/builtins/ir/exp.ir +++ /dev/null @@ -1,21 +0,0 @@ -((function exp - (signature float - (parameters - (declare (in) float arg0)) - ((return (expression float exp (var_ref arg0))))) - - (signature vec2 - (parameters - (declare (in) vec2 arg0)) - ((return (expression vec2 exp (var_ref arg0))))) - - (signature vec3 - (parameters - (declare (in) vec3 arg0)) - ((return (expression vec3 exp (var_ref arg0))))) - - (signature vec4 - (parameters - (declare (in) vec4 arg0)) - ((return (expression vec4 exp (var_ref arg0))))) -)) diff --git a/src/glsl/builtins/ir/exp2.ir b/src/glsl/builtins/ir/exp2.ir deleted file mode 100644 index a842d3fe65b..00000000000 --- a/src/glsl/builtins/ir/exp2.ir +++ /dev/null @@ -1,21 +0,0 @@ -((function exp2 - (signature float - (parameters - (declare (in) float arg0)) - ((return (expression float exp2 (var_ref arg0))))) - - (signature vec2 - (parameters - (declare (in) vec2 arg0)) - ((return (expression vec2 exp2 (var_ref arg0))))) - - (signature vec3 - (parameters - (declare (in) vec3 arg0)) - ((return (expression vec3 exp2 (var_ref arg0))))) - - (signature vec4 - (parameters - (declare (in) vec4 arg0)) - ((return (expression vec4 exp2 (var_ref arg0))))) -)) diff --git a/src/glsl/builtins/ir/faceforward.ir b/src/glsl/builtins/ir/faceforward.ir deleted file mode 100644 index 35b79571c6b..00000000000 --- a/src/glsl/builtins/ir/faceforward.ir +++ /dev/null @@ -1,37 +0,0 @@ -((function faceforward - (signature float - (parameters - (declare (in) float N) - (declare (in) float I) - (declare (in) float Nref)) - ((if (expression bool < (expression float * (var_ref Nref) (var_ref I)) (constant float (0))) - ((return (var_ref N))) - ((return (expression float neg (var_ref N))))))) - - (signature vec2 - (parameters - (declare (in) vec2 N) - (declare (in) vec2 I) - (declare (in) vec2 Nref)) - ((if (expression bool < (expression float dot (var_ref Nref) (var_ref I)) (constant float (0))) - ((return (var_ref N))) - ((return (expression vec2 neg (var_ref N))))))) - - (signature vec3 - (parameters - (declare (in) vec3 N) - (declare (in) vec3 I) - (declare (in) vec3 Nref)) - ((if (expression bool < (expression float dot (var_ref Nref) (var_ref I)) (constant float (0))) - ((return (var_ref N))) - ((return (expression vec3 neg (var_ref N))))))) - - (signature vec4 - (parameters - (declare (in) vec4 N) - (declare (in) vec4 I) - (declare (in) vec4 Nref)) - ((if (expression bool < (expression float dot (var_ref Nref) (var_ref I)) (constant float (0))) - ((return (var_ref N))) - ((return (expression vec4 neg (var_ref N))))))) -)) diff --git a/src/glsl/builtins/ir/findLSB.ir b/src/glsl/builtins/ir/findLSB.ir deleted file mode 100644 index 2ddbb7f704d..00000000000 --- a/src/glsl/builtins/ir/findLSB.ir +++ /dev/null @@ -1,41 +0,0 @@ -((function findLSB - (signature int - (parameters - (declare (in) int value)) - ((return (expression int find_lsb (var_ref value))))) - - (signature ivec2 - (parameters - (declare (in) ivec2 value)) - ((return (expression ivec2 find_lsb (var_ref value))))) - - (signature ivec3 - (parameters - (declare (in) ivec3 value)) - ((return (expression ivec3 find_lsb (var_ref value))))) - - (signature ivec4 - (parameters - (declare (in) ivec4 value)) - ((return (expression ivec4 find_lsb (var_ref value))))) - - (signature int - (parameters - (declare (in) uint value)) - ((return (expression int find_lsb (var_ref value))))) - - (signature ivec2 - (parameters - (declare (in) uvec2 value)) - ((return (expression ivec2 find_lsb (var_ref value))))) - - (signature ivec3 - (parameters - (declare (in) uvec3 value)) - ((return (expression ivec3 find_lsb (var_ref value))))) - - (signature ivec4 - (parameters - (declare (in) uvec4 value)) - ((return (expression ivec4 find_lsb (var_ref value))))) -)) diff --git a/src/glsl/builtins/ir/findMSB.ir b/src/glsl/builtins/ir/findMSB.ir deleted file mode 100644 index 24e270f5e17..00000000000 --- a/src/glsl/builtins/ir/findMSB.ir +++ /dev/null @@ -1,41 +0,0 @@ -((function findMSB - (signature int - (parameters - (declare (in) int value)) - ((return (expression int find_msb (var_ref value))))) - - (signature ivec2 - (parameters - (declare (in) ivec2 value)) - ((return (expression ivec2 find_msb (var_ref value))))) - - (signature ivec3 - (parameters - (declare (in) ivec3 value)) - ((return (expression ivec3 find_msb (var_ref value))))) - - (signature ivec4 - (parameters - (declare (in) ivec4 value)) - ((return (expression ivec4 find_msb (var_ref value))))) - - (signature int - (parameters - (declare (in) uint value)) - ((return (expression int find_msb (var_ref value))))) - - (signature ivec2 - (parameters - (declare (in) uvec2 value)) - ((return (expression ivec2 find_msb (var_ref value))))) - - (signature ivec3 - (parameters - (declare (in) uvec3 value)) - ((return (expression ivec3 find_msb (var_ref value))))) - - (signature ivec4 - (parameters - (declare (in) uvec4 value)) - ((return (expression ivec4 find_msb (var_ref value))))) -)) diff --git a/src/glsl/builtins/ir/floatBitsToInt.ir b/src/glsl/builtins/ir/floatBitsToInt.ir deleted file mode 100644 index a5db4b3269a..00000000000 --- a/src/glsl/builtins/ir/floatBitsToInt.ir +++ /dev/null @@ -1,21 +0,0 @@ -((function floatBitsToInt - (signature int - (parameters - (declare (in) float arg)) - ((return (expression int bitcast_f2i (var_ref arg))))) - - (signature ivec2 - (parameters - (declare (in) vec2 arg)) - ((return (expression ivec2 bitcast_f2i (var_ref arg))))) - - (signature ivec3 - (parameters - (declare (in) vec3 arg)) - ((return (expression ivec3 bitcast_f2i (var_ref arg))))) - - (signature ivec4 - (parameters - (declare (in) vec4 arg)) - ((return (expression ivec4 bitcast_f2i (var_ref arg))))) -)) diff --git a/src/glsl/builtins/ir/floatBitsToUint.ir b/src/glsl/builtins/ir/floatBitsToUint.ir deleted file mode 100644 index 09463bd9a75..00000000000 --- a/src/glsl/builtins/ir/floatBitsToUint.ir +++ /dev/null @@ -1,21 +0,0 @@ -((function floatBitsToUint - (signature uint - (parameters - (declare (in) float arg)) - ((return (expression uint bitcast_f2u (var_ref arg))))) - - (signature uvec2 - (parameters - (declare (in) vec2 arg)) - ((return (expression uvec2 bitcast_f2u (var_ref arg))))) - - (signature uvec3 - (parameters - (declare (in) vec3 arg)) - ((return (expression uvec3 bitcast_f2u (var_ref arg))))) - - (signature uvec4 - (parameters - (declare (in) vec4 arg)) - ((return (expression uvec4 bitcast_f2u (var_ref arg))))) -)) diff --git a/src/glsl/builtins/ir/floor.ir b/src/glsl/builtins/ir/floor.ir deleted file mode 100644 index 8dd8052799b..00000000000 --- a/src/glsl/builtins/ir/floor.ir +++ /dev/null @@ -1,21 +0,0 @@ -((function floor - (signature float - (parameters - (declare (in) float arg0)) - ((return (expression float floor (var_ref arg0))))) - - (signature vec2 - (parameters - (declare (in) vec2 arg0)) - ((return (expression vec2 floor (var_ref arg0))))) - - (signature vec3 - (parameters - (declare (in) vec3 arg0)) - ((return (expression vec3 floor (var_ref arg0))))) - - (signature vec4 - (parameters - (declare (in) vec4 arg0)) - ((return (expression vec4 floor (var_ref arg0))))) -)) diff --git a/src/glsl/builtins/ir/fma.ir b/src/glsl/builtins/ir/fma.ir deleted file mode 100644 index c3695634db4..00000000000 --- a/src/glsl/builtins/ir/fma.ir +++ /dev/null @@ -1,29 +0,0 @@ -((function fma - (signature float - (parameters - (declare (in) float a) - (declare (in) float b) - (declare (in) float c)) - ((return (expression float fma (var_ref a) (var_ref b) (var_ref c))))) - - (signature vec2 - (parameters - (declare (in) vec2 a) - (declare (in) vec2 b) - (declare (in) vec2 c)) - ((return (expression vec2 fma (var_ref a) (var_ref b) (var_ref c))))) - - (signature vec3 - (parameters - (declare (in) vec3 a) - (declare (in) vec3 b) - (declare (in) vec3 c)) - ((return (expression vec3 fma (var_ref a) (var_ref b) (var_ref c))))) - - (signature vec4 - (parameters - (declare (in) vec4 a) - (declare (in) vec4 b) - (declare (in) vec4 c)) - ((return (expression vec4 fma (var_ref a) (var_ref b) (var_ref c))))) -)) diff --git a/src/glsl/builtins/ir/fract.ir b/src/glsl/builtins/ir/fract.ir deleted file mode 100644 index 3f0763d1b3e..00000000000 --- a/src/glsl/builtins/ir/fract.ir +++ /dev/null @@ -1,22 +0,0 @@ -((function fract - (signature float - (parameters - (declare (in) float x)) - ((return (expression float fract (var_ref x))))) - - (signature vec2 - (parameters - (declare (in) vec2 x)) - ((return (expression vec2 fract (var_ref x))))) - - (signature vec3 - (parameters - (declare (in) vec3 x)) - ((return (expression vec3 fract (var_ref x))))) - - (signature vec4 - (parameters - (declare (in) vec4 x)) - ((return (expression vec4 fract (var_ref x))))) -)) - diff --git a/src/glsl/builtins/ir/ftransform.ir b/src/glsl/builtins/ir/ftransform.ir deleted file mode 100644 index 9ca63dc1e34..00000000000 --- a/src/glsl/builtins/ir/ftransform.ir +++ /dev/null @@ -1,9 +0,0 @@ -((declare (uniform) mat4 gl_ModelViewProjectionMatrix) - (declare (in) vec4 gl_Vertex) - (function ftransform - (signature vec4 - (parameters) - ((return (expression vec4 * - (var_ref gl_ModelViewProjectionMatrix) - (var_ref gl_Vertex))))) -)) diff --git a/src/glsl/builtins/ir/fwidth.ir b/src/glsl/builtins/ir/fwidth.ir deleted file mode 100644 index 385e05d6a1a..00000000000 --- a/src/glsl/builtins/ir/fwidth.ir +++ /dev/null @@ -1,29 +0,0 @@ -((function fwidth - (signature float - (parameters - (declare (in) float p)) - ((return (expression float + - (expression float abs (expression float dFdx (var_ref p))) - (expression float abs (expression float dFdy (var_ref p))))))) - - (signature vec2 - (parameters - (declare (in) vec2 p)) - ((return (expression vec2 + - (expression vec2 abs (expression vec2 dFdx (var_ref p))) - (expression vec2 abs (expression vec2 dFdy (var_ref p))))))) - - (signature vec3 - (parameters - (declare (in) vec3 p)) - ((return (expression vec3 + - (expression vec3 abs (expression vec3 dFdx (var_ref p))) - (expression vec3 abs (expression vec3 dFdy (var_ref p))))))) - - (signature vec4 - (parameters - (declare (in) vec4 p)) - ((return (expression vec4 + - (expression vec4 abs (expression vec4 dFdx (var_ref p))) - (expression vec4 abs (expression vec4 dFdy (var_ref p))))))) -)) diff --git a/src/glsl/builtins/ir/greaterThan.ir b/src/glsl/builtins/ir/greaterThan.ir deleted file mode 100644 index 18af865288f..00000000000 --- a/src/glsl/builtins/ir/greaterThan.ir +++ /dev/null @@ -1,55 +0,0 @@ -((function greaterThan - (signature bvec2 - (parameters - (declare (in) vec2 arg0) - (declare (in) vec2 arg1)) - ((return (expression bvec2 > (var_ref arg0) (var_ref arg1))))) - - (signature bvec3 - (parameters - (declare (in) vec3 arg0) - (declare (in) vec3 arg1)) - ((return (expression bvec3 > (var_ref arg0) (var_ref arg1))))) - - (signature bvec4 - (parameters - (declare (in) vec4 arg0) - (declare (in) vec4 arg1)) - ((return (expression bvec4 > (var_ref arg0) (var_ref arg1))))) - - (signature bvec2 - (parameters - (declare (in) ivec2 arg0) - (declare (in) ivec2 arg1)) - ((return (expression bvec2 > (var_ref arg0) (var_ref arg1))))) - - (signature bvec3 - (parameters - (declare (in) ivec3 arg0) - (declare (in) ivec3 arg1)) - ((return (expression bvec3 > (var_ref arg0) (var_ref arg1))))) - - (signature bvec4 - (parameters - (declare (in) ivec4 arg0) - (declare (in) ivec4 arg1)) - ((return (expression bvec4 > (var_ref arg0) (var_ref arg1))))) - - (signature bvec2 - (parameters - (declare (in) uvec2 arg0) - (declare (in) uvec2 arg1)) - ((return (expression bvec2 > (var_ref arg0) (var_ref arg1))))) - - (signature bvec3 - (parameters - (declare (in) uvec3 arg0) - (declare (in) uvec3 arg1)) - ((return (expression bvec3 > (var_ref arg0) (var_ref arg1))))) - - (signature bvec4 - (parameters - (declare (in) uvec4 arg0) - (declare (in) uvec4 arg1)) - ((return (expression bvec4 > (var_ref arg0) (var_ref arg1))))) -)) diff --git a/src/glsl/builtins/ir/greaterThanEqual.ir b/src/glsl/builtins/ir/greaterThanEqual.ir deleted file mode 100644 index 6d3bc892cb7..00000000000 --- a/src/glsl/builtins/ir/greaterThanEqual.ir +++ /dev/null @@ -1,55 +0,0 @@ -((function greaterThanEqual - (signature bvec2 - (parameters - (declare (in) vec2 arg0) - (declare (in) vec2 arg1)) - ((return (expression bvec2 >= (var_ref arg0) (var_ref arg1))))) - - (signature bvec3 - (parameters - (declare (in) vec3 arg0) - (declare (in) vec3 arg1)) - ((return (expression bvec3 >= (var_ref arg0) (var_ref arg1))))) - - (signature bvec4 - (parameters - (declare (in) vec4 arg0) - (declare (in) vec4 arg1)) - ((return (expression bvec4 >= (var_ref arg0) (var_ref arg1))))) - - (signature bvec2 - (parameters - (declare (in) ivec2 arg0) - (declare (in) ivec2 arg1)) - ((return (expression bvec2 >= (var_ref arg0) (var_ref arg1))))) - - (signature bvec3 - (parameters - (declare (in) ivec3 arg0) - (declare (in) ivec3 arg1)) - ((return (expression bvec3 >= (var_ref arg0) (var_ref arg1))))) - - (signature bvec4 - (parameters - (declare (in) ivec4 arg0) - (declare (in) ivec4 arg1)) - ((return (expression bvec4 >= (var_ref arg0) (var_ref arg1))))) - - (signature bvec2 - (parameters - (declare (in) uvec2 arg0) - (declare (in) uvec2 arg1)) - ((return (expression bvec2 >= (var_ref arg0) (var_ref arg1))))) - - (signature bvec3 - (parameters - (declare (in) uvec3 arg0) - (declare (in) uvec3 arg1)) - ((return (expression bvec3 >= (var_ref arg0) (var_ref arg1))))) - - (signature bvec4 - (parameters - (declare (in) uvec4 arg0) - (declare (in) uvec4 arg1)) - ((return (expression bvec4 >= (var_ref arg0) (var_ref arg1))))) -)) diff --git a/src/glsl/builtins/ir/intBitsToFloat.ir b/src/glsl/builtins/ir/intBitsToFloat.ir deleted file mode 100644 index cc6aafe1adc..00000000000 --- a/src/glsl/builtins/ir/intBitsToFloat.ir +++ /dev/null @@ -1,21 +0,0 @@ -((function intBitsToFloat - (signature float - (parameters - (declare (in) int arg)) - ((return (expression float bitcast_i2f (var_ref arg))))) - - (signature vec2 - (parameters - (declare (in) ivec2 arg)) - ((return (expression vec2 bitcast_i2f (var_ref arg))))) - - (signature vec3 - (parameters - (declare (in) ivec3 arg)) - ((return (expression vec3 bitcast_i2f (var_ref arg))))) - - (signature vec4 - (parameters - (declare (in) ivec4 arg)) - ((return (expression vec4 bitcast_i2f (var_ref arg))))) -)) diff --git a/src/glsl/builtins/ir/inversesqrt.ir b/src/glsl/builtins/ir/inversesqrt.ir deleted file mode 100644 index 5b66d2b3695..00000000000 --- a/src/glsl/builtins/ir/inversesqrt.ir +++ /dev/null @@ -1,21 +0,0 @@ -((function inversesqrt - (signature float - (parameters - (declare (in) float arg0)) - ((return (expression float rsq (var_ref arg0))))) - - (signature vec2 - (parameters - (declare (in) vec2 arg0)) - ((return (expression vec2 rsq (var_ref arg0))))) - - (signature vec3 - (parameters - (declare (in) vec3 arg0)) - ((return (expression vec3 rsq (var_ref arg0))))) - - (signature vec4 - (parameters - (declare (in) vec4 arg0)) - ((return (expression vec4 rsq (var_ref arg0))))) -)) diff --git a/src/glsl/builtins/ir/isinf.ir b/src/glsl/builtins/ir/isinf.ir deleted file mode 100644 index 92922f6fa36..00000000000 --- a/src/glsl/builtins/ir/isinf.ir +++ /dev/null @@ -1,17 +0,0 @@ -((function isinf - (signature bool - (parameters - (declare (in) float x)) - ((return (expression bool == (expression float abs (var_ref x)) (constant float (+INF)))))) - (signature bvec2 - (parameters - (declare (in) vec2 x)) - ((return (expression bvec2 == (expression vec2 abs (var_ref x)) (constant vec2 (+INF +INF)))))) - (signature bvec3 - (parameters - (declare (in) vec3 x)) - ((return (expression bvec3 == (expression vec3 abs (var_ref x)) (constant vec3 (+INF +INF +INF)))))) - (signature bvec4 - (parameters - (declare (in) vec4 x)) - ((return (expression bvec4 == (expression vec4 abs (var_ref x)) (constant vec4 (+INF +INF +INF +INF)))))))) diff --git a/src/glsl/builtins/ir/isnan.ir b/src/glsl/builtins/ir/isnan.ir deleted file mode 100644 index b67349f2a5c..00000000000 --- a/src/glsl/builtins/ir/isnan.ir +++ /dev/null @@ -1,17 +0,0 @@ -((function isnan - (signature bool - (parameters - (declare (in) float x)) - ((return (expression bool != (var_ref x) (var_ref x))))) - (signature bvec2 - (parameters - (declare (in) vec2 x)) - ((return (expression bvec2 != (var_ref x) (var_ref x))))) - (signature bvec3 - (parameters - (declare (in) vec3 x)) - ((return (expression bvec3 != (var_ref x) (var_ref x))))) - (signature bvec4 - (parameters - (declare (in) vec4 x)) - ((return (expression bvec4 != (var_ref x) (var_ref x))))))) diff --git a/src/glsl/builtins/ir/length.ir b/src/glsl/builtins/ir/length.ir deleted file mode 100644 index b72334ee8a2..00000000000 --- a/src/glsl/builtins/ir/length.ir +++ /dev/null @@ -1,21 +0,0 @@ -((function length - (signature float - (parameters - (declare (in) float arg0)) - ((return (expression float abs (var_ref arg0))))) - - (signature float - (parameters - (declare (in) vec2 arg0)) - ((return (expression float sqrt (expression float dot (var_ref arg0) (var_ref arg0)))))) - - (signature float - (parameters - (declare (in) vec3 arg0)) - ((return (expression float sqrt (expression float dot (var_ref arg0) (var_ref arg0)))))) - - (signature float - (parameters - (declare (in) vec4 arg0)) - ((return (expression float sqrt (expression float dot (var_ref arg0) (var_ref arg0)))))) -)) diff --git a/src/glsl/builtins/ir/lessThan.ir b/src/glsl/builtins/ir/lessThan.ir deleted file mode 100644 index 8401fe9db60..00000000000 --- a/src/glsl/builtins/ir/lessThan.ir +++ /dev/null @@ -1,55 +0,0 @@ -((function lessThan - (signature bvec2 - (parameters - (declare (in) vec2 arg0) - (declare (in) vec2 arg1)) - ((return (expression bvec2 < (var_ref arg0) (var_ref arg1))))) - - (signature bvec3 - (parameters - (declare (in) vec3 arg0) - (declare (in) vec3 arg1)) - ((return (expression bvec3 < (var_ref arg0) (var_ref arg1))))) - - (signature bvec4 - (parameters - (declare (in) vec4 arg0) - (declare (in) vec4 arg1)) - ((return (expression bvec4 < (var_ref arg0) (var_ref arg1))))) - - (signature bvec2 - (parameters - (declare (in) ivec2 arg0) - (declare (in) ivec2 arg1)) - ((return (expression bvec2 < (var_ref arg0) (var_ref arg1))))) - - (signature bvec3 - (parameters - (declare (in) ivec3 arg0) - (declare (in) ivec3 arg1)) - ((return (expression bvec3 < (var_ref arg0) (var_ref arg1))))) - - (signature bvec4 - (parameters - (declare (in) ivec4 arg0) - (declare (in) ivec4 arg1)) - ((return (expression bvec4 < (var_ref arg0) (var_ref arg1))))) - - (signature bvec2 - (parameters - (declare (in) uvec2 arg0) - (declare (in) uvec2 arg1)) - ((return (expression bvec2 < (var_ref arg0) (var_ref arg1))))) - - (signature bvec3 - (parameters - (declare (in) uvec3 arg0) - (declare (in) uvec3 arg1)) - ((return (expression bvec3 < (var_ref arg0) (var_ref arg1))))) - - (signature bvec4 - (parameters - (declare (in) uvec4 arg0) - (declare (in) uvec4 arg1)) - ((return (expression bvec4 < (var_ref arg0) (var_ref arg1))))) -)) diff --git a/src/glsl/builtins/ir/lessThanEqual.ir b/src/glsl/builtins/ir/lessThanEqual.ir deleted file mode 100644 index c1cdd3fb605..00000000000 --- a/src/glsl/builtins/ir/lessThanEqual.ir +++ /dev/null @@ -1,55 +0,0 @@ -((function lessThanEqual - (signature bvec2 - (parameters - (declare (in) vec2 arg0) - (declare (in) vec2 arg1)) - ((return (expression bvec2 <= (var_ref arg0) (var_ref arg1))))) - - (signature bvec3 - (parameters - (declare (in) vec3 arg0) - (declare (in) vec3 arg1)) - ((return (expression bvec3 <= (var_ref arg0) (var_ref arg1))))) - - (signature bvec4 - (parameters - (declare (in) vec4 arg0) - (declare (in) vec4 arg1)) - ((return (expression bvec4 <= (var_ref arg0) (var_ref arg1))))) - - (signature bvec2 - (parameters - (declare (in) ivec2 arg0) - (declare (in) ivec2 arg1)) - ((return (expression bvec2 <= (var_ref arg0) (var_ref arg1))))) - - (signature bvec3 - (parameters - (declare (in) ivec3 arg0) - (declare (in) ivec3 arg1)) - ((return (expression bvec3 <= (var_ref arg0) (var_ref arg1))))) - - (signature bvec4 - (parameters - (declare (in) ivec4 arg0) - (declare (in) ivec4 arg1)) - ((return (expression bvec4 <= (var_ref arg0) (var_ref arg1))))) - - (signature bvec2 - (parameters - (declare (in) uvec2 arg0) - (declare (in) uvec2 arg1)) - ((return (expression bvec2 <= (var_ref arg0) (var_ref arg1))))) - - (signature bvec3 - (parameters - (declare (in) uvec3 arg0) - (declare (in) uvec3 arg1)) - ((return (expression bvec3 <= (var_ref arg0) (var_ref arg1))))) - - (signature bvec4 - (parameters - (declare (in) uvec4 arg0) - (declare (in) uvec4 arg1)) - ((return (expression bvec4 <= (var_ref arg0) (var_ref arg1))))) -)) diff --git a/src/glsl/builtins/ir/log.ir b/src/glsl/builtins/ir/log.ir deleted file mode 100644 index d168abb5a73..00000000000 --- a/src/glsl/builtins/ir/log.ir +++ /dev/null @@ -1,21 +0,0 @@ -((function log - (signature float - (parameters - (declare (in) float arg0)) - ((return (expression float log (var_ref arg0))))) - - (signature vec2 - (parameters - (declare (in) vec2 arg0)) - ((return (expression vec2 log (var_ref arg0))))) - - (signature vec3 - (parameters - (declare (in) vec3 arg0)) - ((return (expression vec3 log (var_ref arg0))))) - - (signature vec4 - (parameters - (declare (in) vec4 arg0)) - ((return (expression vec4 log (var_ref arg0))))) -)) diff --git a/src/glsl/builtins/ir/log2.ir b/src/glsl/builtins/ir/log2.ir deleted file mode 100644 index b96c6276f0a..00000000000 --- a/src/glsl/builtins/ir/log2.ir +++ /dev/null @@ -1,21 +0,0 @@ -((function log2 - (signature float - (parameters - (declare (in) float arg0)) - ((return (expression float log2 (var_ref arg0))))) - - (signature vec2 - (parameters - (declare (in) vec2 arg0)) - ((return (expression vec2 log2 (var_ref arg0))))) - - (signature vec3 - (parameters - (declare (in) vec3 arg0)) - ((return (expression vec3 log2 (var_ref arg0))))) - - (signature vec4 - (parameters - (declare (in) vec4 arg0)) - ((return (expression vec4 log2 (var_ref arg0))))) -)) diff --git a/src/glsl/builtins/ir/matrixCompMult.ir b/src/glsl/builtins/ir/matrixCompMult.ir deleted file mode 100644 index 2400f11afad..00000000000 --- a/src/glsl/builtins/ir/matrixCompMult.ir +++ /dev/null @@ -1,91 +0,0 @@ -((function matrixCompMult - (signature mat2 - (parameters - (declare (in) mat2 x) - (declare (in) mat2 y)) - ((declare () mat2 z) - (assign (xy) (array_ref (var_ref z) (constant int (0))) (expression vec2 * (array_ref (var_ref x) (constant int (0))) (array_ref (var_ref y) (constant int (0))))) - (assign (xy) (array_ref (var_ref z) (constant int (1))) (expression vec2 * (array_ref (var_ref x) (constant int (1))) (array_ref (var_ref y) (constant int (1))))) -(return (var_ref z)))) - - (signature mat3 - (parameters - (declare (in) mat3 x) - (declare (in) mat3 y)) - ((declare () mat3 z) - (assign (xyz) (array_ref (var_ref z) (constant int (0))) (expression vec3 * (array_ref (var_ref x) (constant int (0))) (array_ref (var_ref y) (constant int (0))))) - (assign (xyz) (array_ref (var_ref z) (constant int (1))) (expression vec3 * (array_ref (var_ref x) (constant int (1))) (array_ref (var_ref y) (constant int (1))))) - (assign (xyz) (array_ref (var_ref z) (constant int (2))) (expression vec3 * (array_ref (var_ref x) (constant int (2))) (array_ref (var_ref y) (constant int (2))))) -(return (var_ref z)))) - - (signature mat4 - (parameters - (declare (in) mat4 x) - (declare (in) mat4 y)) - ((declare () mat4 z) - (assign (xyzw) (array_ref (var_ref z) (constant int (0))) (expression vec4 * (array_ref (var_ref x) (constant int (0))) (array_ref (var_ref y) (constant int (0))))) - (assign (xyzw) (array_ref (var_ref z) (constant int (1))) (expression vec4 * (array_ref (var_ref x) (constant int (1))) (array_ref (var_ref y) (constant int (1))))) - (assign (xyzw) (array_ref (var_ref z) (constant int (2))) (expression vec4 * (array_ref (var_ref x) (constant int (2))) (array_ref (var_ref y) (constant int (2))))) - (assign (xyzw) (array_ref (var_ref z) (constant int (3))) (expression vec4 * (array_ref (var_ref x) (constant int (3))) (array_ref (var_ref y) (constant int (3))))) -(return (var_ref z)))) - - (signature mat2x3 - (parameters - (declare (in) mat2x3 x) - (declare (in) mat2x3 y)) - ((declare () mat2x3 z) - (assign (xyz) (array_ref (var_ref z) (constant int (0))) (expression vec3 * (array_ref (var_ref x) (constant int (0))) (array_ref (var_ref y) (constant int (0))))) - (assign (xyz) (array_ref (var_ref z) (constant int (1))) (expression vec3 * (array_ref (var_ref x) (constant int (1))) (array_ref (var_ref y) (constant int (1))))) -(return (var_ref z)))) - - (signature mat3x2 - (parameters - (declare (in) mat3x2 x) - (declare (in) mat3x2 y)) - ((declare () mat3x2 z) - (assign (xy) (array_ref (var_ref z) (constant int (0))) (expression vec2 * (array_ref (var_ref x) (constant int (0))) (array_ref (var_ref y) (constant int (0))))) - (assign (xy) (array_ref (var_ref z) (constant int (1))) (expression vec2 * (array_ref (var_ref x) (constant int (1))) (array_ref (var_ref y) (constant int (1))))) - (assign (xy) (array_ref (var_ref z) (constant int (2))) (expression vec2 * (array_ref (var_ref x) (constant int (2))) (array_ref (var_ref y) (constant int (2))))) -(return (var_ref z)))) - - (signature mat2x4 - (parameters - (declare (in) mat2x4 x) - (declare (in) mat2x4 y)) - ((declare () mat2x4 z) - (assign (xyzw) (array_ref (var_ref z) (constant int (0))) (expression vec4 * (array_ref (var_ref x) (constant int (0))) (array_ref (var_ref y) (constant int (0))))) - (assign (xyzw) (array_ref (var_ref z) (constant int (1))) (expression vec4 * (array_ref (var_ref x) (constant int (1))) (array_ref (var_ref y) (constant int (1))))) -(return (var_ref z)))) - - (signature mat4x2 - (parameters - (declare (in) mat4x2 x) - (declare (in) mat4x2 y)) - ((declare () mat4x2 z) - (assign (xy) (array_ref (var_ref z) (constant int (0))) (expression vec2 * (array_ref (var_ref x) (constant int (0))) (array_ref (var_ref y) (constant int (0))))) - (assign (xy) (array_ref (var_ref z) (constant int (1))) (expression vec2 * (array_ref (var_ref x) (constant int (1))) (array_ref (var_ref y) (constant int (1))))) - (assign (xy) (array_ref (var_ref z) (constant int (2))) (expression vec2 * (array_ref (var_ref x) (constant int (2))) (array_ref (var_ref y) (constant int (2))))) - (assign (xy) (array_ref (var_ref z) (constant int (3))) (expression vec2 * (array_ref (var_ref x) (constant int (3))) (array_ref (var_ref y) (constant int (3))))) -(return (var_ref z)))) - - (signature mat3x4 - (parameters - (declare (in) mat3x4 x) - (declare (in) mat3x4 y)) - ((declare () mat3x4 z) - (assign (xyzw) (array_ref (var_ref z) (constant int (0))) (expression vec4 * (array_ref (var_ref x) (constant int (0))) (array_ref (var_ref y) (constant int (0))))) - (assign (xyzw) (array_ref (var_ref z) (constant int (1))) (expression vec4 * (array_ref (var_ref x) (constant int (1))) (array_ref (var_ref y) (constant int (1))))) - (assign (xyzw) (array_ref (var_ref z) (constant int (2))) (expression vec4 * (array_ref (var_ref x) (constant int (2))) (array_ref (var_ref y) (constant int (2))))) -(return (var_ref z)))) - - (signature mat4x3 - (parameters - (declare (in) mat4x3 x) - (declare (in) mat4x3 y)) - ((declare () mat4x3 z) - (assign (xyz) (array_ref (var_ref z) (constant int (0))) (expression vec3 * (array_ref (var_ref x) (constant int (0))) (array_ref (var_ref y) (constant int (0))))) - (assign (xyz) (array_ref (var_ref z) (constant int (1))) (expression vec3 * (array_ref (var_ref x) (constant int (1))) (array_ref (var_ref y) (constant int (1))))) - (assign (xyz) (array_ref (var_ref z) (constant int (2))) (expression vec3 * (array_ref (var_ref x) (constant int (2))) (array_ref (var_ref y) (constant int (2))))) - (assign (xyz) (array_ref (var_ref z) (constant int (3))) (expression vec3 * (array_ref (var_ref x) (constant int (3))) (array_ref (var_ref y) (constant int (3))))) -(return (var_ref z)))) -)) diff --git a/src/glsl/builtins/ir/max.ir b/src/glsl/builtins/ir/max.ir deleted file mode 100644 index 2b5a02868cc..00000000000 --- a/src/glsl/builtins/ir/max.ir +++ /dev/null @@ -1,127 +0,0 @@ -((function max - (signature float - (parameters - (declare (in) float arg0) - (declare (in) float arg1)) - ((return (expression float max (var_ref arg0) (var_ref arg1))))) - - (signature vec2 - (parameters - (declare (in) vec2 arg0) - (declare (in) vec2 arg1)) - ((return (expression vec2 max (var_ref arg0) (var_ref arg1))))) - - (signature vec3 - (parameters - (declare (in) vec3 arg0) - (declare (in) vec3 arg1)) - ((return (expression vec3 max (var_ref arg0) (var_ref arg1))))) - - (signature vec4 - (parameters - (declare (in) vec4 arg0) - (declare (in) vec4 arg1)) - ((return (expression vec4 max (var_ref arg0) (var_ref arg1))))) - - (signature vec2 - (parameters - (declare (in) vec2 arg0) - (declare (in) float arg1)) - ((return (expression vec2 max (var_ref arg0) (var_ref arg1))))) - - (signature vec3 - (parameters - (declare (in) vec3 arg0) - (declare (in) float arg1)) - ((return (expression vec3 max (var_ref arg0) (var_ref arg1))))) - - (signature vec4 - (parameters - (declare (in) vec4 arg0) - (declare (in) float arg1)) - ((return (expression vec4 max (var_ref arg0) (var_ref arg1))))) - - (signature int - (parameters - (declare (in) int arg0) - (declare (in) int arg1)) - ((return (expression int max (var_ref arg0) (var_ref arg1))))) - - (signature ivec2 - (parameters - (declare (in) ivec2 arg0) - (declare (in) ivec2 arg1)) - ((return (expression ivec2 max (var_ref arg0) (var_ref arg1))))) - - (signature ivec3 - (parameters - (declare (in) ivec3 arg0) - (declare (in) ivec3 arg1)) - ((return (expression ivec3 max (var_ref arg0) (var_ref arg1))))) - - (signature ivec4 - (parameters - (declare (in) ivec4 arg0) - (declare (in) ivec4 arg1)) - ((return (expression ivec4 max (var_ref arg0) (var_ref arg1))))) - - (signature ivec2 - (parameters - (declare (in) ivec2 arg0) - (declare (in) int arg1)) - ((return (expression ivec2 max (var_ref arg0) (var_ref arg1))))) - - (signature ivec3 - (parameters - (declare (in) ivec3 arg0) - (declare (in) int arg1)) - ((return (expression ivec3 max (var_ref arg0) (var_ref arg1))))) - - (signature ivec4 - (parameters - (declare (in) ivec4 arg0) - (declare (in) int arg1)) - ((return (expression ivec4 max (var_ref arg0) (var_ref arg1))))) - - (signature uint - (parameters - (declare (in) uint arg0) - (declare (in) uint arg1)) - ((return (expression uint max (var_ref arg0) (var_ref arg1))))) - - (signature uvec2 - (parameters - (declare (in) uvec2 arg0) - (declare (in) uvec2 arg1)) - ((return (expression uvec2 max (var_ref arg0) (var_ref arg1))))) - - (signature uvec3 - (parameters - (declare (in) uvec3 arg0) - (declare (in) uvec3 arg1)) - ((return (expression uvec3 max (var_ref arg0) (var_ref arg1))))) - - (signature uvec4 - (parameters - (declare (in) uvec4 arg0) - (declare (in) uvec4 arg1)) - ((return (expression uvec4 max (var_ref arg0) (var_ref arg1))))) - - (signature uvec2 - (parameters - (declare (in) uvec2 arg0) - (declare (in) uint arg1)) - ((return (expression uvec2 max (var_ref arg0) (var_ref arg1))))) - - (signature uvec3 - (parameters - (declare (in) uvec3 arg0) - (declare (in) uint arg1)) - ((return (expression uvec3 max (var_ref arg0) (var_ref arg1))))) - - (signature uvec4 - (parameters - (declare (in) uvec4 arg0) - (declare (in) uint arg1)) - ((return (expression uvec4 max (var_ref arg0) (var_ref arg1))))) -)) diff --git a/src/glsl/builtins/ir/min.ir b/src/glsl/builtins/ir/min.ir deleted file mode 100644 index 2deef1118a7..00000000000 --- a/src/glsl/builtins/ir/min.ir +++ /dev/null @@ -1,127 +0,0 @@ -((function min - (signature float - (parameters - (declare (in) float arg0) - (declare (in) float arg1)) - ((return (expression float min (var_ref arg0) (var_ref arg1))))) - - (signature vec2 - (parameters - (declare (in) vec2 arg0) - (declare (in) vec2 arg1)) - ((return (expression vec2 min (var_ref arg0) (var_ref arg1))))) - - (signature vec3 - (parameters - (declare (in) vec3 arg0) - (declare (in) vec3 arg1)) - ((return (expression vec3 min (var_ref arg0) (var_ref arg1))))) - - (signature vec4 - (parameters - (declare (in) vec4 arg0) - (declare (in) vec4 arg1)) - ((return (expression vec4 min (var_ref arg0) (var_ref arg1))))) - - (signature vec2 - (parameters - (declare (in) vec2 arg0) - (declare (in) float arg1)) - ((return (expression vec2 min (var_ref arg0) (var_ref arg1))))) - - (signature vec3 - (parameters - (declare (in) vec3 arg0) - (declare (in) float arg1)) - ((return (expression vec3 min (var_ref arg0) (var_ref arg1))))) - - (signature vec4 - (parameters - (declare (in) vec4 arg0) - (declare (in) float arg1)) - ((return (expression vec4 min (var_ref arg0) (var_ref arg1))))) - - (signature int - (parameters - (declare (in) int arg0) - (declare (in) int arg1)) - ((return (expression int min (var_ref arg0) (var_ref arg1))))) - - (signature ivec2 - (parameters - (declare (in) ivec2 arg0) - (declare (in) ivec2 arg1)) - ((return (expression ivec2 min (var_ref arg0) (var_ref arg1))))) - - (signature ivec3 - (parameters - (declare (in) ivec3 arg0) - (declare (in) ivec3 arg1)) - ((return (expression ivec3 min (var_ref arg0) (var_ref arg1))))) - - (signature ivec4 - (parameters - (declare (in) ivec4 arg0) - (declare (in) ivec4 arg1)) - ((return (expression ivec4 min (var_ref arg0) (var_ref arg1))))) - - (signature ivec2 - (parameters - (declare (in) ivec2 arg0) - (declare (in) int arg1)) - ((return (expression ivec2 min (var_ref arg0) (var_ref arg1))))) - - (signature ivec3 - (parameters - (declare (in) ivec3 arg0) - (declare (in) int arg1)) - ((return (expression ivec3 min (var_ref arg0) (var_ref arg1))))) - - (signature ivec4 - (parameters - (declare (in) ivec4 arg0) - (declare (in) int arg1)) - ((return (expression ivec4 min (var_ref arg0) (var_ref arg1))))) - - (signature uint - (parameters - (declare (in) uint arg0) - (declare (in) uint arg1)) - ((return (expression uint min (var_ref arg0) (var_ref arg1))))) - - (signature uvec2 - (parameters - (declare (in) uvec2 arg0) - (declare (in) uvec2 arg1)) - ((return (expression uvec2 min (var_ref arg0) (var_ref arg1))))) - - (signature uvec3 - (parameters - (declare (in) uvec3 arg0) - (declare (in) uvec3 arg1)) - ((return (expression uvec3 min (var_ref arg0) (var_ref arg1))))) - - (signature uvec4 - (parameters - (declare (in) uvec4 arg0) - (declare (in) uvec4 arg1)) - ((return (expression uvec4 min (var_ref arg0) (var_ref arg1))))) - - (signature uvec2 - (parameters - (declare (in) uvec2 arg0) - (declare (in) uint arg1)) - ((return (expression uvec2 min (var_ref arg0) (var_ref arg1))))) - - (signature uvec3 - (parameters - (declare (in) uvec3 arg0) - (declare (in) uint arg1)) - ((return (expression uvec3 min (var_ref arg0) (var_ref arg1))))) - - (signature uvec4 - (parameters - (declare (in) uvec4 arg0) - (declare (in) uint arg1)) - ((return (expression uvec4 min (var_ref arg0) (var_ref arg1))))) -)) diff --git a/src/glsl/builtins/ir/mix.ir b/src/glsl/builtins/ir/mix.ir deleted file mode 100644 index e6665321143..00000000000 --- a/src/glsl/builtins/ir/mix.ir +++ /dev/null @@ -1,88 +0,0 @@ -((function mix - (signature float - (parameters - (declare (in) float arg0) - (declare (in) float arg1) - (declare (in) float arg2)) - ((return (expression float lrp (var_ref arg0) (var_ref arg1) (var_ref arg2))))) - - (signature vec2 - (parameters - (declare (in) vec2 arg0) - (declare (in) vec2 arg1) - (declare (in) vec2 arg2)) - ((return (expression vec2 lrp (var_ref arg0) (var_ref arg1) (var_ref arg2))))) - - (signature vec3 - (parameters - (declare (in) vec3 arg0) - (declare (in) vec3 arg1) - (declare (in) vec3 arg2)) - ((return (expression vec3 lrp (var_ref arg0) (var_ref arg1) (var_ref arg2))))) - - (signature vec4 - (parameters - (declare (in) vec4 arg0) - (declare (in) vec4 arg1) - (declare (in) vec4 arg2)) - ((return (expression vec4 lrp (var_ref arg0) (var_ref arg1) (var_ref arg2))))) - - (signature vec2 - (parameters - (declare (in) vec2 arg0) - (declare (in) vec2 arg1) - (declare (in) float arg2)) - ((return (expression vec2 lrp (var_ref arg0) (var_ref arg1) (var_ref arg2))))) - - (signature vec3 - (parameters - (declare (in) vec3 arg0) - (declare (in) vec3 arg1) - (declare (in) float arg2)) - ((return (expression vec3 lrp (var_ref arg0) (var_ref arg1) (var_ref arg2))))) - - (signature vec4 - (parameters - (declare (in) vec4 arg0) - (declare (in) vec4 arg1) - (declare (in) float arg2)) - ((return (expression vec4 lrp (var_ref arg0) (var_ref arg1) (var_ref arg2))))) - - (signature float - (parameters - (declare (in) float v1) - (declare (in) float v2) - (declare (in) bool a)) - ((assign (var_ref a) (x) (var_ref v1) (var_ref v2)) - (return (var_ref v1)))) - - (signature vec2 - (parameters - (declare (in) vec2 v1) - (declare (in) vec2 v2) - (declare (in) bvec2 a)) - ((assign (swiz x (var_ref a)) (x) (var_ref v1) (swiz x (var_ref v2))) - (assign (swiz y (var_ref a)) (y) (var_ref v1) (swiz y (var_ref v2))) - (return (var_ref v1)))) - - (signature vec3 - (parameters - (declare (in) vec3 v1) - (declare (in) vec3 v2) - (declare (in) bvec3 a)) - ((assign (swiz x (var_ref a)) (x) (var_ref v1) (swiz x (var_ref v2))) - (assign (swiz y (var_ref a)) (y) (var_ref v1) (swiz y (var_ref v2))) - (assign (swiz z (var_ref a)) (z) (var_ref v1) (swiz z (var_ref v2))) - (return (var_ref v1)))) - - (signature vec4 - (parameters - (declare (in) vec4 v1) - (declare (in) vec4 v2) - (declare (in) bvec4 a)) - ((assign (swiz x (var_ref a)) (x) (var_ref v1) (swiz x (var_ref v2))) - (assign (swiz y (var_ref a)) (y) (var_ref v1) (swiz y (var_ref v2))) - (assign (swiz z (var_ref a)) (z) (var_ref v1) (swiz z (var_ref v2))) - (assign (swiz w (var_ref a)) (w) (var_ref v1) (swiz w (var_ref v2))) - (return (var_ref v1)))) -)) diff --git a/src/glsl/builtins/ir/mod.ir b/src/glsl/builtins/ir/mod.ir deleted file mode 100644 index aeaea240e2d..00000000000 --- a/src/glsl/builtins/ir/mod.ir +++ /dev/null @@ -1,43 +0,0 @@ -((function mod - (signature float - (parameters - (declare (in) float arg0) - (declare (in) float arg1)) - ((return (expression float % (var_ref arg0) (var_ref arg1))))) - - (signature vec2 - (parameters - (declare (in) vec2 arg0) - (declare (in) vec2 arg1)) - ((return (expression vec2 % (var_ref arg0) (var_ref arg1))))) - - (signature vec3 - (parameters - (declare (in) vec3 arg0) - (declare (in) vec3 arg1)) - ((return (expression vec3 % (var_ref arg0) (var_ref arg1))))) - - (signature vec4 - (parameters - (declare (in) vec4 arg0) - (declare (in) vec4 arg1)) - ((return (expression vec4 % (var_ref arg0) (var_ref arg1))))) - - (signature vec2 - (parameters - (declare (in) vec2 arg0) - (declare (in) float arg1)) - ((return (expression vec2 % (var_ref arg0) (var_ref arg1))))) - - (signature vec3 - (parameters - (declare (in) vec3 arg0) - (declare (in) float arg1)) - ((return (expression vec3 % (var_ref arg0) (var_ref arg1))))) - - (signature vec4 - (parameters - (declare (in) vec4 arg0) - (declare (in) float arg1)) - ((return (expression vec4 % (var_ref arg0) (var_ref arg1))))) -)) diff --git a/src/glsl/builtins/ir/modf.ir b/src/glsl/builtins/ir/modf.ir deleted file mode 100644 index f4f631567bd..00000000000 --- a/src/glsl/builtins/ir/modf.ir +++ /dev/null @@ -1,37 +0,0 @@ -((function modf - (signature float - (parameters - (declare (in) float x) - (declare (out) float i)) - ((declare () float t) - (assign (x) (var_ref t) (expression float trunc (var_ref x))) - (assign (x) (var_ref i) (var_ref t)) - (return (expression float - (var_ref x) (var_ref t))))) - - (signature vec2 - (parameters - (declare (in) vec2 x) - (declare (out) vec2 i)) - ((declare () vec2 t) - (assign (xy) (var_ref t) (expression vec2 trunc (var_ref x))) - (assign (xy) (var_ref i) (var_ref t)) - (return (expression vec2 - (var_ref x) (var_ref t))))) - - (signature vec3 - (parameters - (declare (in) vec3 x) - (declare (out) vec3 i)) - ((declare () vec3 t) - (assign (xyz) (var_ref t) (expression vec3 trunc (var_ref x))) - (assign (xyz) (var_ref i) (var_ref t)) - (return (expression vec3 - (var_ref x) (var_ref t))))) - - (signature vec4 - (parameters - (declare (in) vec4 x) - (declare (out) vec4 i)) - ((declare () vec4 t) - (assign (xyzw) (var_ref t) (expression vec4 trunc (var_ref x))) - (assign (xyzw) (var_ref i) (var_ref t)) - (return (expression vec4 - (var_ref x) (var_ref t))))) -)) diff --git a/src/glsl/builtins/ir/noise1.ir b/src/glsl/builtins/ir/noise1.ir deleted file mode 100644 index 115505610a6..00000000000 --- a/src/glsl/builtins/ir/noise1.ir +++ /dev/null @@ -1,18 +0,0 @@ -((function noise1 - (signature float - (parameters - (declare (in) float x)) - ((return (expression float noise (var_ref x))))) - (signature float - (parameters - (declare (in) vec2 x)) - ((return (expression float noise (var_ref x))))) - (signature float - (parameters - (declare (in) vec3 x)) - ((return (expression float noise (var_ref x))))) - (signature float - (parameters - (declare (in) vec4 x)) - ((return (expression float noise (var_ref x))))) -)) diff --git a/src/glsl/builtins/ir/noise2.ir b/src/glsl/builtins/ir/noise2.ir deleted file mode 100644 index d3366145fed..00000000000 --- a/src/glsl/builtins/ir/noise2.ir +++ /dev/null @@ -1,61 +0,0 @@ -((function noise2 - (signature vec2 - (parameters (declare (in) vec4 p)) - ( - (declare () float a) - (declare () float b) - (declare () vec2 t) - - (assign (x) (var_ref a) (expression float noise (var_ref p))) - (assign (x) (var_ref b) (expression float noise (expression vec4 + (var_ref p) (constant vec4 (601.0 313.0 29.0 277.0))))) - (assign (x) (var_ref t) (var_ref a)) - (assign (y) (var_ref t) (var_ref b)) - (return (var_ref t)) - )) - - (signature vec2 - (parameters (declare (in) vec3 p)) - ( - (declare () float a) - (declare () float b) - (declare () vec2 t) - - (assign (x) (var_ref a) (expression float noise (var_ref p))) - (assign (x) (var_ref b) (expression float noise (expression vec3 + (var_ref p) (constant vec3 (601.0 313.0 29.0))))) - (assign (x) (var_ref t) (var_ref a)) - (assign (y) (var_ref t) (var_ref b)) - (return (var_ref t)) - )) - - (signature vec2 - (parameters - (declare (in ) vec2 p) - ) - ( - (declare () float a) - (declare () float b) - (declare () vec2 t) - - (assign (x) (var_ref a) (expression float noise (var_ref p))) - (assign (x) (var_ref b) (expression float noise (expression vec2 + (var_ref p) (constant vec2 (601.0 313.0))))) - (assign (x) (var_ref t) (var_ref a)) - (assign (y) (var_ref t) (var_ref b)) - (return (var_ref t)) - )) - - (signature vec2 - (parameters - (declare (in ) float p) - ) - ( - (declare () float a) - (declare () float b) - (declare () vec2 t) - - (assign (x) (var_ref a) (expression float noise (var_ref p))) - (assign (x) (var_ref b) (expression float noise (expression float + (var_ref p) (constant float (601.0))))) - (assign (x) (var_ref t) (var_ref a)) - (assign (y) (var_ref t) (var_ref b)) - (return (var_ref t)) - )) -)) diff --git a/src/glsl/builtins/ir/noise3.ir b/src/glsl/builtins/ir/noise3.ir deleted file mode 100644 index 1d8aa3f30d0..00000000000 --- a/src/glsl/builtins/ir/noise3.ir +++ /dev/null @@ -1,73 +0,0 @@ -((function noise3 - (signature vec3 - (parameters (declare (in) vec4 p)) - ( - (declare () float a) - (declare () float b) - (declare () float c) - (declare () vec3 t) - - (assign (x) (var_ref a) (expression float noise (var_ref p))) - (assign (x) (var_ref b) (expression float noise (expression vec4 + (var_ref p) (constant vec4 (601.0 313.0 29.0 277.0))))) - (assign (x) (var_ref c) (expression float noise (expression vec4 + (var_ref p) (constant vec4 (1559.0 113.0 1861.0 797.0))))) - - (assign (x) (var_ref t) (var_ref a)) - (assign (y) (var_ref t) (var_ref b)) - (assign (z) (var_ref t) (var_ref c)) - (return (var_ref t)) - )) - - (signature vec3 - (parameters (declare (in) vec3 p)) - ( - (declare () float a) - (declare () float b) - (declare () float c) - (declare () vec3 t) - - (assign (x) (var_ref a) (expression float noise (var_ref p))) - (assign (x) (var_ref b) (expression float noise (expression vec3 + (var_ref p) (constant vec3 (601.0 313.0 29.0))))) - (assign (x) (var_ref c) (expression float noise (expression vec3 + (var_ref p) (constant vec3 (1559.0 113.0 1861.0))))) - - (assign (x) (var_ref t) (var_ref a)) - (assign (y) (var_ref t) (var_ref b)) - (assign (z) (var_ref t) (var_ref c)) - (return (var_ref t)) - )) - - (signature vec3 - (parameters (declare (in) vec2 p)) - ( - (declare () float a) - (declare () float b) - (declare () float c) - (declare () vec3 t) - - (assign (x) (var_ref a) (expression float noise (var_ref p))) - (assign (x) (var_ref b) (expression float noise (expression vec2 + (var_ref p) (constant vec2 (601.0 313.0))))) - (assign (x) (var_ref c) (expression float noise (expression vec2 + (var_ref p) (constant vec2 (1559.0 113.0))))) - - (assign (x) (var_ref t) (var_ref a)) - (assign (y) (var_ref t) (var_ref b)) - (assign (z) (var_ref t) (var_ref c)) - (return (var_ref t)) - )) - - (signature vec3 - (parameters (declare (in) float p)) - ( - (declare () float a) - (declare () float b) - (declare () float c) - (declare () vec3 t) - - (assign (x) (var_ref a) (expression float noise (var_ref p))) - (assign (x) (var_ref b) (expression float noise (expression float + (var_ref p) (constant float (601.0))))) - (assign (x) (var_ref c) (expression float noise (expression float + (var_ref p) (constant float (1559.0))))) - - (assign (x) (var_ref t) (var_ref a)) - (assign (y) (var_ref t) (var_ref b)) - (assign (z) (var_ref t) (var_ref c)) - (return (var_ref t)) - )) -)) diff --git a/src/glsl/builtins/ir/noise4.ir b/src/glsl/builtins/ir/noise4.ir deleted file mode 100644 index 4949696546f..00000000000 --- a/src/glsl/builtins/ir/noise4.ir +++ /dev/null @@ -1,97 +0,0 @@ -((function noise4 - (signature vec4 - (parameters (declare (in) vec4 p)) - ( - (declare () float _x) - (declare () float _y) - (declare () float _z) - (declare () float _w) - (declare () vec4 _r) - - (declare () vec4 _p) - (assign (xyzw) (var_ref _p) (expression vec4 + (var_ref p) (constant vec4 (1559.0 113.0 1861.0 797.0))) ) - - (assign (x) (var_ref _x) (expression float noise(var_ref p))) - (assign (x) (var_ref _y) (expression float noise(expression vec4 + (var_ref p) (constant vec4 (601.0 313.0 29.0 277.0))))) - (assign (x) (var_ref _z) (expression float noise(var_ref _p))) - (assign (x) (var_ref _w) (expression float noise(expression vec4 + (var_ref _p) (constant vec4 (601.0 313.0 29.0 277.0))))) - - (assign (x) (var_ref _r) (var_ref _x)) - (assign (y) (var_ref _r) (var_ref _y)) - (assign (z) (var_ref _r) (var_ref _z)) - (assign (w) (var_ref _r) (var_ref _w)) - (return (var_ref _r)) - )) - - (signature vec4 - (parameters (declare (in) vec3 p)) - ( - (declare () float _x) - (declare () float _y) - (declare () float _z) - (declare () float _w) - (declare () vec4 _r) - - (declare () vec3 _p) - (assign (xyz) (var_ref _p) (expression vec3 + (var_ref p) (constant vec3 (1559.0 113.0 1861.0))) ) - - (assign (x) (var_ref _x) (expression float noise(var_ref p))) - (assign (x) (var_ref _y) (expression float noise(expression vec3 + (var_ref p) (constant vec3 (601.0 313.0 29.0))))) - (assign (x) (var_ref _z) (expression float noise(var_ref _p))) - (assign (x) (var_ref _w) (expression float noise(expression vec3 + (var_ref _p) (constant vec3 (601.0 313.0 29.0))))) - - (assign (x) (var_ref _r) (var_ref _x)) - (assign (y) (var_ref _r) (var_ref _y)) - (assign (z) (var_ref _r) (var_ref _z)) - (assign (w) (var_ref _r) (var_ref _w)) - (return (var_ref _r)) - )) - - (signature vec4 - (parameters (declare (in) vec2 p)) - ( - (declare () float _x) - (declare () float _y) - (declare () float _z) - (declare () float _w) - (declare () vec4 _r) - - (declare () vec2 _p) - (assign (xy) (var_ref _p) (expression vec2 + (var_ref p) (constant vec2 (1559.0 113.0))) ) - - (assign (x) (var_ref _x) (expression float noise(var_ref p))) - (assign (x) (var_ref _y) (expression float noise(expression vec2 + (var_ref p) (constant vec2 (601.0 313.0))))) - (assign (x) (var_ref _z) (expression float noise(var_ref _p))) - (assign (x) (var_ref _w) (expression float noise(expression vec2 + (var_ref _p) (constant vec2 (601.0 313.0))))) - - (assign (x) (var_ref _r) (var_ref _x)) - (assign (y) (var_ref _r) (var_ref _y)) - (assign (z) (var_ref _r) (var_ref _z)) - (assign (w) (var_ref _r) (var_ref _w)) - (return (var_ref _r)) - )) - - (signature vec4 - (parameters (declare (in) float p)) - ( - (declare () float _x) - (declare () float _y) - (declare () float _z) - (declare () float _w) - (declare () vec4 _r) - - (declare () float _p) - (assign (x) (var_ref _p) (expression float + (var_ref p) (constant float (1559.0))) ) - - (assign (x) (var_ref _x) (expression float noise(var_ref p))) - (assign (x) (var_ref _y) (expression float noise(expression float + (var_ref p) (constant float (601.0))))) - (assign (x) (var_ref _z) (expression float noise(var_ref _p))) - (assign (x) (var_ref _w) (expression float noise(expression float + (var_ref _p) (constant float (601.0))))) - - (assign (x) (var_ref _r) (var_ref _x)) - (assign (y) (var_ref _r) (var_ref _y)) - (assign (z) (var_ref _r) (var_ref _z)) - (assign (w) (var_ref _r) (var_ref _w)) - (return (var_ref _r)) - )) -)) diff --git a/src/glsl/builtins/ir/normalize.ir b/src/glsl/builtins/ir/normalize.ir deleted file mode 100644 index 0de0db0b648..00000000000 --- a/src/glsl/builtins/ir/normalize.ir +++ /dev/null @@ -1,21 +0,0 @@ -((function normalize - (signature float - (parameters - (declare (in) float arg0)) - ((return (expression float sign (var_ref arg0))))) - - (signature vec2 - (parameters - (declare (in) vec2 arg0)) - ((return (expression vec2 * (var_ref arg0) (expression float rsq (expression float dot (var_ref arg0) (var_ref arg0))))))) - - (signature vec3 - (parameters - (declare (in) vec3 arg0)) - ((return (expression vec3 * (var_ref arg0) (expression float rsq (expression float dot (var_ref arg0) (var_ref arg0))))))) - - (signature vec4 - (parameters - (declare (in) vec4 arg0)) - ((return (expression vec4 * (var_ref arg0) (expression float rsq (expression float dot (var_ref arg0) (var_ref arg0))))))) -)) diff --git a/src/glsl/builtins/ir/not.ir b/src/glsl/builtins/ir/not.ir deleted file mode 100644 index b696b06557f..00000000000 --- a/src/glsl/builtins/ir/not.ir +++ /dev/null @@ -1,16 +0,0 @@ -((function not - (signature bvec2 - (parameters - (declare (in) bvec2 arg0)) - ((return (expression bvec2 ! (var_ref arg0))))) - - (signature bvec3 - (parameters - (declare (in) bvec3 arg0)) - ((return (expression bvec3 ! (var_ref arg0))))) - - (signature bvec4 - (parameters - (declare (in) bvec4 arg0)) - ((return (expression bvec4 ! (var_ref arg0))))) -)) diff --git a/src/glsl/builtins/ir/notEqual.ir b/src/glsl/builtins/ir/notEqual.ir deleted file mode 100644 index abaf1914c9f..00000000000 --- a/src/glsl/builtins/ir/notEqual.ir +++ /dev/null @@ -1,73 +0,0 @@ -((function notEqual - (signature bvec2 - (parameters - (declare (in) vec2 arg0) - (declare (in) vec2 arg1)) - ((return (expression bvec2 != (var_ref arg0) (var_ref arg1))))) - - (signature bvec3 - (parameters - (declare (in) vec3 arg0) - (declare (in) vec3 arg1)) - ((return (expression bvec3 != (var_ref arg0) (var_ref arg1))))) - - (signature bvec4 - (parameters - (declare (in) vec4 arg0) - (declare (in) vec4 arg1)) - ((return (expression bvec4 != (var_ref arg0) (var_ref arg1))))) - - (signature bvec2 - (parameters - (declare (in) bvec2 arg0) - (declare (in) bvec2 arg1)) - ((return (expression bvec2 != (var_ref arg0) (var_ref arg1))))) - - (signature bvec3 - (parameters - (declare (in) bvec3 arg0) - (declare (in) bvec3 arg1)) - ((return (expression bvec3 != (var_ref arg0) (var_ref arg1))))) - - (signature bvec4 - (parameters - (declare (in) bvec4 arg0) - (declare (in) bvec4 arg1)) - ((return (expression bvec4 != (var_ref arg0) (var_ref arg1))))) - - (signature bvec2 - (parameters - (declare (in) ivec2 arg0) - (declare (in) ivec2 arg1)) - ((return (expression bvec2 != (var_ref arg0) (var_ref arg1))))) - - (signature bvec3 - (parameters - (declare (in) ivec3 arg0) - (declare (in) ivec3 arg1)) - ((return (expression bvec3 != (var_ref arg0) (var_ref arg1))))) - - (signature bvec4 - (parameters - (declare (in) ivec4 arg0) - (declare (in) ivec4 arg1)) - ((return (expression bvec4 != (var_ref arg0) (var_ref arg1))))) - - (signature bvec2 - (parameters - (declare (in) uvec2 arg0) - (declare (in) uvec2 arg1)) - ((return (expression bvec2 != (var_ref arg0) (var_ref arg1))))) - - (signature bvec3 - (parameters - (declare (in) uvec3 arg0) - (declare (in) uvec3 arg1)) - ((return (expression bvec3 != (var_ref arg0) (var_ref arg1))))) - - (signature bvec4 - (parameters - (declare (in) uvec4 arg0) - (declare (in) uvec4 arg1)) - ((return (expression bvec4 != (var_ref arg0) (var_ref arg1))))) -)) diff --git a/src/glsl/builtins/ir/outerProduct.ir b/src/glsl/builtins/ir/outerProduct.ir deleted file mode 100644 index 0e3f375bbac..00000000000 --- a/src/glsl/builtins/ir/outerProduct.ir +++ /dev/null @@ -1,92 +0,0 @@ -((function outerProduct - (signature mat2 - (parameters - (declare (in) vec2 u) - (declare (in) vec2 v)) - ((declare () mat2 m) - (assign (xy) (array_ref (var_ref m) (constant int (0))) (expression vec2 * (var_ref u) (swiz x (var_ref v)))) - (assign (xy) (array_ref (var_ref m) (constant int (1))) (expression vec2 * (var_ref u) (swiz y (var_ref v)))) - (return (var_ref m)))) - - (signature mat2x3 - (parameters - (declare (in) vec3 u) - (declare (in) vec2 v)) - ((declare () mat2x3 m) - (assign (xyz) (array_ref (var_ref m) (constant int (0))) (expression vec3 * (var_ref u) (swiz x (var_ref v)))) - (assign (xyz) (array_ref (var_ref m) (constant int (1))) (expression vec3 * (var_ref u) (swiz y (var_ref v)))) - (return (var_ref m)))) - - (signature mat2x4 - (parameters - (declare (in) vec4 u) - (declare (in) vec2 v)) - ((declare () mat2x4 m) - (assign (xyzw) (array_ref (var_ref m) (constant int (0))) (expression vec4 * (var_ref u) (swiz x (var_ref v)))) - (assign (xyzw) (array_ref (var_ref m) (constant int (1))) (expression vec4 * (var_ref u) (swiz y (var_ref v)))) - (return (var_ref m)))) - - (signature mat3x2 - (parameters - (declare (in) vec2 u) - (declare (in) vec3 v)) - ((declare () mat3x2 m) - (assign (xy) (array_ref (var_ref m) (constant int (0))) (expression vec2 * (var_ref u) (swiz x (var_ref v)))) - (assign (xy) (array_ref (var_ref m) (constant int (1))) (expression vec2 * (var_ref u) (swiz y (var_ref v)))) - (assign (xy) (array_ref (var_ref m) (constant int (2))) (expression vec2 * (var_ref u) (swiz z (var_ref v)))) - (return (var_ref m)) - )) - - (signature mat3 - (parameters - (declare (in) vec3 u) - (declare (in) vec3 v)) - ((declare () mat3 m) - (assign (xyz) (array_ref (var_ref m) (constant int (0))) (expression vec3 * (var_ref u) (swiz x (var_ref v)))) - (assign (xyz) (array_ref (var_ref m) (constant int (1))) (expression vec3 * (var_ref u) (swiz y (var_ref v)))) - (assign (xyz) (array_ref (var_ref m) (constant int (2))) (expression vec3 * (var_ref u) (swiz z (var_ref v)))) - (return (var_ref m)))) - - (signature mat3x4 - (parameters - (declare (in) vec4 u) - (declare (in) vec3 v)) - ((declare () mat3x4 m) - (assign (xyzw) (array_ref (var_ref m) (constant int (0))) (expression vec4 * (var_ref u) (swiz x (var_ref v)))) - (assign (xyzw) (array_ref (var_ref m) (constant int (1))) (expression vec4 * (var_ref u) (swiz y (var_ref v)))) - (assign (xyzw) (array_ref (var_ref m) (constant int (2))) (expression vec4 * (var_ref u) (swiz z (var_ref v)))) - (return (var_ref m)))) - - (signature mat4x2 - (parameters - (declare (in) vec2 u) - (declare (in) vec4 v)) - ((declare () mat4x2 m) - (assign (xy) (array_ref (var_ref m) (constant int (0))) (expression vec2 * (var_ref u) (swiz x (var_ref v)))) - (assign (xy) (array_ref (var_ref m) (constant int (1))) (expression vec2 * (var_ref u) (swiz y (var_ref v)))) - (assign (xy) (array_ref (var_ref m) (constant int (2))) (expression vec2 * (var_ref u) (swiz z (var_ref v)))) - (assign (xy) (array_ref (var_ref m) (constant int (3))) (expression vec2 * (var_ref u) (swiz w (var_ref v)))) - (return (var_ref m)))) - - (signature mat4x3 - (parameters - (declare (in) vec3 u) - (declare (in) vec4 v)) - ((declare () mat4x3 m) - (assign (xyz) (array_ref (var_ref m) (constant int (0))) (expression vec3 * (var_ref u) (swiz x (var_ref v)))) - (assign (xyz) (array_ref (var_ref m) (constant int (1))) (expression vec3 * (var_ref u) (swiz y (var_ref v)))) - (assign (xyz) (array_ref (var_ref m) (constant int (2))) (expression vec3 * (var_ref u) (swiz z (var_ref v)))) - (assign (xyz) (array_ref (var_ref m) (constant int (3))) (expression vec3 * (var_ref u) (swiz w (var_ref v)))) - (return (var_ref m)))) - - (signature mat4 - (parameters - (declare (in) vec4 u) - (declare (in) vec4 v)) - ((declare () mat4 m) - (assign (xyzw) (array_ref (var_ref m) (constant int (0))) (expression vec4 * (var_ref u) (swiz x (var_ref v)))) - (assign (xyzw) (array_ref (var_ref m) (constant int (1))) (expression vec4 * (var_ref u) (swiz y (var_ref v)))) - (assign (xyzw) (array_ref (var_ref m) (constant int (2))) (expression vec4 * (var_ref u) (swiz z (var_ref v)))) - (assign (xyzw) (array_ref (var_ref m) (constant int (3))) (expression vec4 * (var_ref u) (swiz w (var_ref v)))) - (return (var_ref m)))) -)) diff --git a/src/glsl/builtins/ir/packHalf2x16.ir b/src/glsl/builtins/ir/packHalf2x16.ir deleted file mode 100644 index 2f854071574..00000000000 --- a/src/glsl/builtins/ir/packHalf2x16.ir +++ /dev/null @@ -1,6 +0,0 @@ -((function packHalf2x16 - (signature uint - (parameters - (declare (in) vec2 arg0)) - ((return (expression uint packHalf2x16 (var_ref arg0))))) -)) diff --git a/src/glsl/builtins/ir/packSnorm2x16.ir b/src/glsl/builtins/ir/packSnorm2x16.ir deleted file mode 100644 index b4575d2da3f..00000000000 --- a/src/glsl/builtins/ir/packSnorm2x16.ir +++ /dev/null @@ -1,6 +0,0 @@ -((function packSnorm2x16 - (signature uint - (parameters - (declare (in) vec2 arg0)) - ((return (expression uint packSnorm2x16 (var_ref arg0))))) -)) diff --git a/src/glsl/builtins/ir/packSnorm4x8.ir b/src/glsl/builtins/ir/packSnorm4x8.ir deleted file mode 100644 index a153aa9b336..00000000000 --- a/src/glsl/builtins/ir/packSnorm4x8.ir +++ /dev/null @@ -1,6 +0,0 @@ -((function packSnorm4x8 - (signature uint - (parameters - (declare (in) vec4 arg0)) - ((return (expression uint packSnorm4x8 (var_ref arg0))))) -)) diff --git a/src/glsl/builtins/ir/packUnorm2x16.ir b/src/glsl/builtins/ir/packUnorm2x16.ir deleted file mode 100644 index c809f2d7046..00000000000 --- a/src/glsl/builtins/ir/packUnorm2x16.ir +++ /dev/null @@ -1,6 +0,0 @@ -((function packUnorm2x16 - (signature uint - (parameters - (declare (in) vec2 arg0)) - ((return (expression uint packUnorm2x16 (var_ref arg0))))) -)) diff --git a/src/glsl/builtins/ir/packUnorm4x8.ir b/src/glsl/builtins/ir/packUnorm4x8.ir deleted file mode 100644 index 3a8e46cb877..00000000000 --- a/src/glsl/builtins/ir/packUnorm4x8.ir +++ /dev/null @@ -1,6 +0,0 @@ -((function packUnorm4x8 - (signature uint - (parameters - (declare (in) vec4 arg0)) - ((return (expression uint packUnorm4x8 (var_ref arg0))))) -)) diff --git a/src/glsl/builtins/ir/pow.ir b/src/glsl/builtins/ir/pow.ir deleted file mode 100644 index a61bc4418e3..00000000000 --- a/src/glsl/builtins/ir/pow.ir +++ /dev/null @@ -1,25 +0,0 @@ -((function pow - (signature float - (parameters - (declare (in) float arg0) - (declare (in) float arg1)) - ((return (expression float pow (var_ref arg0) (var_ref arg1))))) - - (signature vec2 - (parameters - (declare (in) vec2 arg0) - (declare (in) vec2 arg1)) - ((return (expression vec2 pow (var_ref arg0) (var_ref arg1))))) - - (signature vec3 - (parameters - (declare (in) vec3 arg0) - (declare (in) vec3 arg1)) - ((return (expression vec3 pow (var_ref arg0) (var_ref arg1))))) - - (signature vec4 - (parameters - (declare (in) vec4 arg0) - (declare (in) vec4 arg1)) - ((return (expression vec4 pow (var_ref arg0) (var_ref arg1))))) -)) diff --git a/src/glsl/builtins/ir/radians.ir b/src/glsl/builtins/ir/radians.ir deleted file mode 100644 index a419101cf16..00000000000 --- a/src/glsl/builtins/ir/radians.ir +++ /dev/null @@ -1,21 +0,0 @@ -((function radians - (signature float - (parameters - (declare (in) float arg0)) - ((return (expression float * (var_ref arg0) (constant float (0.0174532925)))))) - - (signature vec2 - (parameters - (declare (in) vec2 arg0)) - ((return (expression vec2 * (var_ref arg0) (constant float (0.0174532925)))))) - - (signature vec3 - (parameters - (declare (in) vec3 arg0)) - ((return (expression vec3 * (var_ref arg0) (constant float (0.0174532925)))))) - - (signature vec4 - (parameters - (declare (in) vec4 arg0)) - ((return (expression vec4 * (var_ref arg0) (constant float (0.0174532925)))))) -)) diff --git a/src/glsl/builtins/ir/reflect.ir b/src/glsl/builtins/ir/reflect.ir deleted file mode 100644 index 1fa394e3c99..00000000000 --- a/src/glsl/builtins/ir/reflect.ir +++ /dev/null @@ -1,58 +0,0 @@ -((function reflect - (signature float - (parameters - (declare (in) float i) - (declare (in) float n)) - ((return (expression float - - (var_ref i) - (expression float * - (constant float (2.0)) - (expression float * - (expression float * - (var_ref n) - (var_ref i)) - (var_ref n))))))) - - (signature vec2 - (parameters - (declare (in) vec2 i) - (declare (in) vec2 n)) - ((return (expression vec2 - - (var_ref i) - (expression vec2 * - (constant float (2.0)) - (expression vec2 * - (expression float dot - (var_ref n) - (var_ref i)) - (var_ref n))))))) - - (signature vec3 - (parameters - (declare (in) vec3 i) - (declare (in) vec3 n)) - ((return (expression vec3 - - (var_ref i) - (expression vec3 * - (constant float (2.0)) - (expression vec3 * - (expression float dot - (var_ref n) - (var_ref i)) - (var_ref n))))))) - - (signature vec4 - (parameters - (declare (in) vec4 i) - (declare (in) vec4 n)) - ((return (expression vec4 - - (var_ref i) - (expression vec4 * - (constant float (2.0)) - (expression vec4 * - (expression float dot - (var_ref n) - (var_ref i)) - (var_ref n))))))) - -)) diff --git a/src/glsl/builtins/ir/refract.ir b/src/glsl/builtins/ir/refract.ir deleted file mode 100644 index 60899f01cec..00000000000 --- a/src/glsl/builtins/ir/refract.ir +++ /dev/null @@ -1,102 +0,0 @@ -((function refract - (signature float - (parameters - (declare (in) float i) - (declare (in) float n) - (declare (in) float eta)) - ((declare () float k) - (assign (x) (var_ref k) - (expression float - (constant float (1.0)) - (expression float * (var_ref eta) - (expression float * (var_ref eta) - (expression float - (constant float (1.0)) - (expression float * - (expression float * (var_ref n) (var_ref i)) - (expression float * (var_ref n) (var_ref i)))))))) - (if (expression bool < (var_ref k) (constant float (0.0))) - ((return (constant float (0.0)))) - ((return (expression float - - (expression float * (var_ref eta) (var_ref i)) - (expression float * - (expression float + - (expression float * (var_ref eta) - (expression float * (var_ref n) (var_ref i))) - (expression float sqrt (var_ref k))) - (var_ref n)))))))) - - (signature vec2 - (parameters - (declare (in) vec2 i) - (declare (in) vec2 n) - (declare (in) float eta)) - ((declare () float k) - (assign (x) (var_ref k) - (expression float - (constant float (1.0)) - (expression float * (var_ref eta) - (expression float * (var_ref eta) - (expression float - (constant float (1.0)) - (expression float * - (expression float dot (var_ref n) (var_ref i)) - (expression float dot (var_ref n) (var_ref i)))))))) - (if (expression bool < (var_ref k) (constant float (0.0))) - ((return (constant vec2 (0.0 0.0)))) - ((return (expression vec2 - - (expression vec2 * (var_ref eta) (var_ref i)) - (expression vec2 * - (expression float + - (expression float * (var_ref eta) - (expression float dot (var_ref n) (var_ref i))) - (expression float sqrt (var_ref k))) - (var_ref n)))))))) - - (signature vec3 - (parameters - (declare (in) vec3 i) - (declare (in) vec3 n) - (declare (in) float eta)) - ((declare () float k) - (assign (x) (var_ref k) - (expression float - (constant float (1.0)) - (expression float * (var_ref eta) - (expression float * (var_ref eta) - (expression float - (constant float (1.0)) - (expression float * - (expression float dot (var_ref n) (var_ref i)) - (expression float dot (var_ref n) (var_ref i)))))))) - (if (expression bool < (var_ref k) (constant float (0.0))) - ((return (constant vec3 (0.0 0.0 0.0)))) - ((return (expression vec3 - - (expression vec3 * (var_ref eta) (var_ref i)) - (expression vec3 * - (expression float + - (expression float * (var_ref eta) - (expression float dot (var_ref n) (var_ref i))) - (expression float sqrt (var_ref k))) - (var_ref n)))))))) - - (signature vec4 - (parameters - (declare (in) vec4 i) - (declare (in) vec4 n) - (declare (in) float eta)) - ((declare () float k) - (assign (x) (var_ref k) - (expression float - (constant float (1.0)) - (expression float * (var_ref eta) - (expression float * (var_ref eta) - (expression float - (constant float (1.0)) - (expression float * - (expression float dot (var_ref n) (var_ref i)) - (expression float dot (var_ref n) (var_ref i)))))))) - (if (expression bool < (var_ref k) (constant float (0.0))) - ((return (constant vec4 (0.0 0.0 0.0 0.0)))) - ((return (expression vec4 - - (expression vec4 * (var_ref eta) (var_ref i)) - (expression vec4 * - (expression float + - (expression float * (var_ref eta) - (expression float dot (var_ref n) (var_ref i))) - (expression float sqrt (var_ref k))) - (var_ref n)))))))) - -)) diff --git a/src/glsl/builtins/ir/round.ir b/src/glsl/builtins/ir/round.ir deleted file mode 100644 index d0d425bd656..00000000000 --- a/src/glsl/builtins/ir/round.ir +++ /dev/null @@ -1,21 +0,0 @@ -((function round - (signature float - (parameters - (declare (in) float arg0)) - ((return (expression float round_even (var_ref arg0))))) - - (signature vec2 - (parameters - (declare (in) vec2 arg0)) - ((return (expression vec2 round_even (var_ref arg0))))) - - (signature vec3 - (parameters - (declare (in) vec3 arg0)) - ((return (expression vec3 round_even (var_ref arg0))))) - - (signature vec4 - (parameters - (declare (in) vec4 arg0)) - ((return (expression vec4 round_even (var_ref arg0))))) -)) diff --git a/src/glsl/builtins/ir/roundEven.ir b/src/glsl/builtins/ir/roundEven.ir deleted file mode 100644 index a9c99b6f44c..00000000000 --- a/src/glsl/builtins/ir/roundEven.ir +++ /dev/null @@ -1,21 +0,0 @@ -((function roundEven - (signature float - (parameters - (declare (in) float arg0)) - ((return (expression float round_even (var_ref arg0))))) - - (signature vec2 - (parameters - (declare (in) vec2 arg0)) - ((return (expression vec2 round_even (var_ref arg0))))) - - (signature vec3 - (parameters - (declare (in) vec3 arg0)) - ((return (expression vec3 round_even (var_ref arg0))))) - - (signature vec4 - (parameters - (declare (in) vec4 arg0)) - ((return (expression vec4 round_even (var_ref arg0))))) -)) diff --git a/src/glsl/builtins/ir/sign.ir b/src/glsl/builtins/ir/sign.ir deleted file mode 100644 index 1f51718dab1..00000000000 --- a/src/glsl/builtins/ir/sign.ir +++ /dev/null @@ -1,42 +0,0 @@ -((function sign - (signature float - (parameters - (declare (in) float x)) - ((return (expression float sign (var_ref x))))) - - (signature vec2 - (parameters - (declare (in) vec2 x)) - ((return (expression vec2 sign (var_ref x))))) - - (signature vec3 - (parameters - (declare (in) vec3 x)) - ((return (expression vec3 sign (var_ref x))))) - - (signature vec4 - (parameters - (declare (in) vec4 x)) - ((return (expression vec4 sign (var_ref x))))) - - (signature int - (parameters - (declare (in) int x)) - ((return (expression int sign (var_ref x))))) - - (signature ivec2 - (parameters - (declare (in) ivec2 x)) - ((return (expression ivec2 sign (var_ref x))))) - - (signature ivec3 - (parameters - (declare (in) ivec3 x)) - ((return (expression ivec3 sign (var_ref x))))) - - (signature ivec4 - (parameters - (declare (in) ivec4 x)) - ((return (expression ivec4 sign (var_ref x))))) -)) - diff --git a/src/glsl/builtins/ir/sin.ir b/src/glsl/builtins/ir/sin.ir deleted file mode 100644 index e6009d8ef12..00000000000 --- a/src/glsl/builtins/ir/sin.ir +++ /dev/null @@ -1,21 +0,0 @@ -((function sin - (signature float - (parameters - (declare (in) float angle)) - ((return (expression float sin (var_ref angle))))) - - (signature vec2 - (parameters - (declare (in) vec2 angle)) - ((return (expression vec2 sin (var_ref angle))))) - - (signature vec3 - (parameters - (declare (in) vec3 angle)) - ((return (expression vec3 sin (var_ref angle))))) - - (signature vec4 - (parameters - (declare (in) vec4 angle)) - ((return (expression vec4 sin (var_ref angle))))) -)) diff --git a/src/glsl/builtins/ir/sinh.ir b/src/glsl/builtins/ir/sinh.ir deleted file mode 100644 index 31edd30e5ec..00000000000 --- a/src/glsl/builtins/ir/sinh.ir +++ /dev/null @@ -1,30 +0,0 @@ -((function sinh - (signature float - (parameters - (declare (in) float x)) - ((return (expression float * (constant float (0.5)) - (expression float - - (expression float exp (var_ref x)) - (expression float exp (expression float neg (var_ref x)))))))) - (signature vec2 - (parameters - (declare (in) vec2 x)) - ((return (expression vec2 * (constant float (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)) - ((return (expression vec3 * (constant float (0.5)) - (expression vec3 - - (expression vec3 exp (var_ref x)) - (expression vec3 exp (expression vec3 neg (var_ref x)))))))) - (signature vec4 - (parameters - (declare (in) vec4 x)) - ((return (expression vec4 * (constant float (0.5)) - (expression vec4 - - (expression vec4 exp (var_ref x)) - (expression vec4 exp (expression vec4 neg (var_ref x)))))))) -)) diff --git a/src/glsl/builtins/ir/smoothstep.ir b/src/glsl/builtins/ir/smoothstep.ir deleted file mode 100644 index 94c98b29e53..00000000000 --- a/src/glsl/builtins/ir/smoothstep.ir +++ /dev/null @@ -1,100 +0,0 @@ -((function smoothstep - (signature float - (parameters - (declare (in) float edge0) - (declare (in) float edge1) - (declare (in) float x)) - ((declare () float t) - (assign (x) (var_ref t) - (expression float max - (expression float min - (expression float / (expression float - (var_ref x) (var_ref edge0)) (expression float - (var_ref edge1) (var_ref edge0))) - (constant float (1.0))) - (constant float (0.0)))) - (return (expression float * (var_ref t) (expression float * (var_ref t) (expression float - (constant float (3.0)) (expression float * (constant float (2.0)) (var_ref t)))))))) - (signature vec2 - (parameters - (declare (in) float edge0) - (declare (in) float edge1) - (declare (in) vec2 x)) - ((declare () vec2 t) - (assign (xy) (var_ref t) - (expression vec2 max - (expression vec2 min - (expression vec2 / (expression vec2 - (var_ref x) (var_ref edge0)) (expression float - (var_ref edge1) (var_ref edge0))) - (constant float (1.0))) - (constant float (0.0)))) - (return (expression vec2 * (var_ref t) (expression vec2 * (var_ref t) (expression vec2 - (constant float (3.0)) (expression vec2 * (constant float (2.0)) (var_ref t)))))))) - - (signature vec3 - (parameters - (declare (in) float edge0) - (declare (in) float edge1) - (declare (in) vec3 x)) - ((declare () vec3 t) - (assign (xyz) (var_ref t) - (expression vec3 max - (expression vec3 min - (expression vec3 / (expression vec3 - (var_ref x) (var_ref edge0)) (expression float - (var_ref edge1) (var_ref edge0))) - (constant float (1.0))) - (constant float (0.0)))) - (return (expression vec3 * (var_ref t) (expression vec3 * (var_ref t) (expression vec3 - (constant float (3.0)) (expression vec3 * (constant float (2.0)) (var_ref t)))))))) - - - (signature vec4 - (parameters - (declare (in) float edge0) - (declare (in) float edge1) - (declare (in) vec4 x)) - ((declare () vec4 t) - (assign (xyzw) (var_ref t) - (expression vec4 max - (expression vec4 min - (expression vec4 / (expression vec4 - (var_ref x) (var_ref edge0)) (expression float - (var_ref edge1) (var_ref edge0))) - (constant float (1.0))) - (constant float (0.0)))) - (return (expression vec4 * (var_ref t) (expression vec4 * (var_ref t) (expression vec4 - (constant float (3.0)) (expression vec4 * (constant float (2.0)) (var_ref t)))))))) - - (signature vec2 - (parameters - (declare (in) vec2 edge0) - (declare (in) vec2 edge1) - (declare (in) vec2 x)) - ((declare () vec2 t) - (assign (xy) (var_ref t) - (expression vec2 max - (expression vec2 min - (expression vec2 / (expression vec2 - (var_ref x) (var_ref edge0)) (expression vec2 - (var_ref edge1) (var_ref edge0))) - (constant float (1.0))) - (constant float (0.0)))) - (return (expression vec2 * (var_ref t) (expression vec2 * (var_ref t) (expression vec2 - (constant float (3.0)) (expression vec2 * (constant float (2.0)) (var_ref t)))))))) - - (signature vec3 - (parameters - (declare (in) vec3 edge0) - (declare (in) vec3 edge1) - (declare (in) vec3 x)) - ((declare () vec3 t) - (assign (xyz) (var_ref t) - (expression vec3 max - (expression vec3 min - (expression vec3 / (expression vec3 - (var_ref x) (var_ref edge0)) (expression vec3 - (var_ref edge1) (var_ref edge0))) - (constant float (1.0))) - (constant float (0.0)))) - (return (expression vec3 * (var_ref t) (expression vec3 * (var_ref t) (expression vec3 - (constant float (3.0)) (expression vec3 * (constant float (2.0)) (var_ref t)))))))) - - (signature vec4 - (parameters - (declare (in) vec4 edge0) - (declare (in) vec4 edge1) - (declare (in) vec4 x)) - ((declare () vec4 t) - (assign (xyzw) (var_ref t) - (expression vec4 max - (expression vec4 min - (expression vec4 / (expression vec4 - (var_ref x) (var_ref edge0)) (expression vec4 - (var_ref edge1) (var_ref edge0))) - (constant float (1.0))) - (constant float (0.0)))) - (return (expression vec4 * (var_ref t) (expression vec4 * (var_ref t) (expression vec4 - (constant float (3.0)) (expression vec4 * (constant float (2.0)) (var_ref t)))))))) -)) - diff --git a/src/glsl/builtins/ir/sqrt.ir b/src/glsl/builtins/ir/sqrt.ir deleted file mode 100644 index 0302d164ae5..00000000000 --- a/src/glsl/builtins/ir/sqrt.ir +++ /dev/null @@ -1,21 +0,0 @@ -((function sqrt - (signature float - (parameters - (declare (in) float arg0)) - ((return (expression float sqrt (var_ref arg0))))) - - (signature vec2 - (parameters - (declare (in) vec2 arg0)) - ((return (expression vec2 sqrt (var_ref arg0))))) - - (signature vec3 - (parameters - (declare (in) vec3 arg0)) - ((return (expression vec3 sqrt (var_ref arg0))))) - - (signature vec4 - (parameters - (declare (in) vec4 arg0)) - ((return (expression vec4 sqrt (var_ref arg0))))) -)) diff --git a/src/glsl/builtins/ir/step.ir b/src/glsl/builtins/ir/step.ir deleted file mode 100644 index efcd7bc8023..00000000000 --- a/src/glsl/builtins/ir/step.ir +++ /dev/null @@ -1,68 +0,0 @@ -((function step - (signature float - (parameters - (declare (in) float edge) - (declare (in) float x)) - ((return (expression float b2f (expression bool >= (var_ref x) (var_ref edge)))))) - - (signature vec2 - (parameters - (declare (in) float edge) - (declare (in) vec2 x)) - ((declare () vec2 t) - (assign (x) (var_ref t) (expression float b2f (expression bool >= (swiz x (var_ref x))(var_ref edge)))) - (assign (y) (var_ref t) (expression float b2f (expression bool >= (swiz y (var_ref x))(var_ref edge)))) - (return (var_ref t)))) - - (signature vec3 - (parameters - (declare (in) float edge) - (declare (in) vec3 x)) - ((declare () vec3 t) - (assign (x) (var_ref t) (expression float b2f (expression bool >= (swiz x (var_ref x))(var_ref edge)))) - (assign (y) (var_ref t) (expression float b2f (expression bool >= (swiz y (var_ref x))(var_ref edge)))) - (assign (z) (var_ref t) (expression float b2f (expression bool >= (swiz z (var_ref x))(var_ref edge)))) - (return (var_ref t)))) - - (signature vec4 - (parameters - (declare (in) float edge) - (declare (in) vec4 x)) - ((declare () vec4 t) - (assign (x) (var_ref t) (expression float b2f (expression bool >= (swiz x (var_ref x))(var_ref edge)))) - (assign (y) (var_ref t) (expression float b2f (expression bool >= (swiz y (var_ref x))(var_ref edge)))) - (assign (z) (var_ref t) (expression float b2f (expression bool >= (swiz z (var_ref x))(var_ref edge)))) - (assign (w) (var_ref t) (expression float b2f (expression bool >= (swiz w (var_ref x))(var_ref edge)))) - (return (var_ref t)))) - - (signature vec2 - (parameters - (declare (in) vec2 edge) - (declare (in) vec2 x)) - ((declare () vec2 t) - (assign (x) (var_ref t) (expression float b2f (expression bool >= (swiz x (var_ref x))(swiz x (var_ref edge))))) - (assign (y) (var_ref t) (expression float b2f (expression bool >= (swiz y (var_ref x))(swiz y (var_ref edge))))) - (return (var_ref t)))) - - (signature vec3 - (parameters - (declare (in) vec3 edge) - (declare (in) vec3 x)) - ((declare () vec3 t) - (assign (x) (var_ref t) (expression float b2f (expression bool >= (swiz x (var_ref x))(swiz x (var_ref edge))))) - (assign (y) (var_ref t) (expression float b2f (expression bool >= (swiz y (var_ref x))(swiz y (var_ref edge))))) - (assign (z) (var_ref t) (expression float b2f (expression bool >= (swiz z (var_ref x))(swiz z (var_ref edge))))) - (return (var_ref t)))) - - (signature vec4 - (parameters - (declare (in) vec4 edge) - (declare (in) vec4 x)) - ((declare () vec4 t) - (assign (x) (var_ref t) (expression float b2f (expression bool >= (swiz x (var_ref x))(swiz x (var_ref edge))))) - (assign (y) (var_ref t) (expression float b2f (expression bool >= (swiz y (var_ref x))(swiz y (var_ref edge))))) - (assign (z) (var_ref t) (expression float b2f (expression bool >= (swiz z (var_ref x))(swiz z (var_ref edge))))) - (assign (w) (var_ref t) (expression float b2f (expression bool >= (swiz w (var_ref x))(swiz w (var_ref edge))))) - (return (var_ref t)))) -)) - diff --git a/src/glsl/builtins/ir/tan.ir b/src/glsl/builtins/ir/tan.ir deleted file mode 100644 index 99798631859..00000000000 --- a/src/glsl/builtins/ir/tan.ir +++ /dev/null @@ -1,21 +0,0 @@ -((function tan - (signature float - (parameters - (declare (in) float angle)) - ((return (expression float / (expression float sin (var_ref angle)) (expression float cos (var_ref angle)))))) - - (signature vec2 - (parameters - (declare (in) vec2 angle)) - ((return (expression vec2 / (expression vec2 sin (var_ref angle)) (expression vec2 cos (var_ref angle)))))) - - (signature vec3 - (parameters - (declare (in) vec3 angle)) - ((return (expression vec3 / (expression vec3 sin (var_ref angle)) (expression vec3 cos (var_ref angle)))))) - - (signature vec4 - (parameters - (declare (in) vec4 angle)) - ((return (expression vec4 / (expression vec4 sin (var_ref angle)) (expression vec4 cos (var_ref angle)))))) -)) diff --git a/src/glsl/builtins/ir/tanh.ir b/src/glsl/builtins/ir/tanh.ir deleted file mode 100644 index 3b7271bf779..00000000000 --- a/src/glsl/builtins/ir/tanh.ir +++ /dev/null @@ -1,42 +0,0 @@ -((function tanh - (signature float - (parameters - (declare (in) float x)) - ((return (expression float / - (expression float - - (expression float exp (var_ref x)) - (expression float exp (expression float neg (var_ref x)))) - (expression float + - (expression float exp (var_ref x)) - (expression float exp (expression float neg (var_ref x)))))))) - (signature vec2 - (parameters - (declare (in) vec2 x)) - ((return (expression vec2 / - (expression vec2 - - (expression vec2 exp (var_ref x)) - (expression vec2 exp (expression vec2 neg (var_ref x)))) - (expression vec2 + - (expression vec2 exp (var_ref x)) - (expression vec2 exp (expression vec2 neg (var_ref x)))))))) - (signature vec3 - (parameters - (declare (in) vec3 x)) - ((return (expression vec3 / - (expression vec3 - - (expression vec3 exp (var_ref x)) - (expression vec3 exp (expression vec3 neg (var_ref x)))) - (expression vec3 + - (expression vec3 exp (var_ref x)) - (expression vec3 exp (expression vec3 neg (var_ref x)))))))) - (signature vec4 - (parameters - (declare (in) vec4 x)) - ((return (expression vec4 / - (expression vec4 - - (expression vec4 exp (var_ref x)) - (expression vec4 exp (expression vec4 neg (var_ref x)))) - (expression vec4 + - (expression vec4 exp (var_ref x)) - (expression vec4 exp (expression vec4 neg (var_ref x)))))))) -)) diff --git a/src/glsl/builtins/ir/transpose.ir b/src/glsl/builtins/ir/transpose.ir deleted file mode 100644 index 043327d235b..00000000000 --- a/src/glsl/builtins/ir/transpose.ir +++ /dev/null @@ -1,139 +0,0 @@ -((function transpose - (signature mat2 - (parameters - (declare (in) mat2 m)) - ((declare () mat2 t) - (assign (x) (array_ref (var_ref t) (constant int (0))) (swiz x (array_ref (var_ref m) (constant int (0))))) - (assign (x) (array_ref (var_ref t) (constant int (1))) (swiz y (array_ref (var_ref m) (constant int (0))))) - (assign (y) (array_ref (var_ref t) (constant int (0))) (swiz x (array_ref (var_ref m) (constant int (1))))) - (assign (y) (array_ref (var_ref t) (constant int (1))) (swiz y (array_ref (var_ref m) (constant int (1))))) -(return (var_ref t)))) - - (signature mat3x2 - (parameters - (declare (in) mat2x3 m)) - ((declare () mat3x2 t) - (assign (x) (array_ref (var_ref t) (constant int (0))) (swiz x (array_ref (var_ref m) (constant int (0))))) - (assign (x) (array_ref (var_ref t) (constant int (1))) (swiz y (array_ref (var_ref m) (constant int (0))))) - (assign (x) (array_ref (var_ref t) (constant int (2))) (swiz z (array_ref (var_ref m) (constant int (0))))) - (assign (y) (array_ref (var_ref t) (constant int (0))) (swiz x (array_ref (var_ref m) (constant int (1))))) - (assign (y) (array_ref (var_ref t) (constant int (1))) (swiz y (array_ref (var_ref m) (constant int (1))))) - (assign (y) (array_ref (var_ref t) (constant int (2))) (swiz z (array_ref (var_ref m) (constant int (1))))) -(return (var_ref t)))) - - (signature mat4x2 - (parameters - (declare (in) mat2x4 m)) - ((declare () mat4x2 t) - (assign (x) (array_ref (var_ref t) (constant int (0))) (swiz x (array_ref (var_ref m) (constant int (0))))) - (assign (x) (array_ref (var_ref t) (constant int (1))) (swiz y (array_ref (var_ref m) (constant int (0))))) - (assign (x) (array_ref (var_ref t) (constant int (2))) (swiz z (array_ref (var_ref m) (constant int (0))))) - (assign (x) (array_ref (var_ref t) (constant int (3))) (swiz w (array_ref (var_ref m) (constant int (0))))) - (assign (y) (array_ref (var_ref t) (constant int (0))) (swiz x (array_ref (var_ref m) (constant int (1))))) - (assign (y) (array_ref (var_ref t) (constant int (1))) (swiz y (array_ref (var_ref m) (constant int (1))))) - (assign (y) (array_ref (var_ref t) (constant int (2))) (swiz z (array_ref (var_ref m) (constant int (1))))) - (assign (y) (array_ref (var_ref t) (constant int (3))) (swiz w (array_ref (var_ref m) (constant int (1))))) -(return (var_ref t)))) - - (signature mat2x3 - (parameters - (declare (in) mat3x2 m)) - ((declare () mat2x3 t) - (assign (x) (array_ref (var_ref t) (constant int (0))) (swiz x (array_ref (var_ref m) (constant int (0))))) - (assign (x) (array_ref (var_ref t) (constant int (1))) (swiz y (array_ref (var_ref m) (constant int (0))))) - (assign (y) (array_ref (var_ref t) (constant int (0))) (swiz x (array_ref (var_ref m) (constant int (1))))) - (assign (y) (array_ref (var_ref t) (constant int (1))) (swiz y (array_ref (var_ref m) (constant int (1))))) - (assign (z) (array_ref (var_ref t) (constant int (0))) (swiz x (array_ref (var_ref m) (constant int (2))))) - (assign (z) (array_ref (var_ref t) (constant int (1))) (swiz y (array_ref (var_ref m) (constant int (2))))) -(return (var_ref t)))) - - (signature mat3 - (parameters - (declare (in) mat3 m)) - ((declare () mat3 t) - (assign (x) (array_ref (var_ref t) (constant int (0))) (swiz x (array_ref (var_ref m) (constant int (0))))) - (assign (x) (array_ref (var_ref t) (constant int (1))) (swiz y (array_ref (var_ref m) (constant int (0))))) - (assign (x) (array_ref (var_ref t) (constant int (2))) (swiz z (array_ref (var_ref m) (constant int (0))))) - (assign (y) (array_ref (var_ref t) (constant int (0))) (swiz x (array_ref (var_ref m) (constant int (1))))) - (assign (y) (array_ref (var_ref t) (constant int (1))) (swiz y (array_ref (var_ref m) (constant int (1))))) - (assign (y) (array_ref (var_ref t) (constant int (2))) (swiz z (array_ref (var_ref m) (constant int (1))))) - (assign (z) (array_ref (var_ref t) (constant int (0))) (swiz x (array_ref (var_ref m) (constant int (2))))) - (assign (z) (array_ref (var_ref t) (constant int (1))) (swiz y (array_ref (var_ref m) (constant int (2))))) - (assign (z) (array_ref (var_ref t) (constant int (2))) (swiz z (array_ref (var_ref m) (constant int (2))))) -(return (var_ref t)))) - - (signature mat4x3 - (parameters - (declare (in) mat3x4 m)) - ((declare () mat4x3 t) - (assign (x) (array_ref (var_ref t) (constant int (0))) (swiz x (array_ref (var_ref m) (constant int (0))))) - (assign (x) (array_ref (var_ref t) (constant int (1))) (swiz y (array_ref (var_ref m) (constant int (0))))) - (assign (x) (array_ref (var_ref t) (constant int (2))) (swiz z (array_ref (var_ref m) (constant int (0))))) - (assign (x) (array_ref (var_ref t) (constant int (3))) (swiz w (array_ref (var_ref m) (constant int (0))))) - (assign (y) (array_ref (var_ref t) (constant int (0))) (swiz x (array_ref (var_ref m) (constant int (1))))) - (assign (y) (array_ref (var_ref t) (constant int (1))) (swiz y (array_ref (var_ref m) (constant int (1))))) - (assign (y) (array_ref (var_ref t) (constant int (2))) (swiz z (array_ref (var_ref m) (constant int (1))))) - (assign (y) (array_ref (var_ref t) (constant int (3))) (swiz w (array_ref (var_ref m) (constant int (1))))) - (assign (z) (array_ref (var_ref t) (constant int (0))) (swiz x (array_ref (var_ref m) (constant int (2))))) - (assign (z) (array_ref (var_ref t) (constant int (1))) (swiz y (array_ref (var_ref m) (constant int (2))))) - (assign (z) (array_ref (var_ref t) (constant int (2))) (swiz z (array_ref (var_ref m) (constant int (2))))) - (assign (z) (array_ref (var_ref t) (constant int (3))) (swiz w (array_ref (var_ref m) (constant int (2))))) -(return (var_ref t)))) - - (signature mat2x4 - (parameters - (declare (in) mat4x2 m)) - ((declare () mat2x4 t) - (assign (x) (array_ref (var_ref t) (constant int (0))) (swiz x (array_ref (var_ref m) (constant int (0))))) - (assign (x) (array_ref (var_ref t) (constant int (1))) (swiz y (array_ref (var_ref m) (constant int (0))))) - (assign (y) (array_ref (var_ref t) (constant int (0))) (swiz x (array_ref (var_ref m) (constant int (1))))) - (assign (y) (array_ref (var_ref t) (constant int (1))) (swiz y (array_ref (var_ref m) (constant int (1))))) - (assign (z) (array_ref (var_ref t) (constant int (0))) (swiz x (array_ref (var_ref m) (constant int (2))))) - (assign (z) (array_ref (var_ref t) (constant int (1))) (swiz y (array_ref (var_ref m) (constant int (2))))) - (assign (w) (array_ref (var_ref t) (constant int (0))) (swiz x (array_ref (var_ref m) (constant int (3))))) - (assign (w) (array_ref (var_ref t) (constant int (1))) (swiz y (array_ref (var_ref m) (constant int (3))))) -(return (var_ref t)))) - - (signature mat3x4 - (parameters - (declare (in) mat4x3 m)) - ((declare () mat3x4 t) - (assign (x) (array_ref (var_ref t) (constant int (0))) (swiz x (array_ref (var_ref m) (constant int (0))))) - (assign (x) (array_ref (var_ref t) (constant int (1))) (swiz y (array_ref (var_ref m) (constant int (0))))) - (assign (x) (array_ref (var_ref t) (constant int (2))) (swiz z (array_ref (var_ref m) (constant int (0))))) - (assign (y) (array_ref (var_ref t) (constant int (0))) (swiz x (array_ref (var_ref m) (constant int (1))))) - (assign (y) (array_ref (var_ref t) (constant int (1))) (swiz y (array_ref (var_ref m) (constant int (1))))) - (assign (y) (array_ref (var_ref t) (constant int (2))) (swiz z (array_ref (var_ref m) (constant int (1))))) - (assign (z) (array_ref (var_ref t) (constant int (0))) (swiz x (array_ref (var_ref m) (constant int (2))))) - (assign (z) (array_ref (var_ref t) (constant int (1))) (swiz y (array_ref (var_ref m) (constant int (2))))) - (assign (z) (array_ref (var_ref t) (constant int (2))) (swiz z (array_ref (var_ref m) (constant int (2))))) - (assign (w) (array_ref (var_ref t) (constant int (0))) (swiz x (array_ref (var_ref m) (constant int (3))))) - (assign (w) (array_ref (var_ref t) (constant int (1))) (swiz y (array_ref (var_ref m) (constant int (3))))) - (assign (w) (array_ref (var_ref t) (constant int (2))) (swiz z (array_ref (var_ref m) (constant int (3))))) -(return (var_ref t)))) - - (signature mat4 - (parameters - (declare (in) mat4 m)) - ((declare () mat4 t) - (assign (x) (array_ref (var_ref t) (constant int (0))) (swiz x (array_ref (var_ref m) (constant int (0))))) - (assign (x) (array_ref (var_ref t) (constant int (1))) (swiz y (array_ref (var_ref m) (constant int (0))))) - (assign (x) (array_ref (var_ref t) (constant int (2))) (swiz z (array_ref (var_ref m) (constant int (0))))) - (assign (x) (array_ref (var_ref t) (constant int (3))) (swiz w (array_ref (var_ref m) (constant int (0))))) - (assign (y) (array_ref (var_ref t) (constant int (0))) (swiz x (array_ref (var_ref m) (constant int (1))))) - (assign (y) (array_ref (var_ref t) (constant int (1))) (swiz y (array_ref (var_ref m) (constant int (1))))) - (assign (y) (array_ref (var_ref t) (constant int (2))) (swiz z (array_ref (var_ref m) (constant int (1))))) - (assign (y) (array_ref (var_ref t) (constant int (3))) (swiz w (array_ref (var_ref m) (constant int (1))))) - (assign (z) (array_ref (var_ref t) (constant int (0))) (swiz x (array_ref (var_ref m) (constant int (2))))) - (assign (z) (array_ref (var_ref t) (constant int (1))) (swiz y (array_ref (var_ref m) (constant int (2))))) - (assign (z) (array_ref (var_ref t) (constant int (2))) (swiz z (array_ref (var_ref m) (constant int (2))))) - (assign (z) (array_ref (var_ref t) (constant int (3))) (swiz w (array_ref (var_ref m) (constant int (2))))) - (assign (w) (array_ref (var_ref t) (constant int (0))) (swiz x (array_ref (var_ref m) (constant int (3))))) - (assign (w) (array_ref (var_ref t) (constant int (1))) (swiz y (array_ref (var_ref m) (constant int (3))))) - (assign (w) (array_ref (var_ref t) (constant int (2))) (swiz z (array_ref (var_ref m) (constant int (3))))) - (assign (w) (array_ref (var_ref t) (constant int (3))) (swiz w (array_ref (var_ref m) (constant int (3))))) -(return (var_ref t)))) -) - -) - diff --git a/src/glsl/builtins/ir/trunc.ir b/src/glsl/builtins/ir/trunc.ir deleted file mode 100644 index d320a2a7722..00000000000 --- a/src/glsl/builtins/ir/trunc.ir +++ /dev/null @@ -1,21 +0,0 @@ -((function trunc - (signature float - (parameters - (declare (in) float arg0)) - ((return (expression float trunc (var_ref arg0))))) - - (signature vec2 - (parameters - (declare (in) vec2 arg0)) - ((return (expression vec2 trunc (var_ref arg0))))) - - (signature vec3 - (parameters - (declare (in) vec3 arg0)) - ((return (expression vec3 trunc (var_ref arg0))))) - - (signature vec4 - (parameters - (declare (in) vec4 arg0)) - ((return (expression vec4 trunc (var_ref arg0))))) -)) diff --git a/src/glsl/builtins/ir/uintBitsToFloat.ir b/src/glsl/builtins/ir/uintBitsToFloat.ir deleted file mode 100644 index 1073d761898..00000000000 --- a/src/glsl/builtins/ir/uintBitsToFloat.ir +++ /dev/null @@ -1,21 +0,0 @@ -((function uintBitsToFloat - (signature float - (parameters - (declare (in) uint arg)) - ((return (expression float bitcast_u2f (var_ref arg))))) - - (signature vec2 - (parameters - (declare (in) uvec2 arg)) - ((return (expression vec2 bitcast_u2f (var_ref arg))))) - - (signature vec3 - (parameters - (declare (in) uvec3 arg)) - ((return (expression vec3 bitcast_u2f (var_ref arg))))) - - (signature vec4 - (parameters - (declare (in) uvec4 arg)) - ((return (expression vec4 bitcast_u2f (var_ref arg))))) -)) diff --git a/src/glsl/builtins/ir/unpackHalf2x16.ir b/src/glsl/builtins/ir/unpackHalf2x16.ir deleted file mode 100644 index f5b6fc23783..00000000000 --- a/src/glsl/builtins/ir/unpackHalf2x16.ir +++ /dev/null @@ -1,6 +0,0 @@ -((function unpackHalf2x16 - (signature vec2 - (parameters - (declare (in) uint arg0)) - ((return (expression vec2 unpackHalf2x16 (var_ref arg0))))) -)) diff --git a/src/glsl/builtins/ir/unpackSnorm2x16.ir b/src/glsl/builtins/ir/unpackSnorm2x16.ir deleted file mode 100644 index 9092a063877..00000000000 --- a/src/glsl/builtins/ir/unpackSnorm2x16.ir +++ /dev/null @@ -1,6 +0,0 @@ -((function unpackSnorm2x16 - (signature vec2 - (parameters - (declare (in) uint arg0)) - ((return (expression vec2 unpackSnorm2x16 (var_ref arg0))))) -)) diff --git a/src/glsl/builtins/ir/unpackSnorm4x8.ir b/src/glsl/builtins/ir/unpackSnorm4x8.ir deleted file mode 100644 index 3c6ed4a6bf1..00000000000 --- a/src/glsl/builtins/ir/unpackSnorm4x8.ir +++ /dev/null @@ -1,6 +0,0 @@ -((function unpackSnorm4x8 - (signature vec4 - (parameters - (declare (in) uint arg0)) - ((return (expression vec4 unpackSnorm4x8 (var_ref arg0))))) -)) diff --git a/src/glsl/builtins/ir/unpackUnorm2x16.ir b/src/glsl/builtins/ir/unpackUnorm2x16.ir deleted file mode 100644 index 935dc85821d..00000000000 --- a/src/glsl/builtins/ir/unpackUnorm2x16.ir +++ /dev/null @@ -1,6 +0,0 @@ -((function unpackUnorm2x16 - (signature vec2 - (parameters - (declare (in) uint arg0)) - ((return (expression vec2 unpackUnorm2x16 (var_ref arg0))))) -)) diff --git a/src/glsl/builtins/ir/unpackUnorm4x8.ir b/src/glsl/builtins/ir/unpackUnorm4x8.ir deleted file mode 100644 index e1dfd743811..00000000000 --- a/src/glsl/builtins/ir/unpackUnorm4x8.ir +++ /dev/null @@ -1,6 +0,0 @@ -((function unpackUnorm4x8 - (signature vec4 - (parameters - (declare (in) uint arg0)) - ((return (expression vec4 unpackUnorm4x8 (var_ref arg0))))) -)) |