[Piglit] [PATCH 0/4] ARB_gl_spirv: xfb tests
Alejandro Piñeiro
apinheiro at igalia.com
Fri Jul 20 15:16:08 UTC 2018
Hi,
this is the third series that includes tests for the ARB_gl_spirv
extension. Note that this depends on the pending-to-review first
series (basics+uniforms) and second (atomic counters). The three
series are included on the following branch:
https://github.com/Igalia/piglit/tree/arb_gl_spirv-series3-xfb-v1
It is worth to note that this series introduces a change on the tests
we are including. Until now all the tests were tests in shader_test
format run by shader_runner. But right now shader_runner doesn't have
too much support for transform feedback/geometry streams testing, and
adding support on a generic way would be far from trivial.
For that reason we preferred to modify existing XFB/Geometry Stream
tests, but adding the capability to load GLSL and SPIR-V shaders. In
order to do that, we moved the GLSL code they were using to a
shader_test, that also includes now the SPIR-V, and added utilities to
load shaders from a shader_test, and to assemble the SPIR-V from the
assembler format. The latter is refactored from shader_runner.
So from now we would have more that one consumer of the shader_test
format: the generic shader_runner, and some custom one used for really
specific features.
Alejandro Piñeiro (1):
util: Add utilities to handle shader_test files
Neil Roberts (3):
util: Add a utility to assemble SPIR-V sources
arb_gpu_shader5: Add support for testing spirv with XFB streams
arb_enhanced_layouts: Test XFB layout qualifiers via SPIR-V
tests/opengl.py | 23 +-
tests/shaders/shader_runner.c | 45 +--
.../shader_test/gs_text_two_sets_tmpl.shader_test | 32 ++
.../shader_test/vs_passthru.shader_test | 50 ++++
.../shader_test/vs_two_sets.shader_test | 122 ++++++++
.../shader_test/vs_two_sets_ifc.shader_test | 125 ++++++++
.../shader_test/vs_two_sets_named_ifc.shader_test | 122 ++++++++
.../shader_test/vs_two_sets_struct.shader_test | 131 +++++++++
.../transform-feedback-layout-qualifiers.c | 322 +++++++++++----------
.../xfb_streams_without_invocations.shader_test | 194 +++++++++++++
.../execution/xfb-streams-without-invocations.c | 135 ++++++---
tests/util/CMakeLists.txt | 1 +
tests/util/piglit-shader-test.c | 154 ++++++++++
tests/util/piglit-shader-test.h | 43 +++
tests/util/piglit-shader.c | 37 +++
tests/util/piglit-shader.h | 3 +
16 files changed, 1307 insertions(+), 232 deletions(-)
create mode 100644 tests/spec/arb_enhanced_layouts/shader_test/gs_text_two_sets_tmpl.shader_test
create mode 100644 tests/spec/arb_enhanced_layouts/shader_test/vs_passthru.shader_test
create mode 100644 tests/spec/arb_enhanced_layouts/shader_test/vs_two_sets.shader_test
create mode 100644 tests/spec/arb_enhanced_layouts/shader_test/vs_two_sets_ifc.shader_test
create mode 100644 tests/spec/arb_enhanced_layouts/shader_test/vs_two_sets_named_ifc.shader_test
create mode 100644 tests/spec/arb_enhanced_layouts/shader_test/vs_two_sets_struct.shader_test
create mode 100644 tests/spec/arb_gpu_shader5/execution/shader_test/xfb_streams_without_invocations.shader_test
create mode 100644 tests/util/piglit-shader-test.c
create mode 100644 tests/util/piglit-shader-test.h
--
2.14.1
More information about the Piglit
mailing list