Skip to content

lima: fix buffer overallocation for index, vertex and constant buffers

Vasily Khoruzhick requested to merge anarsoul/mesa:lima-fix-buf-allocation into main

24be0119 ("lima: wire up MSAA 4x support") switched to aligning all the buffers to tile size and it resulted in allocating 16x more memory for index, vertex and constant buffers.

We only want to align textures and render targets to tile size, not other buffers, so restore old logic, but relax it.

Fixes: 24be0119 ("lima: wire up MSAA 4x support") Signed-off-by: Vasily Khoruzhick anarsoul@gmail.com

Merge request reports