Mesa (master): freedreno: a2xx: fix builtin blit program compilation

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Apr 23 17:13:51 UTC 2019


Module: Mesa
Branch: master
Commit: 418c3d9a4f75ad1d075ab6d928c215cd2f25d34a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=418c3d9a4f75ad1d075ab6d928c215cd2f25d34a

Author: Jonathan Marek <jonathan at marek.ca>
Date:   Wed Apr 10 13:52:55 2019 -0400

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 <jonathan at marek.ca>
Reviewed-by: Rob Clark <robdclark at gmail.com>

---

 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);




More information about the mesa-commit mailing list