panfrost: Don't access members of NULL pointers

We anyway checked later, but this causes tools to emit warnings and
obscure more important issues.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
41 jobs for !3078 with ubsan-fixes-v2 in 16 minutes and 21 seconds (queued for 10 seconds)
latest detached
Status Job ID Name Coverage
  Container
passed #1176981
aarch64
arm_build

00:00:22

passed #1176982
aarch64
arm_test

00:00:22

passed #1176975
lava_arm64

00:00:28

passed #1176973
lava_armhf

00:00:36

passed #1176976
x86_build

00:00:21

passed #1176979
x86_build_old

00:00:23

passed #1176978
x86_test-gl

00:00:19

 
  Build
passed #1176984
lava-build:arm64

00:02:28

passed #1176983
lava-build:armhf

00:03:54

passed #1176988
aarch64
meson-arm64

00:04:04

passed #1176987
aarch64
meson-armhf

00:03:28

passed #1176989
meson-clang

00:06:39

passed #1176992
meson-clover

00:05:15

passed #1176993
meson-clover-old-llvm

00:04:49

passed #1176995
meson-i386

00:03:57

passed #1176986
meson-main

00:03:09

passed #1176996
meson-mingw32-x86_64

00:01:28

passed #1176985
meson-testing

00:02:15

passed #1176994
meson-vulkan

00:03:58

passed #1176997
scons

00:03:07

passed #1176998
scons-old-llvm

00:02:58

passed #1176990
scons-swr

00:02:47

passed #1176991
scons-win64

00:02:33

 
  Test
passed #1177016
db410c
arm64_a306_gles2

00:05:01

passed #1177013
mesa-cheza
arm64_a630_gles2

00:01:35

passed #1177015
mesa-cheza
arm64_a630_gles3

00:06:14

passed #1177014
mesa-cheza
arm64_a630_gles31

00:04:00

passed #1176999
lava-sun50i-h6-pine-h64
panfrost-t720-test:arm64

00:11:32

passed #1177000
lava-rk3288-veyron-jaq
panfrost-t760-test:armhf

00:05:38

passed #1177001
lava-rk3399-gru-kevin
panfrost-t860-test:arm64

00:13:11

passed #1177003
piglit-glslparser

00:03:18

passed #1177002
piglit-quick_gl

00:07:57

passed #1177004
piglit-quick_shader

00:05:39

passed #1177005
test-llvmpipe-gles2

00:03:48

passed #1177006
test-softpipe-gles2

00:01:39

passed #1177009
test-softpipe-gles31 1/4

00:02:53

passed #1177007
test-softpipe-gles3 1/2

00:05:06

passed #1177010
test-softpipe-gles31 2/4

00:04:19

passed #1177011
test-softpipe-gles31 3/4

00:03:45

passed #1177012
test-softpipe-gles31 4/4

00:03:12

passed #1177008
test-softpipe-gles3 2/2

00:06:24