summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2009-10-05 13:39:34 +1000
committerBen Skeggs <bskeggs@redhat.com>2009-10-05 15:36:02 +1000
commit5313f1be11568b21f2e5fa5e8607bcbb422c3cab (patch)
tree99f17bb2865083e596bb6da21f7da3958cbe978a /src
parent7aeaca33c331f70d507fc83583b13b8d9fc3e847 (diff)
nouveau: return pitch value from local_handle_from_texture()
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c1
1 files changed, 1 insertions, 0 deletions
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 117ca6059b..8b531830f4 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;
}