From 306e421887720b149be77c749108bcffcebe34f6 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Sun, 24 Aug 2014 13:06:37 -0400 Subject: [PATCH] freedreno/a2xx: fix segfault Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/a2xx/fd2_context.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/freedreno/a2xx/fd2_context.c b/src/gallium/drivers/freedreno/a2xx/fd2_context.c index f51c5eead4f..a0bf01ffd1f 100644 --- a/src/gallium/drivers/freedreno/a2xx/fd2_context.c +++ b/src/gallium/drivers/freedreno/a2xx/fd2_context.c @@ -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; -- 2.30.2