diff options
author | Matt Turner <mattst88@gmail.com> | 2013-11-04 18:19:23 -0800 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2013-11-05 13:18:02 -0800 |
commit | 2e5614458e566fb4353e92fc0b6407c12ee45c87 (patch) | |
tree | dd4a42ff417a732cbb91c6713e49001767d6ad83 | |
parent | 67174fbcf797b4a129250db1a3c001974e7522ad (diff) |
shaders: Stop using ortho in glsl-const tests.
Scripted with sed with fix ups to
- not - actually writes .w component, so probe rgba.
- reflect - writes const 1.0 .w component, so probe rgb.
- cosh - writes const 1.0 .w component, and used probe rgb with 4
components, so drop the .w from the probe.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
70 files changed, 140 insertions, 350 deletions
diff --git a/tests/shaders/glsl-const-builtin-abs.shader_test b/tests/shaders/glsl-const-builtin-abs.shader_test index 880f297d0..41a204db7 100644 --- a/tests/shaders/glsl-const-builtin-abs.shader_test +++ b/tests/shaders/glsl-const-builtin-abs.shader_test @@ -14,8 +14,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.5 0.0 0.5 +draw rect -1 -1 2 2 +probe all rgb 0.5 0.0 0.5 diff --git a/tests/shaders/glsl-const-builtin-acos.shader_test b/tests/shaders/glsl-const-builtin-acos.shader_test index 530c797a1..9ba28d9cb 100644 --- a/tests/shaders/glsl-const-builtin-acos.shader_test +++ b/tests/shaders/glsl-const-builtin-acos.shader_test @@ -13,8 +13,5 @@ void main() { } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 0.5707963267949 0.14159265358979 +draw rect -1 -1 2 2 +probe all rgb 0.0 0.5707963267949 0.14159265358979 diff --git a/tests/shaders/glsl-const-builtin-all.shader_test b/tests/shaders/glsl-const-builtin-all.shader_test index 0f795752d..75c986788 100644 --- a/tests/shaders/glsl-const-builtin-all.shader_test +++ b/tests/shaders/glsl-const-builtin-all.shader_test @@ -17,8 +17,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 1.0 0.0 +draw rect -1 -1 2 2 +probe all rgb 0.0 1.0 0.0 diff --git a/tests/shaders/glsl-const-builtin-any.shader_test b/tests/shaders/glsl-const-builtin-any.shader_test index c61b77cff..adeaa163a 100644 --- a/tests/shaders/glsl-const-builtin-any.shader_test +++ b/tests/shaders/glsl-const-builtin-any.shader_test @@ -17,8 +17,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 1.0 1.0 0.0 +draw rect -1 -1 2 2 +probe all rgb 1.0 1.0 0.0 diff --git a/tests/shaders/glsl-const-builtin-asin.shader_test b/tests/shaders/glsl-const-builtin-asin.shader_test index 56206eca7..b73578c6d 100644 --- a/tests/shaders/glsl-const-builtin-asin.shader_test +++ b/tests/shaders/glsl-const-builtin-asin.shader_test @@ -13,8 +13,5 @@ void main() { } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 0.0471975511966 0.5707963267949 +draw rect -1 -1 2 2 +probe all rgb 0.0 0.0471975511966 0.5707963267949 diff --git a/tests/shaders/glsl-const-builtin-atan.shader_test b/tests/shaders/glsl-const-builtin-atan.shader_test index f34927f4a..f77296ec7 100644 --- a/tests/shaders/glsl-const-builtin-atan.shader_test +++ b/tests/shaders/glsl-const-builtin-atan.shader_test @@ -15,8 +15,5 @@ void main() { } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 1.0 0.0 +draw rect -1 -1 2 2 +probe all rgb 0.0 1.0 0.0 diff --git a/tests/shaders/glsl-const-builtin-ceil.shader_test b/tests/shaders/glsl-const-builtin-ceil.shader_test index 0d752e7b2..13ff31859 100644 --- a/tests/shaders/glsl-const-builtin-ceil.shader_test +++ b/tests/shaders/glsl-const-builtin-ceil.shader_test @@ -14,8 +14,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 0.0 1.0 +draw rect -1 -1 2 2 +probe all rgb 0.0 0.0 1.0 diff --git a/tests/shaders/glsl-const-builtin-clamp.shader_test b/tests/shaders/glsl-const-builtin-clamp.shader_test index 1dc0ea113..d3551d1e8 100644 --- a/tests/shaders/glsl-const-builtin-clamp.shader_test +++ b/tests/shaders/glsl-const-builtin-clamp.shader_test @@ -13,8 +13,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 1.0 0.0 +draw rect -1 -1 2 2 +probe all rgb 0.0 1.0 0.0 diff --git a/tests/shaders/glsl-const-builtin-cos.shader_test b/tests/shaders/glsl-const-builtin-cos.shader_test index 448cf1bb0..50ab05767 100644 --- a/tests/shaders/glsl-const-builtin-cos.shader_test +++ b/tests/shaders/glsl-const-builtin-cos.shader_test @@ -13,8 +13,5 @@ void main() { } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.707106781186548 1.0 0.5 +draw rect -1 -1 2 2 +probe all rgb 0.707106781186548 1.0 0.5 diff --git a/tests/shaders/glsl-const-builtin-cosh.shader_test b/tests/shaders/glsl-const-builtin-cosh.shader_test index 5d799b1d5..29864245e 100644 --- a/tests/shaders/glsl-const-builtin-cosh.shader_test +++ b/tests/shaders/glsl-const-builtin-cosh.shader_test @@ -13,8 +13,5 @@ void main() { } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.54308063481524 0.76219569108363 0.0676619957778 1.0 +draw rect -1 -1 2 2 +probe all rgb 0.54308063481524 0.76219569108363 0.0676619957778 diff --git a/tests/shaders/glsl-const-builtin-cross.shader_test b/tests/shaders/glsl-const-builtin-cross.shader_test index b3aff43a3..e4c5a37c8 100644 --- a/tests/shaders/glsl-const-builtin-cross.shader_test +++ b/tests/shaders/glsl-const-builtin-cross.shader_test @@ -17,8 +17,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0 1 0 +draw rect -1 -1 2 2 +probe all rgb 0 1 0 diff --git a/tests/shaders/glsl-const-builtin-degrees.shader_test b/tests/shaders/glsl-const-builtin-degrees.shader_test index ccf1861bd..70b82d652 100644 --- a/tests/shaders/glsl-const-builtin-degrees.shader_test +++ b/tests/shaders/glsl-const-builtin-degrees.shader_test @@ -14,8 +14,5 @@ void main() { } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 1.0 0.0 +draw rect -1 -1 2 2 +probe all rgb 0.0 1.0 0.0 diff --git a/tests/shaders/glsl-const-builtin-derivatives.shader_test b/tests/shaders/glsl-const-builtin-derivatives.shader_test index 9bae9a88d..e5a8b4143 100644 --- a/tests/shaders/glsl-const-builtin-derivatives.shader_test +++ b/tests/shaders/glsl-const-builtin-derivatives.shader_test @@ -17,8 +17,5 @@ void main() { } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 1.0 0.0 +draw rect -1 -1 2 2 +probe all rgb 0.0 1.0 0.0 diff --git a/tests/shaders/glsl-const-builtin-distance.shader_test b/tests/shaders/glsl-const-builtin-distance.shader_test index 7dbb3e123..36413207c 100644 --- a/tests/shaders/glsl-const-builtin-distance.shader_test +++ b/tests/shaders/glsl-const-builtin-distance.shader_test @@ -15,8 +15,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.73087868591526 0.73087868591526 +draw rect -1 -1 2 2 +probe all rgb 0.73087868591526 0.73087868591526 diff --git a/tests/shaders/glsl-const-builtin-dot.shader_test b/tests/shaders/glsl-const-builtin-dot.shader_test index 8ce378852..ef3ded38c 100644 --- a/tests/shaders/glsl-const-builtin-dot.shader_test +++ b/tests/shaders/glsl-const-builtin-dot.shader_test @@ -17,8 +17,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 1.0 0.0 +draw rect -1 -1 2 2 +probe all rgb 0.0 1.0 0.0 diff --git a/tests/shaders/glsl-const-builtin-equal-02.shader_test b/tests/shaders/glsl-const-builtin-equal-02.shader_test index f14608a18..e1f5f240b 100644 --- a/tests/shaders/glsl-const-builtin-equal-02.shader_test +++ b/tests/shaders/glsl-const-builtin-equal-02.shader_test @@ -15,8 +15,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 1.0 0.0 +draw rect -1 -1 2 2 +probe all rgb 0.0 1.0 0.0 diff --git a/tests/shaders/glsl-const-builtin-equal-03.shader_test b/tests/shaders/glsl-const-builtin-equal-03.shader_test index f39d33acb..a872ac45f 100644 --- a/tests/shaders/glsl-const-builtin-equal-03.shader_test +++ b/tests/shaders/glsl-const-builtin-equal-03.shader_test @@ -15,8 +15,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 1.0 0.0 +draw rect -1 -1 2 2 +probe all rgb 0.0 1.0 0.0 diff --git a/tests/shaders/glsl-const-builtin-equal-04.shader_test b/tests/shaders/glsl-const-builtin-equal-04.shader_test index 0e088e453..4bc22dbfe 100644 --- a/tests/shaders/glsl-const-builtin-equal-04.shader_test +++ b/tests/shaders/glsl-const-builtin-equal-04.shader_test @@ -15,8 +15,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 1.0 0.0 +draw rect -1 -1 2 2 +probe all rgb 0.0 1.0 0.0 diff --git a/tests/shaders/glsl-const-builtin-equal-05.shader_test b/tests/shaders/glsl-const-builtin-equal-05.shader_test index f71945144..f30fa1b4a 100644 --- a/tests/shaders/glsl-const-builtin-equal-05.shader_test +++ b/tests/shaders/glsl-const-builtin-equal-05.shader_test @@ -15,8 +15,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 1.0 0.0 +draw rect -1 -1 2 2 +probe all rgb 0.0 1.0 0.0 diff --git a/tests/shaders/glsl-const-builtin-equal-06.shader_test b/tests/shaders/glsl-const-builtin-equal-06.shader_test index 38afcda72..1ad26aef4 100644 --- a/tests/shaders/glsl-const-builtin-equal-06.shader_test +++ b/tests/shaders/glsl-const-builtin-equal-06.shader_test @@ -15,8 +15,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 1.0 0.0 +draw rect -1 -1 2 2 +probe all rgb 0.0 1.0 0.0 diff --git a/tests/shaders/glsl-const-builtin-equal-07.shader_test b/tests/shaders/glsl-const-builtin-equal-07.shader_test index 3f4f5ce41..32f2d7cfb 100644 --- a/tests/shaders/glsl-const-builtin-equal-07.shader_test +++ b/tests/shaders/glsl-const-builtin-equal-07.shader_test @@ -15,8 +15,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 1.0 0.0 +draw rect -1 -1 2 2 +probe all rgb 0.0 1.0 0.0 diff --git a/tests/shaders/glsl-const-builtin-equal-08.shader_test b/tests/shaders/glsl-const-builtin-equal-08.shader_test index 8eef4cef3..69577e9ae 100644 --- a/tests/shaders/glsl-const-builtin-equal-08.shader_test +++ b/tests/shaders/glsl-const-builtin-equal-08.shader_test @@ -15,8 +15,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 1.0 0.0 +draw rect -1 -1 2 2 +probe all rgb 0.0 1.0 0.0 diff --git a/tests/shaders/glsl-const-builtin-equal-09.shader_test b/tests/shaders/glsl-const-builtin-equal-09.shader_test index 54ae6395a..2f7d7f33d 100644 --- a/tests/shaders/glsl-const-builtin-equal-09.shader_test +++ b/tests/shaders/glsl-const-builtin-equal-09.shader_test @@ -15,8 +15,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 1.0 0.0 +draw rect -1 -1 2 2 +probe all rgb 0.0 1.0 0.0 diff --git a/tests/shaders/glsl-const-builtin-equal-10.shader_test b/tests/shaders/glsl-const-builtin-equal-10.shader_test index ba649b937..fbc8afc7d 100644 --- a/tests/shaders/glsl-const-builtin-equal-10.shader_test +++ b/tests/shaders/glsl-const-builtin-equal-10.shader_test @@ -15,8 +15,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 1.0 0.0 +draw rect -1 -1 2 2 +probe all rgb 0.0 1.0 0.0 diff --git a/tests/shaders/glsl-const-builtin-equal-bool.shader_test b/tests/shaders/glsl-const-builtin-equal-bool.shader_test index 0c6705c8b..7e88639a6 100644 --- a/tests/shaders/glsl-const-builtin-equal-bool.shader_test +++ b/tests/shaders/glsl-const-builtin-equal-bool.shader_test @@ -13,8 +13,5 @@ void main() { } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 1.0 0.0 +draw rect -1 -1 2 2 +probe all rgb 0.0 1.0 0.0 diff --git a/tests/shaders/glsl-const-builtin-equal.shader_test b/tests/shaders/glsl-const-builtin-equal.shader_test index 2001fbe11..abbcba39a 100644 --- a/tests/shaders/glsl-const-builtin-equal.shader_test +++ b/tests/shaders/glsl-const-builtin-equal.shader_test @@ -13,8 +13,5 @@ void main() { } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 1.0 0.0 +draw rect -1 -1 2 2 +probe all rgb 0.0 1.0 0.0 diff --git a/tests/shaders/glsl-const-builtin-exp.shader_test b/tests/shaders/glsl-const-builtin-exp.shader_test index 91b894e41..c5f2c3f75 100644 --- a/tests/shaders/glsl-const-builtin-exp.shader_test +++ b/tests/shaders/glsl-const-builtin-exp.shader_test @@ -12,8 +12,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 1.0 0.1353352832366127 0.598150033144236 +draw rect -1 -1 2 2 +probe all rgb 1.0 0.1353352832366127 0.598150033144236 diff --git a/tests/shaders/glsl-const-builtin-exp2.shader_test b/tests/shaders/glsl-const-builtin-exp2.shader_test index 2a483b480..bad497ecf 100644 --- a/tests/shaders/glsl-const-builtin-exp2.shader_test +++ b/tests/shaders/glsl-const-builtin-exp2.shader_test @@ -12,8 +12,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 0.5 0.0 +draw rect -1 -1 2 2 +probe all rgb 0.0 0.5 0.0 diff --git a/tests/shaders/glsl-const-builtin-faceforward.shader_test b/tests/shaders/glsl-const-builtin-faceforward.shader_test index e2e9f3303..b66aaff71 100644 --- a/tests/shaders/glsl-const-builtin-faceforward.shader_test +++ b/tests/shaders/glsl-const-builtin-faceforward.shader_test @@ -20,8 +20,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0 1 0 +draw rect -1 -1 2 2 +probe all rgb 0 1 0 diff --git a/tests/shaders/glsl-const-builtin-floor.shader_test b/tests/shaders/glsl-const-builtin-floor.shader_test index 3fbb85d67..1fa3e5ab1 100644 --- a/tests/shaders/glsl-const-builtin-floor.shader_test +++ b/tests/shaders/glsl-const-builtin-floor.shader_test @@ -14,8 +14,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.7 0.0 0.0 +draw rect -1 -1 2 2 +probe all rgb 0.7 0.0 0.0 diff --git a/tests/shaders/glsl-const-builtin-fract.shader_test b/tests/shaders/glsl-const-builtin-fract.shader_test index c2491905d..9f694de45 100644 --- a/tests/shaders/glsl-const-builtin-fract.shader_test +++ b/tests/shaders/glsl-const-builtin-fract.shader_test @@ -14,8 +14,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.7 0.0 0.3 +draw rect -1 -1 2 2 +probe all rgb 0.7 0.0 0.3 diff --git a/tests/shaders/glsl-const-builtin-greaterThan.shader_test b/tests/shaders/glsl-const-builtin-greaterThan.shader_test index a5e02569a..594379b76 100644 --- a/tests/shaders/glsl-const-builtin-greaterThan.shader_test +++ b/tests/shaders/glsl-const-builtin-greaterThan.shader_test @@ -13,8 +13,5 @@ void main() { } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 0.0 1.0 +draw rect -1 -1 2 2 +probe all rgb 0.0 0.0 1.0 diff --git a/tests/shaders/glsl-const-builtin-greaterThanEqual.shader_test b/tests/shaders/glsl-const-builtin-greaterThanEqual.shader_test index 4666a2803..a99b5a6f1 100644 --- a/tests/shaders/glsl-const-builtin-greaterThanEqual.shader_test +++ b/tests/shaders/glsl-const-builtin-greaterThanEqual.shader_test @@ -13,8 +13,5 @@ void main() { } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 1.0 1.0 +draw rect -1 -1 2 2 +probe all rgb 0.0 1.0 1.0 diff --git a/tests/shaders/glsl-const-builtin-inversesqrt.shader_test b/tests/shaders/glsl-const-builtin-inversesqrt.shader_test index 20334755c..5f208e45a 100644 --- a/tests/shaders/glsl-const-builtin-inversesqrt.shader_test +++ b/tests/shaders/glsl-const-builtin-inversesqrt.shader_test @@ -17,8 +17,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.25 0.25 0.25 +draw rect -1 -1 2 2 +probe all rgb 0.25 0.25 0.25 diff --git a/tests/shaders/glsl-const-builtin-length.shader_test b/tests/shaders/glsl-const-builtin-length.shader_test index 8c677b4ce..3058d0327 100644 --- a/tests/shaders/glsl-const-builtin-length.shader_test +++ b/tests/shaders/glsl-const-builtin-length.shader_test @@ -13,8 +13,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0 0.5 0 +draw rect -1 -1 2 2 +probe all rgb 0 0.5 0 diff --git a/tests/shaders/glsl-const-builtin-lessThan.shader_test b/tests/shaders/glsl-const-builtin-lessThan.shader_test index 1dad91f50..143d92a04 100644 --- a/tests/shaders/glsl-const-builtin-lessThan.shader_test +++ b/tests/shaders/glsl-const-builtin-lessThan.shader_test @@ -13,8 +13,5 @@ void main() { } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 1.0 0.0 0.0 +draw rect -1 -1 2 2 +probe all rgb 1.0 0.0 0.0 diff --git a/tests/shaders/glsl-const-builtin-lessThanEqual.shader_test b/tests/shaders/glsl-const-builtin-lessThanEqual.shader_test index 591b87493..0fd7a75bf 100644 --- a/tests/shaders/glsl-const-builtin-lessThanEqual.shader_test +++ b/tests/shaders/glsl-const-builtin-lessThanEqual.shader_test @@ -13,8 +13,5 @@ void main() { } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 1.0 1.0 0.0 +draw rect -1 -1 2 2 +probe all rgb 1.0 1.0 0.0 diff --git a/tests/shaders/glsl-const-builtin-log.shader_test b/tests/shaders/glsl-const-builtin-log.shader_test index 6359c95b5..f368f5ee6 100644 --- a/tests/shaders/glsl-const-builtin-log.shader_test +++ b/tests/shaders/glsl-const-builtin-log.shader_test @@ -15,8 +15,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0 1 0 +draw rect -1 -1 2 2 +probe all rgb 0 1 0 diff --git a/tests/shaders/glsl-const-builtin-log2.shader_test b/tests/shaders/glsl-const-builtin-log2.shader_test index d875f599a..96d5acf55 100644 --- a/tests/shaders/glsl-const-builtin-log2.shader_test +++ b/tests/shaders/glsl-const-builtin-log2.shader_test @@ -15,8 +15,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0 1 0 +draw rect -1 -1 2 2 +probe all rgb 0 1 0 diff --git a/tests/shaders/glsl-const-builtin-matrixCompMult.shader_test b/tests/shaders/glsl-const-builtin-matrixCompMult.shader_test index 199be990b..177053763 100644 --- a/tests/shaders/glsl-const-builtin-matrixCompMult.shader_test +++ b/tests/shaders/glsl-const-builtin-matrixCompMult.shader_test @@ -17,8 +17,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0 1 0 +draw rect -1 -1 2 2 +probe all rgb 0 1 0 diff --git a/tests/shaders/glsl-const-builtin-max.shader_test b/tests/shaders/glsl-const-builtin-max.shader_test index 2b1f1f699..c9b0f7b2a 100644 --- a/tests/shaders/glsl-const-builtin-max.shader_test +++ b/tests/shaders/glsl-const-builtin-max.shader_test @@ -13,8 +13,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.25 0.5 0.25 +draw rect -1 -1 2 2 +probe all rgb 0.25 0.5 0.25 diff --git a/tests/shaders/glsl-const-builtin-min.shader_test b/tests/shaders/glsl-const-builtin-min.shader_test index 823570c92..a75ca18b7 100644 --- a/tests/shaders/glsl-const-builtin-min.shader_test +++ b/tests/shaders/glsl-const-builtin-min.shader_test @@ -13,8 +13,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.25 0.25 0.5 +draw rect -1 -1 2 2 +probe all rgb 0.25 0.25 0.5 diff --git a/tests/shaders/glsl-const-builtin-mix.shader_test b/tests/shaders/glsl-const-builtin-mix.shader_test index 4b45bc7b9..c652ad09a 100644 --- a/tests/shaders/glsl-const-builtin-mix.shader_test +++ b/tests/shaders/glsl-const-builtin-mix.shader_test @@ -15,8 +15,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.5 0.5 0.5 +draw rect -1 -1 2 2 +probe all rgb 0.5 0.5 0.5 diff --git a/tests/shaders/glsl-const-builtin-mod.shader_test b/tests/shaders/glsl-const-builtin-mod.shader_test index d18035106..c33d2ec05 100644 --- a/tests/shaders/glsl-const-builtin-mod.shader_test +++ b/tests/shaders/glsl-const-builtin-mod.shader_test @@ -13,8 +13,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.1 0.2 0.8 +draw rect -1 -1 2 2 +probe all rgb 0.1 0.2 0.8 diff --git a/tests/shaders/glsl-const-builtin-normalize.shader_test b/tests/shaders/glsl-const-builtin-normalize.shader_test index 91e755a80..b2c4f1590 100644 --- a/tests/shaders/glsl-const-builtin-normalize.shader_test +++ b/tests/shaders/glsl-const-builtin-normalize.shader_test @@ -18,8 +18,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.7071067811865475 0.0 0.0 +draw rect -1 -1 2 2 +probe all rgb 0.7071067811865475 0.0 0.0 diff --git a/tests/shaders/glsl-const-builtin-not.shader_test b/tests/shaders/glsl-const-builtin-not.shader_test index a85eca4b5..2dce0e7ac 100644 --- a/tests/shaders/glsl-const-builtin-not.shader_test +++ b/tests/shaders/glsl-const-builtin-not.shader_test @@ -12,8 +12,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgba 15 15 0.0 1.0 0.0 1.0 +draw rect -1 -1 2 2 +probe all rgba 0.0 1.0 0.0 1.0 diff --git a/tests/shaders/glsl-const-builtin-notEqual-02.shader_test b/tests/shaders/glsl-const-builtin-notEqual-02.shader_test index 4414357fb..f1261f3f7 100644 --- a/tests/shaders/glsl-const-builtin-notEqual-02.shader_test +++ b/tests/shaders/glsl-const-builtin-notEqual-02.shader_test @@ -15,8 +15,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 1.0 0.0 +draw rect -1 -1 2 2 +probe all rgb 0.0 1.0 0.0 diff --git a/tests/shaders/glsl-const-builtin-notEqual-03.shader_test b/tests/shaders/glsl-const-builtin-notEqual-03.shader_test index 21e4884da..65bc67012 100644 --- a/tests/shaders/glsl-const-builtin-notEqual-03.shader_test +++ b/tests/shaders/glsl-const-builtin-notEqual-03.shader_test @@ -15,8 +15,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 1.0 0.0 +draw rect -1 -1 2 2 +probe all rgb 0.0 1.0 0.0 diff --git a/tests/shaders/glsl-const-builtin-notEqual-04.shader_test b/tests/shaders/glsl-const-builtin-notEqual-04.shader_test index a2e0f7ef9..29e53246f 100644 --- a/tests/shaders/glsl-const-builtin-notEqual-04.shader_test +++ b/tests/shaders/glsl-const-builtin-notEqual-04.shader_test @@ -15,8 +15,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 1.0 0.0 +draw rect -1 -1 2 2 +probe all rgb 0.0 1.0 0.0 diff --git a/tests/shaders/glsl-const-builtin-notEqual-05.shader_test b/tests/shaders/glsl-const-builtin-notEqual-05.shader_test index ebc90725e..3ef5080fb 100644 --- a/tests/shaders/glsl-const-builtin-notEqual-05.shader_test +++ b/tests/shaders/glsl-const-builtin-notEqual-05.shader_test @@ -15,8 +15,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 1.0 0.0 +draw rect -1 -1 2 2 +probe all rgb 0.0 1.0 0.0 diff --git a/tests/shaders/glsl-const-builtin-notEqual-06.shader_test b/tests/shaders/glsl-const-builtin-notEqual-06.shader_test index 19610ae05..08a866ec9 100644 --- a/tests/shaders/glsl-const-builtin-notEqual-06.shader_test +++ b/tests/shaders/glsl-const-builtin-notEqual-06.shader_test @@ -15,8 +15,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 1.0 0.0 +draw rect -1 -1 2 2 +probe all rgb 0.0 1.0 0.0 diff --git a/tests/shaders/glsl-const-builtin-notEqual-07.shader_test b/tests/shaders/glsl-const-builtin-notEqual-07.shader_test index ed1cf870b..3687a09ce 100644 --- a/tests/shaders/glsl-const-builtin-notEqual-07.shader_test +++ b/tests/shaders/glsl-const-builtin-notEqual-07.shader_test @@ -15,8 +15,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 1.0 0.0 +draw rect -1 -1 2 2 +probe all rgb 0.0 1.0 0.0 diff --git a/tests/shaders/glsl-const-builtin-notEqual-08.shader_test b/tests/shaders/glsl-const-builtin-notEqual-08.shader_test index b3d0bb6c0..149b083e5 100644 --- a/tests/shaders/glsl-const-builtin-notEqual-08.shader_test +++ b/tests/shaders/glsl-const-builtin-notEqual-08.shader_test @@ -15,8 +15,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 1.0 0.0 +draw rect -1 -1 2 2 +probe all rgb 0.0 1.0 0.0 diff --git a/tests/shaders/glsl-const-builtin-notEqual-09.shader_test b/tests/shaders/glsl-const-builtin-notEqual-09.shader_test index 2980dff8b..e9ffb4954 100644 --- a/tests/shaders/glsl-const-builtin-notEqual-09.shader_test +++ b/tests/shaders/glsl-const-builtin-notEqual-09.shader_test @@ -15,8 +15,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 1.0 0.0 +draw rect -1 -1 2 2 +probe all rgb 0.0 1.0 0.0 diff --git a/tests/shaders/glsl-const-builtin-notEqual-10.shader_test b/tests/shaders/glsl-const-builtin-notEqual-10.shader_test index 31b728276..4e3721195 100644 --- a/tests/shaders/glsl-const-builtin-notEqual-10.shader_test +++ b/tests/shaders/glsl-const-builtin-notEqual-10.shader_test @@ -15,8 +15,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 1.0 0.0 +draw rect -1 -1 2 2 +probe all rgb 0.0 1.0 0.0 diff --git a/tests/shaders/glsl-const-builtin-notEqual-bool.shader_test b/tests/shaders/glsl-const-builtin-notEqual-bool.shader_test index 7f1c71ff3..762d47770 100644 --- a/tests/shaders/glsl-const-builtin-notEqual-bool.shader_test +++ b/tests/shaders/glsl-const-builtin-notEqual-bool.shader_test @@ -13,8 +13,5 @@ void main() { } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 1.0 0.0 +draw rect -1 -1 2 2 +probe all rgb 0.0 1.0 0.0 diff --git a/tests/shaders/glsl-const-builtin-notEqual.shader_test b/tests/shaders/glsl-const-builtin-notEqual.shader_test index 076ed68b3..73dc9303f 100644 --- a/tests/shaders/glsl-const-builtin-notEqual.shader_test +++ b/tests/shaders/glsl-const-builtin-notEqual.shader_test @@ -13,8 +13,5 @@ void main() { } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 1.0 0.0 1.0 +draw rect -1 -1 2 2 +probe all rgb 1.0 0.0 1.0 diff --git a/tests/shaders/glsl-const-builtin-outerProduct.shader_test b/tests/shaders/glsl-const-builtin-outerProduct.shader_test index 49c3fd18b..980ea93da 100644 --- a/tests/shaders/glsl-const-builtin-outerProduct.shader_test +++ b/tests/shaders/glsl-const-builtin-outerProduct.shader_test @@ -23,8 +23,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0 1 0 +draw rect -1 -1 2 2 +probe all rgb 0 1 0 diff --git a/tests/shaders/glsl-const-builtin-pow.shader_test b/tests/shaders/glsl-const-builtin-pow.shader_test index 9a7373f2b..32998c566 100644 --- a/tests/shaders/glsl-const-builtin-pow.shader_test +++ b/tests/shaders/glsl-const-builtin-pow.shader_test @@ -13,8 +13,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 0.937742251701451 0.0 +draw rect -1 -1 2 2 +probe all rgb 0.0 0.937742251701451 0.0 diff --git a/tests/shaders/glsl-const-builtin-radians.shader_test b/tests/shaders/glsl-const-builtin-radians.shader_test index 93a2ea542..e862d82f5 100644 --- a/tests/shaders/glsl-const-builtin-radians.shader_test +++ b/tests/shaders/glsl-const-builtin-radians.shader_test @@ -14,8 +14,5 @@ void main() { } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 1.0 0.0 +draw rect -1 -1 2 2 +probe all rgb 0.0 1.0 0.0 diff --git a/tests/shaders/glsl-const-builtin-reflect.shader_test b/tests/shaders/glsl-const-builtin-reflect.shader_test index 3d36a10a4..cd0e3c473 100644 --- a/tests/shaders/glsl-const-builtin-reflect.shader_test +++ b/tests/shaders/glsl-const-builtin-reflect.shader_test @@ -14,8 +14,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgba 15 15 0 1 0 1 +draw rect -1 -1 2 2 +probe all rgb 0 1 0 diff --git a/tests/shaders/glsl-const-builtin-refract.shader_test b/tests/shaders/glsl-const-builtin-refract.shader_test index 280cc8cad..2d0ebcd2b 100644 --- a/tests/shaders/glsl-const-builtin-refract.shader_test +++ b/tests/shaders/glsl-const-builtin-refract.shader_test @@ -15,8 +15,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0885621726633092 0.588562172663309 0 +draw rect -1 -1 2 2 +probe all rgb 0.0885621726633092 0.588562172663309 0 diff --git a/tests/shaders/glsl-const-builtin-sign.shader_test b/tests/shaders/glsl-const-builtin-sign.shader_test index 4278f1afe..11d07dcb5 100644 --- a/tests/shaders/glsl-const-builtin-sign.shader_test +++ b/tests/shaders/glsl-const-builtin-sign.shader_test @@ -13,8 +13,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 1.0 0.0 +draw rect -1 -1 2 2 +probe all rgb 0.0 1.0 0.0 diff --git a/tests/shaders/glsl-const-builtin-sin.shader_test b/tests/shaders/glsl-const-builtin-sin.shader_test index 44921705c..0d9150c72 100644 --- a/tests/shaders/glsl-const-builtin-sin.shader_test +++ b/tests/shaders/glsl-const-builtin-sin.shader_test @@ -13,8 +13,5 @@ void main() { } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.707106781186548 1.0 0.5 +draw rect -1 -1 2 2 +probe all rgb 0.707106781186548 1.0 0.5 diff --git a/tests/shaders/glsl-const-builtin-smoothstep.shader_test b/tests/shaders/glsl-const-builtin-smoothstep.shader_test index 560da73e6..f4582e22f 100644 --- a/tests/shaders/glsl-const-builtin-smoothstep.shader_test +++ b/tests/shaders/glsl-const-builtin-smoothstep.shader_test @@ -13,8 +13,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 1.0 0.84375 +draw rect -1 -1 2 2 +probe all rgb 0.0 1.0 0.84375 diff --git a/tests/shaders/glsl-const-builtin-sqrt.shader_test b/tests/shaders/glsl-const-builtin-sqrt.shader_test index 4dbe1714f..3bf7a4f39 100644 --- a/tests/shaders/glsl-const-builtin-sqrt.shader_test +++ b/tests/shaders/glsl-const-builtin-sqrt.shader_test @@ -12,8 +12,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 0.5 0.0 +draw rect -1 -1 2 2 +probe all rgb 0.0 0.5 0.0 diff --git a/tests/shaders/glsl-const-builtin-step.shader_test b/tests/shaders/glsl-const-builtin-step.shader_test index 23b124c52..e7ce1487c 100644 --- a/tests/shaders/glsl-const-builtin-step.shader_test +++ b/tests/shaders/glsl-const-builtin-step.shader_test @@ -14,8 +14,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 1.0 0.0 1.0 +draw rect -1 -1 2 2 +probe all rgb 1.0 0.0 1.0 diff --git a/tests/shaders/glsl-const-builtin-tan.shader_test b/tests/shaders/glsl-const-builtin-tan.shader_test index 4da157a1c..963bf1f90 100644 --- a/tests/shaders/glsl-const-builtin-tan.shader_test +++ b/tests/shaders/glsl-const-builtin-tan.shader_test @@ -14,8 +14,5 @@ void main() { } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 1.0 0.7320508075688772 +draw rect -1 -1 2 2 +probe all rgb 0.0 1.0 0.7320508075688772 diff --git a/tests/shaders/glsl-const-builtin-transpose.shader_test b/tests/shaders/glsl-const-builtin-transpose.shader_test index 92e30e441..449c3073d 100644 --- a/tests/shaders/glsl-const-builtin-transpose.shader_test +++ b/tests/shaders/glsl-const-builtin-transpose.shader_test @@ -17,8 +17,5 @@ void main() } [test] -clear color 0.0 0.0 0.0 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0 1 0 +draw rect -1 -1 2 2 +probe all rgb 0 1 0 diff --git a/tests/shaders/glsl-const-folding-01.shader_test b/tests/shaders/glsl-const-folding-01.shader_test index 15b2476f8..48feac726 100644 --- a/tests/shaders/glsl-const-folding-01.shader_test +++ b/tests/shaders/glsl-const-folding-01.shader_test @@ -90,8 +90,5 @@ void main() } [test] -clear color 0.3 0.3 0.3 0.0 -clear -ortho -draw rect 10 10 10 10 -probe rgb 15 15 0.0 1.0 0.0 +draw rect -1 -1 2 2 +probe all rgb 0.0 1.0 0.0 |