diff options
author | Benjamin Franzke <[email protected]> | 2010-10-31 16:01:52 +0100 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-11-01 01:03:53 +0800 |
commit | 6102683b191c5306a5ff40978d020393635b7c62 (patch) | |
tree | efdd6f92ec6f644f6304bf44167daa1c5f6544c0 | |
parent | 52ef148923ef53dfd2192273bcdac39f233da869 (diff) |
st/egl image: multiply drm buf-stride with blocksize
[olv: formatted for 80-column wrapping]
-rw-r--r-- | src/gallium/state_trackers/egl/common/egl_g3d_image.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |