Skip to content

v3d,v3dv: fix MMU error from hardware prefetch after ldunifa

What does this MR do and why?

ldunifa works exactly the same as ldunif: the hw will prefetch the next 4 bytes after a read, so if a buffer is exactly a multiple of a page size and a shader uses ldunifa to read exactly the last 4 bytes the prefetch will read out of bounds and spam the error on the kernel log. Avoid that by allocating extra bytes in this scenario.

Merge request reports