freedreno: a2xx: fix builtin blit program compilation
authorJonathan Marek <jonathan@marek.ca>
Wed, 10 Apr 2019 17:52:55 +0000 (13:52 -0400)
committerRob Clark <robdclark@gmail.com>
Tue, 23 Apr 2019 17:13:32 +0000 (17:13 +0000)
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 <jonathan@marek.ca>
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a2xx/fd2_context.c

index 9353e37420f0052c679db2be933b10e94ee71824..702c4160412268b0492b282c794c28e99ed70ae0 100644 (file)
@@ -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);