summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv30/nv30_context.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-09-13 00:36:06 +0200
committerMarek Olšák <[email protected]>2012-09-30 18:57:56 +0200
commitced065a0797d9504950b7763cd90244ca478a723 (patch)
treed3fc20a3c1e2dd2dcd791655f4f01fa66dfc29f4 /src/gallium/drivers/nv30/nv30_context.c
parentdb85443922e93191b9056799ed649ab6f7d8f758 (diff)
nv30: implement blit
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nv30/nv30_context.c')
-rw-r--r--src/gallium/drivers/nv30/nv30_context.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv30/nv30_context.c b/src/gallium/drivers/nv30/nv30_context.c
index 42e844f141e..31519de7a24 100644
--- a/src/gallium/drivers/nv30/nv30_context.c
+++ b/src/gallium/drivers/nv30/nv30_context.c
@@ -84,6 +84,9 @@ nv30_context_destroy(struct pipe_context *pipe)
{
struct nv30_context *nv30 = nv30_context(pipe);
+ if (nv30->blitter)
+ util_blitter_destroy(nv30->blitter);
+
if (nv30->draw)
draw_destroy(nv30->draw);
@@ -171,5 +174,11 @@ nv30_context_create(struct pipe_screen *pscreen, void *priv)
nv40_verttex_init(pipe);
nv30_draw_init(pipe);
+ nv30->blitter = util_blitter_create(pipe);
+ if (!nv30->blitter) {
+ nv30_context_destroy(pipe);
+ return NULL;
+ }
+
return pipe;
}