[Piglit] [PATCH 2/4] arb_enhanced_layouts: fix constant expression offset tests

Timothy Arceri timothy.arceri at collabora.com
Tue Dec 29 15:40:23 PST 2015


Offset must be a multiple of the base alignment which is 16 for
a vec4.

Cc: Emil Velikov <emil.l.velikov at gmail.com>
---
 .../explicit-offsets/ssbo-integral-constant-expression-offset.vert      | 2 +-
 .../explicit-offsets/ubo-integral-constant-expression-offset.vert       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/spec/arb_enhanced_layouts/compiler/explicit-offsets/ssbo-integral-constant-expression-offset.vert b/tests/spec/arb_enhanced_layouts/compiler/explicit-offsets/ssbo-integral-constant-expression-offset.vert
index 5139537..6a57d6a 100644
--- a/tests/spec/arb_enhanced_layouts/compiler/explicit-offsets/ssbo-integral-constant-expression-offset.vert
+++ b/tests/spec/arb_enhanced_layouts/compiler/explicit-offsets/ssbo-integral-constant-expression-offset.vert
@@ -17,7 +17,7 @@
 #extension GL_ARB_enhanced_layouts : enable
 #extension GL_ARB_shader_storage_buffer_object : enable
 
-const int start = 8;
+const int start = 16;
 
 layout(std430) buffer b {
        layout(offset = start + 0) vec4 var1;
diff --git a/tests/spec/arb_enhanced_layouts/compiler/explicit-offsets/ubo-integral-constant-expression-offset.vert b/tests/spec/arb_enhanced_layouts/compiler/explicit-offsets/ubo-integral-constant-expression-offset.vert
index 3739dea..2a4994c 100644
--- a/tests/spec/arb_enhanced_layouts/compiler/explicit-offsets/ubo-integral-constant-expression-offset.vert
+++ b/tests/spec/arb_enhanced_layouts/compiler/explicit-offsets/ubo-integral-constant-expression-offset.vert
@@ -16,7 +16,7 @@
 #version 140
 #extension GL_ARB_enhanced_layouts : enable
 
-const int start = 8;
+const int start = 16;
 
 layout(std140) uniform block {
        layout(offset = start + 0) vec4 var1;
-- 
2.4.3



More information about the Piglit mailing list