From: Jason Ekstrand Date: Thu, 6 Jun 2019 20:45:57 +0000 (-0500) Subject: anv: Advertise a more accurate minTexelBufferOffsetAlignment X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e708261cb7c31b40313a5d46276c8370bdfc6d41;p=mesa.git anv: Advertise a more accurate minTexelBufferOffsetAlignment Reviewed-by: Caio Marcelo de Oliveira Filho --- diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 23be762626a..16fa4301498 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -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,