[Piglit] [PATCH v2 0/37] Port Glean Frag-prog tests to shader_runner

Dylan Baker dylan at pnwbakers.com
Tue Sep 6 19:20:38 UTC 2016


This series takes a swing at porting some of the glean tests to the
native piglit framework, all through shader_runner.

For the most part these are pretty much straight across ports, with a
few modifications since these don't have all of the shared setup before
they run, and in a few cases to simplify the tests, or to have them draw
green on success like most piglit tests do.

There is one change I'm a little bit skeptical about is adding support
for GL_FOG to shader_runner. It does make the rest of the tests easy to
port, but it's yet more code in shader_runner, which is already a giant
mess.

Dylan Baker (37):
  editorconfig: update the editorconfig file
  glean/tfragprog1: port ABS test to shader_runner
  glean/tfragprog1: port ADD tests to shader_runner
  glean/tfragprog1: Port CMP test to shader_runner
  glean/tfragprog1: port COS tests to shader runner
  glean/tfragprog1: port DP3 tests to shader_runner
  glean/tfragprog1: port DP4 test to shader_runner
  glean/tfragprog1: port DPH test to shader_runner
  glean/tfragprog1: port DST test to shader_runner
  glean/tfragprog1: port EX2 test to shader_runner
  glean/tfragprog1: port FLR test to shader_runner
  glean/tfragprog1: port FRC test to shader_runner
  glean/tfragprog1: port LG2 test to shader_runner
  glean/tfragprog1: port LIT tests to shader_runner
  glean/tfragprog1: port LRP test to shader_runner
  glean/tfragprog1: port MAD test to shader_runner
  glean/tfragprog1: port MAX test to shader_runner
  glean/tfragprog1: port MIN test to shader_runner
  glean/tfragprog1: port MOV tests to shader_runner
  glean/tfragprog1: port MUL tests to shader_runner
  glean/tfragprog1: port POW test to shader_runner
  glean/tfragprog1: port RCP tests to shader_runner
  glean/tfragprog1: port RSQ tests to shader_runner
  glean/tfragprog1: port SCS test to shader_runner
  glean/tfragprog1: port SGE test to shader_runner
  glean/tfragprog1: port SIN tests to shader_runner
  glean/tfragprog1: replace SLT test with shader_runner test
  glean/tfragprog1: port SUB tests to shader_runner
  glean/tfragprog1: port swizzle tests to shader_runner
  glean/tfragprog1: port XPD test to shader_runner
  shader_runner: add command for glFog
  glean/tfragprog1: port linear fog tests to shader_runner
  glean/tfragprog1: port exp-fog tests to shader_runner
  glean/tfragprog1: port exp2 fog tests to shader_runner
  glean/tfragprog1: port z-write test to shader_runner
  glean/tfragprog1: remove stress tests
  glean: delete the now empty tfragprog1.cpp

 .editorconfig                                                                         |    4 +-
 tests/all.py                                                                          |   54 +---
 tests/glean/CMakeLists.gl.txt                                                         |    1 +-
 tests/glean/tfragprog1.cpp                                                            | 1125 +------------------------------------------------------------------------
 tests/glean/tfragprog1.h                                                              |   92 +------
 tests/shaders/shader_runner.c                                                         |   74 +++++-
 tests/spec/arb_fragment_program/built-in-functions/abs.shader_test                    |   16 +-
 tests/spec/arb_fragment_program/built-in-functions/add-immediate.shader_test          |   16 +-
 tests/spec/arb_fragment_program/built-in-functions/add-negative-immediate.shader_test |   16 +-
 tests/spec/arb_fragment_program/built-in-functions/add.shader_test                    |   18 +-
 tests/spec/arb_fragment_program/built-in-functions/add_sat.shader_test                |   22 +-
 tests/spec/arb_fragment_program/built-in-functions/cmp.shader_test                    |   20 +-
 tests/spec/arb_fragment_program/built-in-functions/cmp_sat.shader_test                |   20 +-
 tests/spec/arb_fragment_program/built-in-functions/cos-clamped-values.shader_test     |   22 +-
 tests/spec/arb_fragment_program/built-in-functions/cos.shader_test                    |   19 +-
 tests/spec/arb_fragment_program/built-in-functions/dp3.shader_test                    |   18 +-
 tests/spec/arb_fragment_program/built-in-functions/dp4.shader_test                    |   18 +-
 tests/spec/arb_fragment_program/built-in-functions/dph.shader_test                    |   18 +-
 tests/spec/arb_fragment_program/built-in-functions/dst.shader_test                    |   18 +-
 tests/spec/arb_fragment_program/built-in-functions/ex2.shader_test                    |   22 +-
 tests/spec/arb_fragment_program/built-in-functions/flr.shader_test                    |   19 +-
 tests/spec/arb_fragment_program/built-in-functions/frc.shader_test                    |   16 +-
 tests/spec/arb_fragment_program/built-in-functions/lg2.shader_test                    |   22 +-
 tests/spec/arb_fragment_program/built-in-functions/lit-0-to-0.shader_test             |   18 +-
 tests/spec/arb_fragment_program/built-in-functions/lit-x-lt-0.shader_test             |   19 +-
 tests/spec/arb_fragment_program/built-in-functions/lit.shader_test                    |   17 +-
 tests/spec/arb_fragment_program/built-in-functions/lrp.shader_test                    |   20 +-
 tests/spec/arb_fragment_program/built-in-functions/mad.shader_test                    |   20 +-
 tests/spec/arb_fragment_program/built-in-functions/max.shader_test                    |   18 +-
 tests/spec/arb_fragment_program/built-in-functions/min.shader_test                    |   18 +-
 tests/spec/arb_fragment_program/built-in-functions/mov.shader_test                    |   16 +-
 tests/spec/arb_fragment_program/built-in-functions/mul.shader_test                    |   19 +-
 tests/spec/arb_fragment_program/built-in-functions/pow.shader_test                    |   19 +-
 tests/spec/arb_fragment_program/built-in-functions/rcp-replicated.shader_test         |   19 +-
 tests/spec/arb_fragment_program/built-in-functions/rcp.shader_test                    |   22 +-
 tests/spec/arb_fragment_program/built-in-functions/rsq.shader_test                    |   21 +-
 tests/spec/arb_fragment_program/built-in-functions/scs.shader_test                    |   19 +-
 tests/spec/arb_fragment_program/built-in-functions/sge.shader_test                    |   20 +-
 tests/spec/arb_fragment_program/built-in-functions/sin-clamped.shader_test            |   20 +-
 tests/spec/arb_fragment_program/built-in-functions/sin.shader_test                    |   20 +-
 tests/spec/arb_fragment_program/built-in-functions/slt.shader_test                    |   20 +-
 tests/spec/arb_fragment_program/built-in-functions/sub.shader_test                    |   19 +-
 tests/spec/arb_fragment_program/built-in-functions/sub_sat.shader_test                |   20 +-
 tests/spec/arb_fragment_program/built-in-functions/swz.shader_test                    |   17 +-
 tests/spec/arb_fragment_program/built-in-functions/xpd.shader_test                    |   21 +-
 tests/spec/arb_fragment_program/fog/calculated-exp.shader_test                        |   35 ++-
 tests/spec/arb_fragment_program/fog/calculated-exp2.shader_test                       |   36 ++-
 tests/spec/arb_fragment_program/fog/calculated-linear.shader_test                     |   35 ++-
 tests/spec/arb_fragment_program/fog/exp.shader_test                                   |   24 ++-
 tests/spec/arb_fragment_program/fog/exp2.shader_test                                  |   24 ++-
 tests/spec/arb_fragment_program/fog/linear.shader_test                                |   24 ++-
 tests/spec/arb_fragment_program/swizzle-and-mask/masked-mul.shader_test               |   19 +-
 tests/spec/arb_fragment_program/swizzle-and-mask/swizzled-add.shader_test             |   18 +-
 tests/spec/arb_fragment_program/swizzle-and-mask/swizzled-mov.shader_test             |   16 +-
 tests/spec/arb_fragment_program/swizzle-and-mask/swizzled-sub.shader_test             |   18 +-
 tests/spec/arb_fragment_program/z-write.shader_test                                   |   21 +-
 56 files changed, 1088 insertions(+), 1274 deletions(-)
 delete mode 100644 tests/glean/tfragprog1.cpp
 delete mode 100644 tests/glean/tfragprog1.h
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/abs.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/add-immediate.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/add-negative-immediate.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/add.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/add_sat.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/cmp.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/cmp_sat.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/cos-clamped-values.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/cos.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/dp3.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/dp4.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/dph.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/dst.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/ex2.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/flr.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/frc.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/lg2.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/lit-0-to-0.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/lit-x-lt-0.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/lit.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/lrp.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/mad.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/max.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/min.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/mov.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/mul.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/pow.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/rcp-replicated.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/rcp.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/rsq.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/scs.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/sge.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/sin-clamped.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/sin.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/slt.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/sub.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/sub_sat.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/swz.shader_test
 create mode 100644 tests/spec/arb_fragment_program/built-in-functions/xpd.shader_test
 create mode 100644 tests/spec/arb_fragment_program/fog/calculated-exp.shader_test
 create mode 100644 tests/spec/arb_fragment_program/fog/calculated-exp2.shader_test
 create mode 100644 tests/spec/arb_fragment_program/fog/calculated-linear.shader_test
 create mode 100644 tests/spec/arb_fragment_program/fog/exp.shader_test
 create mode 100644 tests/spec/arb_fragment_program/fog/exp2.shader_test
 create mode 100644 tests/spec/arb_fragment_program/fog/linear.shader_test
 create mode 100644 tests/spec/arb_fragment_program/swizzle-and-mask/masked-mul.shader_test
 create mode 100644 tests/spec/arb_fragment_program/swizzle-and-mask/swizzled-add.shader_test
 create mode 100644 tests/spec/arb_fragment_program/swizzle-and-mask/swizzled-mov.shader_test
 create mode 100644 tests/spec/arb_fragment_program/swizzle-and-mask/swizzled-sub.shader_test
 create mode 100644 tests/spec/arb_fragment_program/z-write.shader_test

-- 
git-series 0.8.10


More information about the Piglit mailing list