Skip to content

lavapipe: bump image alignment up to 64 bytes

Roland Scheidegger requested to merge sroland/mesa:lavapipe-image-alignment into main

What does this MR do and why?

lavapipe: bump image alignment up to 64 bytes

We can't query the actually required alignment from llvmpipe, but 16
bytes is insufficient. In particular, llvmpipe's pixel backend code for
depth/stencil will load/store 4 values at a time, which crashes
with d32s8x24 format if alignment is only 16 bytes (the color backend
does similar things but will use unaligned loads if alignment exceeds
16 bytes at least for now).
32 bytes would be enough, however the "ordinary" llvmpipe resource
layout code currently always aligns to at least 64 bytes, so use
this value as well.

Merge request reports

Loading