From: Rob Clark Date: Sun, 24 Aug 2014 17:06:37 +0000 (-0400) Subject: freedreno/a2xx: fix segfault X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=306e421887720b149be77c749108bcffcebe34f6;p=mesa.git freedreno/a2xx: fix segfault Signed-off-by: Rob Clark --- 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;