freedreno: Fix assertion failures in context setup in shader-db mode.

Cherry-picks a0d4d7fe upstream

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>
Signed-off-by: John Stultz <john.stultz@linaro.org>
11 jobs for !1311 with 19.1-db410c-crash-fix in 11 minutes and 38 seconds (queued for 1 minute and 24 seconds)
latest detached
Status Job ID Name Coverage
  Containers Build
passed #412277
debian

00:00:17

 
  Build+Test
passed #412279
meson-clang

00:07:59

passed #412282
meson-clover-llvm

00:02:35

passed #412283
meson-clover-llvm39

00:04:03

passed #412281
meson-main

00:04:29

passed #412278
meson-swr-glvnd

00:06:16

passed #412280
meson-vulkan

00:01:33

passed #412285
scons-llvm

00:03:04

passed #412284
scons-nollvm

00:03:15

passed #412286
scons-swr

00:04:39

passed #412287
scons-win64

00:06:05