From 418c3d9a4f75ad1d075ab6d928c215cd2f25d34a Mon Sep 17 00:00:00 2001 From: Jonathan Marek Date: Wed, 10 Apr 2019 13:52:55 -0400 Subject: [PATCH] freedreno: a2xx: fix builtin blit program compilation tgsi_to_nir now requires a screen pointer and is used by fd2_prog_init. fd2_prog_init is used before fd_context_init so set the pointer manually. Signed-off-by: Jonathan Marek Reviewed-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 9353e37420f..702c4160412 100644 --- a/src/gallium/drivers/freedreno/a2xx/fd2_context.c +++ b/src/gallium/drivers/freedreno/a2xx/fd2_context.c @@ -97,6 +97,7 @@ fd2_context_create(struct pipe_screen *pscreen, void *priv, unsigned flags) return NULL; pctx = &fd2_ctx->base.base; + pctx->screen = pscreen; fd2_ctx->base.dev = fd_device_ref(screen->dev); fd2_ctx->base.screen = fd_screen(pscreen); -- 2.30.2