diff options
author | Christoph Bumiller <[email protected]> | 2011-09-14 18:30:37 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2011-09-14 18:30:53 +0200 |
commit | 7744e867b7f45f3f9d763b61d7219dc28ca39c45 (patch) | |
tree | c465b6423fd6b54f268b00146383f989e10a106e /src/gallium/drivers/nvc0/nvc0_screen.c | |
parent | 9cae933f4abcad46d8a965b34aa79801663e0818 (diff) |
nvc0: implement resource_resolve
Diffstat (limited to 'src/gallium/drivers/nvc0/nvc0_screen.c')
-rw-r--r-- | src/gallium/drivers/nvc0/nvc0_screen.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_screen.c b/src/gallium/drivers/nvc0/nvc0_screen.c index c785ceb649c..64e4ec7c1db 100644 --- a/src/gallium/drivers/nvc0/nvc0_screen.c +++ b/src/gallium/drivers/nvc0/nvc0_screen.c @@ -223,6 +223,9 @@ nvc0_screen_destroy(struct pipe_screen *pscreen) } screen->base.channel->user_private = NULL; + if (screen->blitctx) + FREE(screen->blitctx); + nouveau_bo_ref(NULL, &screen->text); nouveau_bo_ref(NULL, &screen->tls); nouveau_bo_ref(NULL, &screen->txc); @@ -633,6 +636,9 @@ nvc0_screen_create(struct pipe_winsys *ws, struct nouveau_device *dev) screen->mm_VRAM_fe0 = nouveau_mm_create(dev, NOUVEAU_BO_VRAM, 0xfe0); + if (!nvc0_blitctx_create(screen)) + goto fail; + nouveau_fence_new(&screen->base, &screen->base.fence.current, FALSE); return pscreen; |