[Piglit] [PATCH 1/7] fragcoord_w: Draw the whole window, and probe the whole window.

Ian Romanick idr at freedesktop.org
Fri May 20 01:54:35 PDT 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/20/2011 04:09 AM, Eric Anholt wrote:
> I was confused by the undefined garbage showing up.  Also, in my
> failure mode, some pixels would come out OK.
> ---
>  tests/shaders/fragcoord_w.shader_test |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/shaders/fragcoord_w.shader_test b/tests/shaders/fragcoord_w.shader_test
> index 574666e..077744e 100644
> --- a/tests/shaders/fragcoord_w.shader_test
> +++ b/tests/shaders/fragcoord_w.shader_test
> @@ -15,5 +15,5 @@ void main()
>  }
>  
>  [test]
> -draw rect -1 -1 2 2
> -relative probe rgb (0.5, 0.5) (1.0, 0.5, 1.0)
> +draw rect -2 -2 4 4
> +probe all rgba 1.0 0.5 1.0 0.0

Ah... -1 -1 2 2 isn't the whole window in this case because w is being
set to 2.  That makes sense.

Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAk3WLEsACgkQX1gOwKyEAw/yEgCfQc9Wcc+QObJoK7XOS8Igbe5B
FjgAni8oDkFcy8kjyP6MPBl2SQPJcL5G
=X7GI
-----END PGP SIGNATURE-----


More information about the Piglit mailing list