~xorg-edgers/piglit/trunk

Viewing all changes in revision 10146.

  • Committer: Jordan Justen
  • Date: 2018-06-11 07:43:27 UTC
  • Revision ID: git-v1:273c634b668afeeab3007f20c84839b7cd12b1e4
shader_runner: Add -get-program-binary parameter

This parameter will test ARB_get_program_binary and
OES_get_program_binary with any shader runner test.

If -get-program-binary, then shader_runner will check to see if the
extension is supported, and if 1 or more binary formats are supported.
If the extensions are not supported, or 0 formats are supported, then
the test will result in a skip.

If the program binary extension is supported and 1 or more binary
formats are supported, then following a successful link of the shader
runner program:

1. GetProgramBinary will be used to get the program
2. A new program will be generated
3. ProgramBinary will be used on the new program with the previously
   returned binary
4. The old program will be deleted
5. The shader runner will continue to run using the new program

Although this is not a focused test of the get_program_binary
extensions, it does allow any of the thousands of previously written
shader runner tests to be run while testing get_program_binary.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: