[Piglit] [RFC] shader_runner branch
Brian Paul
brianp at vmware.com
Fri Apr 16 13:14:26 PDT 2010
Ian Romanick wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I have a branch, called shader_runner, in my local GIT tree that adds a
> generic shader test runner. There is a branch with the same name in the
> main piglit GIT tree, but that branch only contains fail. My lack of
> GIT-fu shows.
>
> git://anongit.freedesktop.org/~idr/piglit shader_runner
>
> It's conceptually similar to vpfp-generic, which is used for assembly
> shader tests. The test files are "ini" style with "[section header]"
> section divisions. The shader code can either be in the test file or
> stored in external files. One of the planned future changes is to
> subsume the vpfp-generic functionality so that tests of mixing assembly
> and GLSL can be written.
>
> It currently only supports a subset of what we really want (i.e., it
> only supports setting vec4 uniforms), but it is very easy to add new
> features as needed.
>
> I'd like some review of this branch before I merge it. In particular,
> the code uses some of the portability checks in cmake. The commits
> listed below are the relevant changes. I'd especially appreciate it if
> someone could try building this on OS X and Windows.
I wrote something like this last year: progs/glsl/shtest.c
It reads a config file which lists shader file names, uniform values,
texture images, etc. To try it:
cd progs/glsl
./shtest toyball.shtest
I used it at a test harness to debug shaders extracted from other
games/apps/demos.
Maybe there's some code or ideas there for you to leverage.
-Brian
More information about the Piglit
mailing list