icd:Reduce offset alignment limits
authorTobin Ehlis <tobine@google.com>
Fri, 3 Nov 2017 21:21:53 +0000 (15:21 -0600)
committerTobin Ehlis <tobine@google.com>
Mon, 6 Nov 2017 23:29:51 +0000 (16:29 -0700)
Buffer min offset alignments were set to the max value. Reduce them to
16 to simplify testing of offsets that are a multiple of the min
alignment.

scripts/mock_icd_generator.py

index 899a75b..c0757e2 100644 (file)
@@ -133,9 +133,9 @@ static VkPhysicalDeviceLimits SetLimits(VkPhysicalDeviceLimits *limits) {
     limits->viewportBoundsRange[1] = 8191;
     limits->viewportSubPixelBits = 0;
     limits->minMemoryMapAlignment = 64;
-    limits->minTexelBufferOffsetAlignment = 256;
-    limits->minUniformBufferOffsetAlignment = 256;
-    limits->minStorageBufferOffsetAlignment = 256;
+    limits->minTexelBufferOffsetAlignment = 16;
+    limits->minUniformBufferOffsetAlignment = 16;
+    limits->minStorageBufferOffsetAlignment = 16;
     limits->minTexelOffset = -8;
     limits->maxTexelOffset = 7;
     limits->minTexelGatherOffset = -8;