[Piglit] [PATCH 3/7] shaders: Stop using ortho in glsl-const tests.

Ian Romanick idr at freedesktop.org
Tue Nov 5 09:36:06 PST 2013


On 11/04/2013 10:27 PM, Matt Turner wrote:
> 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.

I'm unsure about removing the 'clear'.  It seems like we put that in for
a reason, but it was about 100 years ago.

> ---
>  tests/shaders/glsl-const-builtin-abs.shader_test              | 7 ++-----
>  tests/shaders/glsl-const-builtin-acos.shader_test             | 7 ++-----
>  tests/shaders/glsl-const-builtin-all.shader_test              | 7 ++-----
>  tests/shaders/glsl-const-builtin-any.shader_test              | 7 ++-----
>  tests/shaders/glsl-const-builtin-asin.shader_test             | 7 ++-----
>  tests/shaders/glsl-const-builtin-atan.shader_test             | 7 ++-----
>  tests/shaders/glsl-const-builtin-ceil.shader_test             | 7 ++-----
>  tests/shaders/glsl-const-builtin-clamp.shader_test            | 7 ++-----
>  tests/shaders/glsl-const-builtin-cos.shader_test              | 7 ++-----
>  tests/shaders/glsl-const-builtin-cosh.shader_test             | 7 ++-----
>  tests/shaders/glsl-const-builtin-cross.shader_test            | 7 ++-----
>  tests/shaders/glsl-const-builtin-degrees.shader_test          | 7 ++-----
>  tests/shaders/glsl-const-builtin-derivatives.shader_test      | 7 ++-----
>  tests/shaders/glsl-const-builtin-distance.shader_test         | 7 ++-----
>  tests/shaders/glsl-const-builtin-dot.shader_test              | 7 ++-----
>  tests/shaders/glsl-const-builtin-equal-02.shader_test         | 7 ++-----
>  tests/shaders/glsl-const-builtin-equal-03.shader_test         | 7 ++-----
>  tests/shaders/glsl-const-builtin-equal-04.shader_test         | 7 ++-----
>  tests/shaders/glsl-const-builtin-equal-05.shader_test         | 7 ++-----
>  tests/shaders/glsl-const-builtin-equal-06.shader_test         | 7 ++-----
>  tests/shaders/glsl-const-builtin-equal-07.shader_test         | 7 ++-----
>  tests/shaders/glsl-const-builtin-equal-08.shader_test         | 7 ++-----
>  tests/shaders/glsl-const-builtin-equal-09.shader_test         | 7 ++-----
>  tests/shaders/glsl-const-builtin-equal-10.shader_test         | 7 ++-----
>  tests/shaders/glsl-const-builtin-equal-bool.shader_test       | 7 ++-----
>  tests/shaders/glsl-const-builtin-equal.shader_test            | 7 ++-----
>  tests/shaders/glsl-const-builtin-exp.shader_test              | 7 ++-----
>  tests/shaders/glsl-const-builtin-exp2.shader_test             | 7 ++-----
>  tests/shaders/glsl-const-builtin-faceforward.shader_test      | 7 ++-----
>  tests/shaders/glsl-const-builtin-floor.shader_test            | 7 ++-----
>  tests/shaders/glsl-const-builtin-fract.shader_test            | 7 ++-----
>  tests/shaders/glsl-const-builtin-greaterThan.shader_test      | 7 ++-----
>  tests/shaders/glsl-const-builtin-greaterThanEqual.shader_test | 7 ++-----
>  tests/shaders/glsl-const-builtin-inversesqrt.shader_test      | 7 ++-----
>  tests/shaders/glsl-const-builtin-length.shader_test           | 7 ++-----
>  tests/shaders/glsl-const-builtin-lessThan.shader_test         | 7 ++-----
>  tests/shaders/glsl-const-builtin-lessThanEqual.shader_test    | 7 ++-----
>  tests/shaders/glsl-const-builtin-log.shader_test              | 7 ++-----
>  tests/shaders/glsl-const-builtin-log2.shader_test             | 7 ++-----
>  tests/shaders/glsl-const-builtin-matrixCompMult.shader_test   | 7 ++-----
>  tests/shaders/glsl-const-builtin-max.shader_test              | 7 ++-----
>  tests/shaders/glsl-const-builtin-min.shader_test              | 7 ++-----
>  tests/shaders/glsl-const-builtin-mix.shader_test              | 7 ++-----
>  tests/shaders/glsl-const-builtin-mod.shader_test              | 7 ++-----
>  tests/shaders/glsl-const-builtin-normalize.shader_test        | 7 ++-----
>  tests/shaders/glsl-const-builtin-not.shader_test              | 7 ++-----
>  tests/shaders/glsl-const-builtin-notEqual-02.shader_test      | 7 ++-----
>  tests/shaders/glsl-const-builtin-notEqual-03.shader_test      | 7 ++-----
>  tests/shaders/glsl-const-builtin-notEqual-04.shader_test      | 7 ++-----
>  tests/shaders/glsl-const-builtin-notEqual-05.shader_test      | 7 ++-----
>  tests/shaders/glsl-const-builtin-notEqual-06.shader_test      | 7 ++-----
>  tests/shaders/glsl-const-builtin-notEqual-07.shader_test      | 7 ++-----
>  tests/shaders/glsl-const-builtin-notEqual-08.shader_test      | 7 ++-----
>  tests/shaders/glsl-const-builtin-notEqual-09.shader_test      | 7 ++-----
>  tests/shaders/glsl-const-builtin-notEqual-10.shader_test      | 7 ++-----
>  tests/shaders/glsl-const-builtin-notEqual-bool.shader_test    | 7 ++-----
>  tests/shaders/glsl-const-builtin-notEqual.shader_test         | 7 ++-----
>  tests/shaders/glsl-const-builtin-outerProduct.shader_test     | 7 ++-----
>  tests/shaders/glsl-const-builtin-pow.shader_test              | 7 ++-----
>  tests/shaders/glsl-const-builtin-radians.shader_test          | 7 ++-----
>  tests/shaders/glsl-const-builtin-reflect.shader_test          | 7 ++-----
>  tests/shaders/glsl-const-builtin-refract.shader_test          | 7 ++-----
>  tests/shaders/glsl-const-builtin-sign.shader_test             | 7 ++-----
>  tests/shaders/glsl-const-builtin-sin.shader_test              | 7 ++-----
>  tests/shaders/glsl-const-builtin-smoothstep.shader_test       | 7 ++-----
>  tests/shaders/glsl-const-builtin-sqrt.shader_test             | 7 ++-----
>  tests/shaders/glsl-const-builtin-step.shader_test             | 7 ++-----
>  tests/shaders/glsl-const-builtin-tan.shader_test              | 7 ++-----
>  tests/shaders/glsl-const-builtin-transpose.shader_test        | 7 ++-----
>  tests/shaders/glsl-const-folding-01.shader_test               | 7 ++-----
>  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 880f297..41a204d 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 530c797..9ba28d9 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 0f79575..75c9867 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 c61b77c..adeaa16 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 56206ec..b73578c 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 f34927f..f77296e 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 0d752e7..13ff318 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 1dc0ea1..d3551d1 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 448cf1b..50ab057 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 5d799b1..2986424 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 b3aff43..e4c5a37 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 ccf1861..70b82d6 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 9bae9a8..e5a8b41 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 7dbb3e1..3641320 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 8ce3788..ef3ded3 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 f14608a..e1f5f24 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 f39d33a..a872ac4 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 0e088e4..4bc22db 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 f719451..f30fa1b 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 38afcda..1ad26ae 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 3f4f5ce..32f2d7c 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 8eef4ce..69577e9 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 54ae639..2f7d7f3 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 ba649b9..fbc8afc 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 0c6705c..7e88639 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 2001fbe..abbcba3 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 91b894e..c5f2c3f 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 2a483b4..bad497e 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 e2e9f33..b66aaff 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 3fbb85d..1fa3e5a 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 c249190..9f694de 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 a5e0256..594379b 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 4666a28..a99b5a6 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 2033475..5f208e4 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 8c677b4..3058d03 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 1dad91f..143d92a 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 591b874..0fd7a75 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 6359c95..f368f5e 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 d875f59..96d5acf 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 199be99..1770537 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 2b1f1f6..c9b0f7b 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 823570c..a75ca18 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 4b45bc7..c652ad0 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 d180351..c33d2ec 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 91e755a..b2c4f15 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 a85eca4..2dce0e7 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 4414357..f1261f3 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 21e4884..65bc670 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 a2e0f7e..29e5324 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 ebc9072..3ef5080 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 19610ae..08a866e 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 ed1cf87..3687a09 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 b3d0bb6..149b083 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 2980dff..e9ffb49 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 31b7282..4e37211 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 7f1c71f..762d477 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 076ed68..73dc930 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 49c3fd1..980ea93 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 9a7373f..32998c5 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 93a2ea5..e862d82 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 3d36a10..cd0e3c4 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 280cc8c..2d0ebcd 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 4278f1a..11d07dc 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 4492170..0d9150c 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 560da73..f4582e2 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 4dbe171..3bf7a4f 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 23b124c..e7ce148 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 4da157a..963bf1f 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 92e30e4..449c307 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 15b2476..48feac7 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
> 



More information about the Piglit mailing list