anv: increase minUniformBufferOffsetAlignment to 64

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>
This commit is contained in:
Arcady Goldmints-Orlov 2020-04-28 19:46:48 -05:00
parent e8cdf12511
commit a0de2e0090

View file

@ -1505,8 +1505,10 @@ void anv_GetPhysicalDeviceProperties(
* case of R32G32B32A32 which is 16 bytes. * case of R32G32B32A32 which is 16 bytes.
*/ */
.minTexelBufferOffsetAlignment = 16, .minTexelBufferOffsetAlignment = 16,
/* We need 16 for UBO block reads to work and 32 for push UBOs */ /* We need 16 for UBO block reads to work and 32 for push UBOs.
.minUniformBufferOffsetAlignment = 32, * However, we use 64 here to avoid cache issues.
*/
.minUniformBufferOffsetAlignment = 64,
.minStorageBufferOffsetAlignment = 4, .minStorageBufferOffsetAlignment = 4,
.minTexelOffset = -8, .minTexelOffset = -8,
.maxTexelOffset = 7, .maxTexelOffset = 7,