nv50: hack surface alloc a bit for now
authorBen Skeggs <skeggsb@gmail.com>
Thu, 18 Sep 2008 03:15:55 +0000 (13:15 +1000)
committerBen Skeggs <skeggsb@gmail.com>
Thu, 18 Sep 2008 03:15:55 +0000 (13:15 +1000)
src/gallium/drivers/nv50/nv50_miptree.c

index b0e8fe2f0b724d63719e77715bf67a314349ba59..28a8bdc0fab06526d2f7369f8b08612cecd7ddc4 100644 (file)
@@ -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) {