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 Name Job ID Coverage
  Container
passed arm_build #1176981
aarch64

00:00:22

passed arm_test #1176982
aarch64

00:00:22

passed lava_arm64 #1176975

00:00:28

passed lava_armhf #1176973

00:00:36

passed x86_build #1176976

00:00:21

passed x86_build_old #1176979

00:00:23

passed x86_test-gl #1176978

00:00:19

 
  Build
passed lava-build:arm64 #1176984

00:02:28

passed lava-build:armhf #1176983

00:03:54

passed meson-arm64 #1176988
aarch64

00:04:04

passed meson-armhf #1176987
aarch64

00:03:28

passed meson-clang #1176989

00:06:39

passed meson-clover #1176992

00:05:15

passed meson-clover-old-llvm #1176993

00:04:49

passed meson-i386 #1176995

00:03:57

passed meson-main #1176986

00:03:09

passed meson-mingw32-x86_64 #1176996

00:01:28

passed meson-testing #1176985

00:02:15

passed meson-vulkan #1176994

00:03:58

passed scons #1176997

00:03:07

passed scons-old-llvm #1176998

00:02:58

passed scons-swr #1176990

00:02:47

passed scons-win64 #1176991

00:02:33

 
  Test
passed arm64_a306_gles2 #1177016
db410c

00:05:01

passed arm64_a630_gles2 #1177013
mesa-cheza

00:01:35

passed arm64_a630_gles3 #1177015
mesa-cheza

00:06:14

passed arm64_a630_gles31 #1177014
mesa-cheza

00:04:00

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

00:11:32

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

00:05:38

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

00:13:11

passed piglit-glslparser #1177003

00:03:18

passed piglit-quick_gl #1177002

00:07:57

passed piglit-quick_shader #1177004

00:05:39

passed test-llvmpipe-gles2 #1177005

00:03:48

passed test-softpipe-gles2 #1177006

00:01:39

passed test-softpipe-gles31 1/4 #1177009

00:02:53

passed test-softpipe-gles3 1/2 #1177007

00:05:06

passed test-softpipe-gles31 2/4 #1177010

00:04:19

passed test-softpipe-gles31 3/4 #1177011

00:03:45

passed test-softpipe-gles31 4/4 #1177012

00:03:12

passed test-softpipe-gles3 2/2 #1177008

00:06:24