From: Arcady Goldmints-Orlov Date: Wed, 29 Apr 2020 00:46:48 +0000 (-0500) Subject: anv: increase minUniformBufferOffsetAlignment to 64 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a0de2e0090535bd49b70c52917e7bdab628d354a;p=mesa.git anv: increase minUniformBufferOffsetAlignment to 64 Acked-by: Jason Ekstrand Acked-by: Lionel Landwerlin Part-of: --- diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 8b54408eff0..52ce55eeb84 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -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,