diff options
author | Jonathan Marek <[email protected]> | 2019-04-10 13:52:55 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2019-04-23 17:13:32 +0000 |
commit | 418c3d9a4f75ad1d075ab6d928c215cd2f25d34a (patch) | |
tree | 84e84153382c534922730abe89302cd5e0de0b21 /src/gallium/drivers/freedreno/a2xx | |
parent | 33cafb41a241bf899b99192a6416a644be052863 (diff) |
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 <[email protected]>
Reviewed-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/a2xx')
-rw-r--r-- | src/gallium/drivers/freedreno/a2xx/fd2_context.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |