summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvc0/nvc0_context.c
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2012-09-26 23:06:40 +0200
committerChristoph Bumiller <[email protected]>2012-09-30 21:31:45 +0200
commit36ea744f58e5b436c45ed857bd92bbb472e641d5 (patch)
tree7761199ded45e851fe78039fd6cfa53bb76b8817 /src/gallium/drivers/nvc0/nvc0_context.c
parentde80660c2bd43db112b6c82d970660ed9806cd33 (diff)
nv50,nvc0: implement blit
Diffstat (limited to 'src/gallium/drivers/nvc0/nvc0_context.c')
-rw-r--r--src/gallium/drivers/nvc0/nvc0_context.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_context.c b/src/gallium/drivers/nvc0/nvc0_context.c
index b021f2e99dc..ee131d29bbf 100644
--- a/src/gallium/drivers/nvc0/nvc0_context.c
+++ b/src/gallium/drivers/nvc0/nvc0_context.c
@@ -129,6 +129,9 @@ nvc0_create(struct pipe_screen *pscreen, void *priv)
return NULL;
pipe = &nvc0->base.pipe;
+ if (!nvc0_blitctx_create(nvc0))
+ goto out_err;
+
nvc0->base.pushbuf = screen->base.pushbuf;
ret = nouveau_bufctx_new(screen->base.client, NVC0_BIND_COUNT,
@@ -199,6 +202,8 @@ out_err:
nouveau_bufctx_del(&nvc0->bufctx_3d);
if (nvc0->bufctx)
nouveau_bufctx_del(&nvc0->bufctx);
+ if (nvc0->blit)
+ FREE(nvc0->blit);
FREE(nvc0);
}
return NULL;