nouveau: return pitch value from local_handle_from_texture()
authorBen Skeggs <bskeggs@redhat.com>
Mon, 5 Oct 2009 03:39:34 +0000 (13:39 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 5 Oct 2009 05:36:02 +0000 (15:36 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c

index 117ca6059bbfcaadfee03f611c68c1d9dca66736..8b531830f4fca9bea2315b66f798ec9326744790 100644 (file)
@@ -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;
 }