nouveau: return pitch value from local_handle_from_texture()

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
Ben Skeggs 2009-10-05 13:39:34 +10:00
parent 7aeaca33c3
commit 5313f1be11

View 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;
}