[Piglit] [PATCH v5 0/6] program_interface_query: tests for getprograminterfaceiv and getprogramresourceindex/name/iv

Martin Peres martin.peres at linux.intel.com
Wed Apr 1 03:56:31 PDT 2015

This patchset provides tests for getprograminterfaceiv,
getprogramresourceindex, getprogramresourcename and getprogramresourceiv.

The first patch is a functional test that tries a lot of different
program pipelines and checks that getprograminterfaceiv returns valid
values. These values are then checked iteratively by calling
getprogramresourceindex and getprogramresourcename. Sorry about the big
table that smashes the 80-column limit...

The last patch is also a monster test that checks for various program
pipelines that the different properties have the right values for
different resources. It also includes some tests for the error cases.

The other tests are more specific and are checking the error paths or
more complex cases. Patch 3/4 superseeds the already-existing
resource-index.c test which thus gets deleted.

All the patches have been written against NVIDIA's proprietary
driver (346.35) which passes the majority of the tests. All the tests
pass on Tapani's implementation for mesa.

Martin Peres (6):
  program_interface_query: add tests for querying the resources
  program_interface_query: add tests for getprograminterfaceiv
  program_interface_query: add tests for getprogramresourceindex
  program_interface_query: add tests for getprogramresourcename
  program_interface_query: move some shaders to common.h
  program_interface_query: add tests for getprogramresourceiv

 tests/all.py                                       |    5 +-
 .../arb_program_interface_query/CMakeLists.gl.txt  |    6 +-
 tests/spec/arb_program_interface_query/common.h    |  300 ++++++
 .../getprograminterfaceiv.c                        |  202 ++++
 .../getprogramresourceindex.c                      |  339 +++++++
 .../getprogramresourceiv.c                         | 1063 ++++++++++++++++++++
 .../getprogramresourcename.c                       |  183 ++++
 .../arb_program_interface_query/resource-index.c   |  284 ------
 .../resource-location.c                            |   32 +-
 .../arb_program_interface_query/resource-query.c   |  741 ++++++++++++++
 10 files changed, 2842 insertions(+), 313 deletions(-)
 mode change 100644 => 100755 tests/all.py
 mode change 100644 => 100755 tests/spec/arb_program_interface_query/CMakeLists.gl.txt
 create mode 100755 tests/spec/arb_program_interface_query/common.h
 create mode 100755 tests/spec/arb_program_interface_query/getprograminterfaceiv.c
 create mode 100755 tests/spec/arb_program_interface_query/getprogramresourceindex.c
 create mode 100755 tests/spec/arb_program_interface_query/getprogramresourceiv.c
 create mode 100755 tests/spec/arb_program_interface_query/getprogramresourcename.c
 delete mode 100644 tests/spec/arb_program_interface_query/resource-index.c
 mode change 100644 => 100755 tests/spec/arb_program_interface_query/resource-location.c
 create mode 100755 tests/spec/arb_program_interface_query/resource-query.c


More information about the Piglit mailing list