From: Ben Skeggs Date: Mon, 5 Oct 2009 03:39:34 +0000 (+1000) Subject: nouveau: return pitch value from local_handle_from_texture() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5313f1be11568b21f2e5fa5e8607bcbb422c3cab;p=mesa.git nouveau: return pitch value from local_handle_from_texture() Signed-off-by: Ben Skeggs --- diff --git a/src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c b/src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c index 117ca6059bb..8b531830f4f 100644 --- a/src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c +++ b/src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c @@ -245,6 +245,7 @@ nouveau_drm_handle_from_pt(struct drm_api *api, struct pipe_screen *pscreen, return false; *handle = mt->bo->handle; + *stride = mt->base.nblocksx[0] * mt->base.block.size; return true; }