summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBenjamin Franzke <[email protected]>2010-10-31 16:01:52 +0100
committerChia-I Wu <[email protected]>2010-11-01 01:03:53 +0800
commit6102683b191c5306a5ff40978d020393635b7c62 (patch)
treeefdd6f92ec6f644f6304bf44167daa1c5f6544c0 /src
parent52ef148923ef53dfd2192273bcdac39f233da869 (diff)
st/egl image: multiply drm buf-stride with blocksize
[olv: formatted for 80-column wrapping]
Diffstat (limited to 'src')
-rw-r--r--src/gallium/state_trackers/egl/common/egl_g3d_image.c3
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);
}