From: Ben Skeggs Date: Sun, 8 Jun 2008 02:27:36 +0000 (+1000) Subject: nv50: hehe, damage from tex-surfaces.. surface_fill() reenabled now :) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6ca31aa55eada38ad8b8a249b9e79a83b9784c04;p=mesa.git nv50: hehe, damage from tex-surfaces.. surface_fill() reenabled now :) --- diff --git a/src/gallium/drivers/nv50/nv50_miptree.c b/src/gallium/drivers/nv50/nv50_miptree.c index 6c838998fd0..be85c3fd5ce 100644 --- a/src/gallium/drivers/nv50/nv50_miptree.c +++ b/src/gallium/drivers/nv50/nv50_miptree.c @@ -21,7 +21,7 @@ nv50_miptree_create(struct pipe_screen *pscreen, const struct pipe_texture *pt) { struct pipe_winsys *ws = pscreen->winsys; struct nv50_miptree *mt = CALLOC_STRUCT(nv50_miptree); - + NOUVEAU_ERR("unimplemented\n"); mt->base = *pt; @@ -29,7 +29,7 @@ nv50_miptree_create(struct pipe_screen *pscreen, const struct pipe_texture *pt) mt->base.screen = pscreen; mt->buffer = ws->buffer_create(ws, 256, PIPE_BUFFER_USAGE_PIXEL, - 512*32*4); + pt->width[0] * pt->cpp * pt->height[0]); if (!mt->buffer) { FREE(mt); return NULL;