[Piglit] [PATCH 0/2] Added some few more struct construction tests

Andres Gomez agomez at igalia.com
Fri Aug 5 14:43:23 UTC 2016


This set focus on checking invalid structs construction and
initializations.

Specifically, adds tests to check that only implicit conversions are
perform and vector conversions of the type vec3 to vec2 through
dropping the z component are not allowed.

This is related to this series recently landed in mesa:
https://lists.freedesktop.org/archives/mesa-dev/2016-July/124852.html

Andres Gomez (2):
  glslparsertest: Added some few more struct construction tests
  arb_shading_language_420pack: Added some few more struct initializing
    tests

 tests/glslparsertest/glsl2/constructor-29.vert      | 13 +++++++++++++
 tests/glslparsertest/glsl2/constructor-30.vert      | 13 +++++++++++++
 tests/glslparsertest/glsl2/constructor-31.vert      | 15 +++++++++++++++
 tests/glslparsertest/glsl2/constructor-32.vert      | 15 +++++++++++++++
 tests/glslparsertest/glsl2/constructor-33.vert      | 15 +++++++++++++++
 tests/glslparsertest/glsl2/constructor-34.vert      | 15 +++++++++++++++
 ...e-initializer-struct-wrong-bool-type-struct.frag | 20 ++++++++++++++++++++
 ...e-initializer-struct-wrong-struct-type-bool.frag | 20 ++++++++++++++++++++
 ...initializer-struct-wrong-struct-type-struct.frag | 21 +++++++++++++++++++++
 ...ate-initializer-struct-wrong-vec2-type-vec3.frag | 18 ++++++++++++++++++
 10 files changed, 165 insertions(+)
 create mode 100644 tests/glslparsertest/glsl2/constructor-29.vert
 create mode 100644 tests/glslparsertest/glsl2/constructor-30.vert
 create mode 100644 tests/glslparsertest/glsl2/constructor-31.vert
 create mode 100644 tests/glslparsertest/glsl2/constructor-32.vert
 create mode 100644 tests/glslparsertest/glsl2/constructor-33.vert
 create mode 100644 tests/glslparsertest/glsl2/constructor-34.vert
 create mode 100644 tests/spec/arb_shading_language_420pack/compiler/illegal-aggregate-initializer-struct-wrong-bool-type-struct.frag
 create mode 100644 tests/spec/arb_shading_language_420pack/compiler/illegal-aggregate-initializer-struct-wrong-struct-type-bool.frag
 create mode 100644 tests/spec/arb_shading_language_420pack/compiler/illegal-aggregate-initializer-struct-wrong-struct-type-struct.frag
 create mode 100644 tests/spec/arb_shading_language_420pack/compiler/illegal-aggregate-initializer-struct-wrong-vec2-type-vec3.frag

-- 
2.8.1



More information about the Piglit mailing list