mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-20 06:46:26 -04:00
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:
parent
44a674edb8
commit
c462bad08c
2 changed files with 2 additions and 2 deletions
2
stride.h
2
stride.h
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue