Test inter- and intra-stage gl_PerVertex matching rules

Graphics / Mesa 3D Graphics Library / Piglit - Paul Berry [gmail.com] - 8 October 2013 14:21 UTC

These tests verify the following linkage rules, from GLSL 4.10:

1. If multiple shaders using members of a built-in block belonging to the same interface are linked together in the same program, they must all redeclare the built-in block in the same way, as described in section 4.3.7 "Interface Blocks" for interface block matching, or a link error will result.

2. It will also be a link error if some shaders in a program redeclare a specific built-in interface block while another shader in that program does not redeclare that interface block yet still uses a member of that interface block.

3a4ddcd Test inter- and intra-stage gl_PerVertex matching rules.
...ge-pervertex-redeclaration-mismatch.shader_test | 65 ++++++++++++++++
...tage-pervertex-redeclaration-needed.shader_test | 64 ++++++++++++++++
...ge-pervertex-redeclaration-unneeded.shader_test | 63 ++++++++++++++++
...pervertex-in-redeclaration-mismatch.shader_test | 71 ++++++++++++++++++
...e-pervertex-in-redeclaration-needed.shader_test | 78 ++++++++++++++++++++
...pervertex-in-redeclaration-unneeded.shader_test | 75 +++++++++++++++++++
...ervertex-out-redeclaration-mismatch.shader_test | 62 ++++++++++++++++
...-pervertex-out-redeclaration-needed.shader_test | 61 +++++++++++++++
...ervertex-out-redeclaration-unneeded.shader_test | 60 +++++++++++++++
9 files changed, 599 insertions(+)

Upstream: cgit.freedesktop.org


  • Share