diff options
author | Christoph Bumiller <[email protected]> | 2012-09-26 23:06:40 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2012-09-30 21:31:45 +0200 |
commit | 36ea744f58e5b436c45ed857bd92bbb472e641d5 (patch) | |
tree | 7761199ded45e851fe78039fd6cfa53bb76b8817 /src/gallium/drivers/nvc0/nvc0_screen.c | |
parent | de80660c2bd43db112b6c82d970660ed9806cd33 (diff) |
nv50,nvc0: implement blit
Diffstat (limited to 'src/gallium/drivers/nvc0/nvc0_screen.c')
-rw-r--r-- | src/gallium/drivers/nvc0/nvc0_screen.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_screen.c b/src/gallium/drivers/nvc0/nvc0_screen.c index e26313548e3..99bd4e731b2 100644 --- a/src/gallium/drivers/nvc0/nvc0_screen.c +++ b/src/gallium/drivers/nvc0/nvc0_screen.c @@ -257,7 +257,8 @@ nvc0_screen_destroy(struct pipe_screen *pscreen) if (screen->base.pushbuf) screen->base.pushbuf->user_priv = NULL; - FREE(screen->blitctx); + if (screen->blitter) + nvc0_blitter_destroy(screen); nouveau_bo_ref(NULL, &screen->text); nouveau_bo_ref(NULL, &screen->uniform_bo); @@ -746,7 +747,7 @@ nvc0_screen_create(struct nouveau_device *dev) mm_config.nvc0.memtype = 0xfe0; screen->mm_VRAM_fe0 = nouveau_mm_create(dev, NOUVEAU_BO_VRAM, &mm_config); - if (!nvc0_blitctx_create(screen)) + if (!nvc0_blitter_create(screen)) goto fail; nouveau_fence_new(&screen->base, &screen->base.fence.current, FALSE); |