From: Benjamin Franzke Date: Sun, 31 Oct 2010 15:01:52 +0000 (+0100) Subject: st/egl image: multiply drm buf-stride with blocksize X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6102683b191c5306a5ff40978d020393635b7c62;p=mesa.git st/egl image: multiply drm buf-stride with blocksize [olv: formatted for 80-column wrapping] --- diff --git a/src/gallium/state_trackers/egl/common/egl_g3d_image.c b/src/gallium/state_trackers/egl/common/egl_g3d_image.c index be9c88e5e47..0c8ad339cc2 100644 --- a/src/gallium/state_trackers/egl/common/egl_g3d_image.c +++ b/src/gallium/state_trackers/egl/common/egl_g3d_image.c @@ -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); }