arb_enhanced_layouts: explicit-offset: add more corner cases

Graphics / Mesa 3D Graphics Library / Piglit - Niklas Haas [haasn.xyz] - 27 January 2019 06:49 EST

This adds a few tests:- testing offsets that immediately follow a member whose actual size is smaller than its actual alignment- testing confusing interactions between explicit alignment and explicit offsets, in particular when the former overrides the latter- test that overriding block-level alignments works as expected

Notably, the first of the three test cases triggers a compile-time error in current mesa.

5ae875ed3 arb_enhanced_layouts: explicit-offset: add more corner cases
.../ssbo-explicit-offset-align-mismatch-error.vert | 39 ++++++++++++++++++++++
.../ssbo-explicit-offset-align-mismatch.vert | 32 ++++++++++++++++++
.../ssbo-explicit-offset-vec3.vert | 29 ++++++++++++++++
.../ssbo-override-explicit-block-alignment.vert | 31 +++++++++++++++++
.../ubo-explicit-offset-align-mismatch-error.vert | 38 +++++++++++++++++++++
.../ubo-explicit-offset-align-mismatch.vert | 31 +++++++++++++++++
.../explicit-offsets/ubo-explicit-offset-vec3.vert | 28 ++++++++++++++++
.../ubo-override-explicit-block-alignment.vert | 30 +++++++++++++++++
8 files changed, 258 insertions(+)

Upstream: cgit.freedesktop.org


  • Share