OSDN Git Service

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 117ca60..8b53183 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;
 }