projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7aeaca3
)
nouveau: return pitch value from local_handle_from_texture()
author
Ben Skeggs
<bskeggs@redhat.com>
Mon, 5 Oct 2009 03:39:34 +0000
(13:39 +1000)
committer
Ben 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
patch
|
blob
|
history
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 117ca6059bbfcaadfee03f611c68c1d9dca66736..8b531830f4fca9bea2315b66f798ec9326744790 100644
(file)
--- 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;
}