mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-06-03 22:18:22 +02:00
modetest: align fb pitch to 64 bytes
Docs say this is necessary, and the kernel now enforces this.
This commit is contained in:
parent
b8abe6139e
commit
0da84f89c2
1 changed files with 1 additions and 0 deletions
|
|
@ -438,6 +438,7 @@ create_test_buffer(drm_intel_bufmgr *bufmgr,
|
|||
|
||||
/* Mode size at 32 bpp */
|
||||
stride = width * 4;
|
||||
stride = (stride + 63) & ~63;
|
||||
size = stride * height;
|
||||
|
||||
bo = drm_intel_bo_alloc(bufmgr, "frontbuffer", size, 4096);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue