[Piglit] Loop unrolling tests

Eric Anholt eric at anholt.net
Thu Jul 1 15:19:18 PDT 2010


On Thu, 1 Jul 2010 14:50:55 -0700, Tom Stellard <tstellar at gmail.com> wrote:
> Hi,
> 
> Attached is a patch to add some new loop tests to piglit.  The main
> purpose of these tests is to test loop unrolling.

One thing I've been doing in recent tests that have just one execution
path is instead of:

> +ortho
> +clear color 0.5 0.5 0.5 0.5
> +clear
> +draw rect 10 10 10 10
> +draw rect 30 10 10 10
> +probe rgb 15 15 0.6 0.6 0.5
> +probe rgb 35 15 0.6 0.6 0.5

do:

draw rect -1 -1 2 2
probe rgb 1 1 0.6 0.6 0.5

(where 1 1 is just "look at a pixel".  We may also want a "probe rect
rgb x y w h r g b" mode, since sometimes not all pixels are wrong)

This way when you're tracing the test app, you get just the shader
you're interested in instead of also a bunch of matrix
setup, a clear shader, etc.

Want to do that to your shaders here?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20100701/f380b424/attachment.pgp>


More information about the Piglit mailing list