diff options
author | Arcady Goldmints-Orlov <[email protected]> | 2020-04-28 19:46:48 -0500 |
---|---|---|
committer | Arcady Goldmints-Orlov <[email protected]> | 2020-05-06 19:45:01 -0500 |
commit | a0de2e0090535bd49b70c52917e7bdab628d354a (patch) | |
tree | 027e5142d5c8e357a50d1c98eadc2f390f6253e5 /src/intel/vulkan | |
parent | e8cdf125112934b589d9682239e46bf196bd9de1 (diff) |
anv: increase minUniformBufferOffsetAlignment to 64
Acked-by: Jason Ekstrand <[email protected]>
Acked-by: Lionel Landwerlin <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4904>
Diffstat (limited to 'src/intel/vulkan')
-rw-r--r-- | src/intel/vulkan/anv_device.c | 6 |
1 files changed, 4 insertions, 2 deletions
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, |