From 6102683b191c5306a5ff40978d020393635b7c62 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Sun, 31 Oct 2010 16:01:52 +0100 Subject: [PATCH] st/egl image: multiply drm buf-stride with blocksize [olv: formatted for 80-column wrapping] --- src/gallium/state_trackers/egl/common/egl_g3d_image.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.30.2