Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18291>
/* Size of a cache line */
#define V3D_NON_COHERENT_ATOM_SIZE 256
+/* Minimum alignment for texel buffers */
+#define V3D_TMU_TEXEL_ALIGN 64
+
#define V3D_MAX_IMAGE_DIMENSION 4096
/* The HW can do 16384 (15), but we run into hangs when we expose that. Also,
2.0 * max_fb_size - 1 },
.viewportSubPixelBits = 0,
.minMemoryMapAlignment = page_size,
- .minTexelBufferOffsetAlignment = V3D_UIFBLOCK_SIZE,
+ .minTexelBufferOffsetAlignment = V3D_TMU_TEXEL_ALIGN,
.minUniformBufferOffsetAlignment = 32,
.minStorageBufferOffsetAlignment = 32,
.minTexelOffset = -8,
return true;
case PIPE_CAP_TEXTURE_BUFFER_OFFSET_ALIGNMENT:
- return 256;
+ return V3D_TMU_TEXEL_ALIGN;
case PIPE_CAP_IMAGE_STORE_FORMATTED:
return false;