anv: Advertise a more accurate minTexelBufferOffsetAlignment
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 6 Jun 2019 20:45:57 +0000 (15:45 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Tue, 2 Jul 2019 22:28:44 +0000 (22:28 +0000)
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/intel/vulkan/anv_device.c

index 23be762626a29b47ef9cbfaa7cfe43f1223c8290..16fa430149862f81d6b4d508ad698a4edd78cfaf 100644 (file)
@@ -1299,7 +1299,10 @@ void anv_GetPhysicalDeviceProperties(
       .viewportBoundsRange                      = { INT16_MIN, INT16_MAX },
       .viewportSubPixelBits                     = 13, /* We take a float? */
       .minMemoryMapAlignment                    = 4096, /* A page */
-      .minTexelBufferOffsetAlignment            = 1,
+      /* The dataport requires texel alignment so we need to assume a worst
+       * case of R32G32B32A32 which is 16 bytes.
+       */
+      .minTexelBufferOffsetAlignment            = 16,
       /* We need 16 for UBO block reads to work and 32 for push UBOs */
       .minUniformBufferOffsetAlignment          = 32,
       .minStorageBufferOffsetAlignment          = 4,