Module: Mesa
Branch: master
Commit: 5313f1be11568b21f2e5fa5e8607bcbb422c3cab
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=5313f1be11568b21f2e5fa5e8607bcbb422c3cab

Author: Ben Skeggs <[email protected]>
Date:   Mon Oct  5 13:39:34 2009 +1000

nouveau: return pitch value from local_handle_from_texture()

Signed-off-by: Ben Skeggs <[email protected]>

---

 .../winsys/drm/nouveau/drm/nouveau_drm_api.c       |    1 +
 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 117ca60..8b53183 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;
 }
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to