freedreno: Fix assertion failures in context setup in shader-db mode.
authorEric Anholt <eric@anholt.net>
Mon, 13 May 2019 23:58:51 +0000 (16:58 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 16 May 2019 17:25:06 +0000 (10:25 -0700)
commita0d4d7febff56ec7f4a4396f7b893319958f97d3
tree4810079da4551a53656720d38f5876ff186dd950
parent9d1485554ca3dc112412946dfe2ee5272a619a40
freedreno: Fix assertion failures in context setup in shader-db mode.

The TTN path needs access to the screen to make the right decisions about
lowering, but we didn't have pctx->screen set up at fdN_prog_init time.

Reviewed-by: Rob Clark <robdclark@gmail.com>
Tested-by: Eduardo Lima Mitev <elima@igalia.com>
src/gallium/drivers/freedreno/a3xx/fd3_context.c
src/gallium/drivers/freedreno/a4xx/fd4_context.c
src/gallium/drivers/freedreno/a5xx/fd5_context.c
src/gallium/drivers/freedreno/a6xx/fd6_context.c