summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Skeggs <skeggsb@gmail.com>2008-09-18 13:15:55 +1000
committerBen Skeggs <skeggsb@gmail.com>2008-09-18 13:15:55 +1000
commit562b31195cc8140d3bd0ad7ed8532200e9df520a (patch)
tree4cfe8d58f7e5ad572911e3d6c9b20144e644d088
parentb1d8b6c4d986a6526f20e1e89982036f0ba85222 (diff)
nv50: hack surface alloc a bit for now
-rw-r--r--src/gallium/drivers/nv50/nv50_miptree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv50/nv50_miptree.c b/src/gallium/drivers/nv50/nv50_miptree.c
index b0e8fe2f0..28a8bdc0f 100644
--- a/src/gallium/drivers/nv50/nv50_miptree.c
+++ b/src/gallium/drivers/nv50/nv50_miptree.c
@@ -48,6 +48,8 @@ nv50_miptree_create(struct pipe_screen *pscreen, const struct pipe_texture *pt)
}
pitch = ((pt->width[0] + 63) & ~63) * pt->block.size;
+ /*XXX*/
+ pitch *= 2;
mt->buffer = ws->buffer_create(ws, 256, usage, pitch * pt->height[0]);
if (!mt->buffer) {