From: Ben Skeggs Date: Thu, 18 Sep 2008 03:15:55 +0000 (+1000) Subject: nv50: hack surface alloc a bit for now X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=562b31195cc8140d3bd0ad7ed8532200e9df520a;p=mesa.git nv50: hack surface alloc a bit for now --- diff --git a/src/gallium/drivers/nv50/nv50_miptree.c b/src/gallium/drivers/nv50/nv50_miptree.c index b0e8fe2f0b7..28a8bdc0fab 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) {