r600g: set pipe_context::priv = NULL
authorMarek Olšák <marek.olsak@amd.com>
Wed, 7 Jun 2017 12:43:28 +0000 (14:43 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 12 Jun 2017 16:24:37 +0000 (18:24 +0200)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101254

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/r600/r600_pipe.c

index 957431a514131e1c964765907017049388c174ef..d4fdccbd78d5277061dd62827d257a00f1651814 100644 (file)
@@ -130,7 +130,8 @@ static struct pipe_context *r600_create_context(struct pipe_screen *screen,
                return NULL;
 
        rctx->b.b.screen = screen;
-       rctx->b.b.priv = priv;
+       assert(!priv);
+       rctx->b.b.priv = NULL; /* for threaded_context_unwrap_sync */
        rctx->b.b.destroy = r600_destroy_context;
        rctx->b.set_atom_dirty = (void *)r600_set_atom_dirty;