anv: increase minUniformBufferOffsetAlignment to 64
authorArcady Goldmints-Orlov <agoldmints@igalia.com>
Wed, 29 Apr 2020 00:46:48 +0000 (19:46 -0500)
committerArcady Goldmints-Orlov <agoldmints@igalia.com>
Thu, 7 May 2020 00:45:01 +0000 (19:45 -0500)
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4904>

src/intel/vulkan/anv_device.c

index 8b54408eff014c51db0d22fbb5ccfba7408cbd28..52ce55eeb84343fad81a1d29ce8a5ebb5e9c0b14 100644 (file)
@@ -1505,8 +1505,10 @@ void anv_GetPhysicalDeviceProperties(
        * 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,
+      /* We need 16 for UBO block reads to work and 32 for push UBOs.
+       *  However, we use 64 here to avoid cache issues.
+       */
+      .minUniformBufferOffsetAlignment          = 64,
       .minStorageBufferOffsetAlignment          = 4,
       .minTexelOffset                           = -8,
       .maxTexelOffset                           = 7,