mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
st/egl image: multiply drm buf-stride with blocksize
[olv: formatted for 80-column wrapping]
This commit is contained in:
parent
52ef148923
commit
6102683b19
1 changed files with 2 additions and 1 deletions
|
|
@ -178,7 +178,8 @@ egl_g3d_reference_drm_buffer(_EGLDisplay *dpy, EGLint name,
|
|||
|
||||
memset(&wsh, 0, sizeof(wsh));
|
||||
wsh.handle = (unsigned) name;
|
||||
wsh.stride = attrs.DRMBufferStrideMESA;
|
||||
wsh.stride =
|
||||
attrs.DRMBufferStrideMESA * util_format_get_blocksize(templ.format);
|
||||
|
||||
return screen->resource_from_handle(screen, &templ, &wsh);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue