[Piglit] [RFC] arb_gpu_shader5: some vertex stream tests

Topi Pohjolainen topi.pohjolainen at intel.com
Tue Oct 15 13:49:34 CEST 2013


First patch I included just to ask if there something amiss in
my system. I have

X.Org X Server 1.12.4
Release Date: 2012-08-27

running on NVIDIA (304.88 on GTX 660). Without the patch I just
wasn't able to run the shader_runner at all:

piglit: info: Failed to create GL 3.2 core context
piglit: info: Falling back to GL 3.2 compatibility context
piglit: info: Failed to create GL 3.2 compatibility context
piglit: info: Failed to create any GL context
PIGLIT: {'result': 'skip' }


I haven't written any linker or compiler tests for piglit before
and what I have here I just based on what I understood from
existing tests.

First set of tests address the primitive type constraints when
geometry shaders output multiple streams. The second set
exercises the stream identifier parameter taken by
EmitStreamVertex() and EndStreamPrimitive() builtin functions.

Topi Pohjolainen (3):
  hack: enable shader runner on 4.2.0 NVIDIA 304.88
  arb_gpu_shader5: add shader tests with multiple streams but emitting
    strips
  arb_gpu_shader5: add vertex stream id compiler tests

 tests/all.tests                                    |  2 +
 tests/shaders/shader_runner.c                      |  2 +-
 .../primitive-end-with-const-int.geom              | 26 +++++++++++++
 .../primitive-end-with-non-const-int.geom          | 26 +++++++++++++
 .../vertex-stream-emit-with-const-int.geom         | 26 +++++++++++++
 .../vertex-stream-emit-with-non-const-int.geom     | 26 +++++++++++++
 ...vertex-streams-emitting-line-strips.shader_test | 43 ++++++++++++++++++++++
 ...ex-streams-emitting-triangle-strips.shader_test | 43 ++++++++++++++++++++++
 ...-streams-only-one-emits-line-strips.shader_test | 40 ++++++++++++++++++++
 9 files changed, 233 insertions(+), 1 deletion(-)
 create mode 100644 tests/spec/arb_gpu_shader5/compiler/builtin-functions/primitive-end-with-const-int.geom
 create mode 100644 tests/spec/arb_gpu_shader5/compiler/builtin-functions/primitive-end-with-non-const-int.geom
 create mode 100644 tests/spec/arb_gpu_shader5/compiler/builtin-functions/vertex-stream-emit-with-const-int.geom
 create mode 100644 tests/spec/arb_gpu_shader5/compiler/builtin-functions/vertex-stream-emit-with-non-const-int.geom
 create mode 100644 tests/spec/arb_gpu_shader5/linker/gs-multiple-vertex-streams-emitting-line-strips.shader_test
 create mode 100644 tests/spec/arb_gpu_shader5/linker/gs-multiple-vertex-streams-emitting-triangle-strips.shader_test
 create mode 100644 tests/spec/arb_gpu_shader5/linker/gs-multiple-vertex-streams-only-one-emits-line-strips.shader_test

-- 
1.8.3.1



More information about the Piglit mailing list