shm: align the stride to 256 bytes

This is required for the compositor to import the buffer directly into
AMD hardware for zero-copy sampling.
This commit is contained in:
Julian Orth 2025-10-03 16:51:08 +02:00
parent 44a674edb8
commit c462bad08c
2 changed files with 2 additions and 2 deletions

View file

@ -5,5 +5,5 @@
static inline int
stride_for_format_and_width(pixman_format_code_t format, int width)
{
return (((PIXMAN_FORMAT_BPP(format) * width + 7) / 8 + 4 - 1) & -4);
return (((PIXMAN_FORMAT_BPP(format) * width + 7) / 8 + 256 - 1) & -256);
}