[Piglit] [PATCH 0/4] Tests for GL_ATI_fragment_shader v2

Miklós Máté mtmkls at gmail.com
Sat Dec 2 22:36:01 UTC 2017


This series adds API sanity checks, error checks for the conditions listed in
the specification, and render tests for validating the state machine.
I think this is the point where the test set starts becoming useful.

I plan to do more API sanity checks, validate error conditions that are not in
the specification (e.g. invalid argRep), and render tests for validating the
compiler.

After applying the corresponding Mesa patch series all of these tests
should pass on swrast and all gallium drivers (although I could only test
softpipe, llvmpipe and radeonsi). Unfortunately I can't test on r200.

Miklós Máté (4):
  ATI_fs: add api error tests
  ATI_fs: add render tests
  ATI_fs: add some api tests
  Remove old ATI_fs test

 tests/all.py                                       |  24 +-
 tests/shaders/CMakeLists.gl.txt                    |   1 -
 tests/spec/CMakeLists.txt                          |   1 +
 tests/spec/ati_fragment_shader/CMakeLists.gl.txt   |  37 +++
 tests/spec/ati_fragment_shader/CMakeLists.txt      |   1 +
 tests/spec/ati_fragment_shader/api-alphafirst.c    |  71 +++++
 tests/spec/ati_fragment_shader/api-gen.c           |  87 ++++++
 .../ati_fragment_shader/error01-genzero.c}         |  40 ++-
 tests/spec/ati_fragment_shader/error02-inside.c    |  71 +++++
 tests/spec/ati_fragment_shader/error03-outside.c   |  95 ++++++
 tests/spec/ati_fragment_shader/error04-endshader.c | 146 ++++++++++
 tests/spec/ati_fragment_shader/error05-passes.c    | 140 +++++++++
 .../spec/ati_fragment_shader/error06-regswizzle.c  | 322 +++++++++++++++++++++
 tests/spec/ati_fragment_shader/error07-instcount.c | 104 +++++++
 tests/spec/ati_fragment_shader/error08-secondary.c | 106 +++++++
 tests/spec/ati_fragment_shader/error09-allconst.c  | 100 +++++++
 tests/spec/ati_fragment_shader/error10-dotx.c      | 136 +++++++++
 .../spec/ati_fragment_shader/error11-invaliddst.c  | 175 +++++++++++
 .../spec/ati_fragment_shader/error12-invalidsrc.c  | 163 +++++++++++
 .../spec/ati_fragment_shader/error13-invalidarg.c  | 140 +++++++++
 .../spec/ati_fragment_shader/error14-invalidmod.c  | 147 ++++++++++
 tests/spec/ati_fragment_shader/render-constants.c  | 121 ++++++++
 tests/spec/ati_fragment_shader/render-default.c    |  88 ++++++
 tests/spec/ati_fragment_shader/render-fog.c        | 115 ++++++++
 tests/spec/ati_fragment_shader/render-notexture.c  | 108 +++++++
 tests/spec/ati_fragment_shader/render-precedence.c | 131 +++++++++
 tests/spec/ati_fragment_shader/render-sources.c    | 151 ++++++++++
 tests/spec/ati_fragment_shader/render-textargets.c | 109 +++++++
 28 files changed, 2912 insertions(+), 18 deletions(-)
 create mode 100644 tests/spec/ati_fragment_shader/CMakeLists.gl.txt
 create mode 100644 tests/spec/ati_fragment_shader/CMakeLists.txt
 create mode 100644 tests/spec/ati_fragment_shader/api-alphafirst.c
 create mode 100644 tests/spec/ati_fragment_shader/api-gen.c
 rename tests/{shaders/ati-fs-bad-delete.c => spec/ati_fragment_shader/error01-genzero.c} (66%)
 create mode 100644 tests/spec/ati_fragment_shader/error02-inside.c
 create mode 100644 tests/spec/ati_fragment_shader/error03-outside.c
 create mode 100644 tests/spec/ati_fragment_shader/error04-endshader.c
 create mode 100644 tests/spec/ati_fragment_shader/error05-passes.c
 create mode 100644 tests/spec/ati_fragment_shader/error06-regswizzle.c
 create mode 100644 tests/spec/ati_fragment_shader/error07-instcount.c
 create mode 100644 tests/spec/ati_fragment_shader/error08-secondary.c
 create mode 100644 tests/spec/ati_fragment_shader/error09-allconst.c
 create mode 100644 tests/spec/ati_fragment_shader/error10-dotx.c
 create mode 100644 tests/spec/ati_fragment_shader/error11-invaliddst.c
 create mode 100644 tests/spec/ati_fragment_shader/error12-invalidsrc.c
 create mode 100644 tests/spec/ati_fragment_shader/error13-invalidarg.c
 create mode 100644 tests/spec/ati_fragment_shader/error14-invalidmod.c
 create mode 100644 tests/spec/ati_fragment_shader/render-constants.c
 create mode 100644 tests/spec/ati_fragment_shader/render-default.c
 create mode 100644 tests/spec/ati_fragment_shader/render-fog.c
 create mode 100644 tests/spec/ati_fragment_shader/render-notexture.c
 create mode 100644 tests/spec/ati_fragment_shader/render-precedence.c
 create mode 100644 tests/spec/ati_fragment_shader/render-sources.c
 create mode 100644 tests/spec/ati_fragment_shader/render-textargets.c

-- 
2.15.0.rc0



More information about the Piglit mailing list