freedreno/a2xx: fix segfault
authorRob Clark <robclark@freedesktop.org>
Sun, 24 Aug 2014 17:06:37 +0000 (13:06 -0400)
committerRob Clark <robclark@freedesktop.org>
Sun, 24 Aug 2014 17:09:47 +0000 (13:09 -0400)
Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/a2xx/fd2_context.c

index f51c5eead4f5240917348edb44dfeba0efd46960..a0bf01ffd1f1f6ef4e9a808d5278254272ce0eb5 100644 (file)
@@ -98,6 +98,7 @@ fd2_context_create(struct pipe_screen *pscreen, void *priv)
        pctx = &fd2_ctx->base.base;
 
        fd2_ctx->base.dev = fd_device_ref(screen->dev);
+       fd2_ctx->base.screen = fd_screen(pscreen);
 
        pctx->destroy = fd2_context_destroy;
        pctx->create_blend_state = fd2_blend_state_create;