intel/anv: Add missing NULL pointer check

Fixes: 22631611 ("intel/anv: Fix condition to set MipModeFilter for YUV surface")
Closes: #4324
34 jobs for !9114 with review/issue-4324 in 8 seconds (queued for 2 seconds)
latest detached
Status Job ID Name Coverage
  Sanity
passed #7393044
sanity

00:00:08

 
  Container
manual #7393047
aarch64 manual
arm_build
manual #7393048
manual
arm_test-base
manual #7393049
windows shell 1809 mesa manual
windows_build_vs2019
manual #7393045
manual
x86_build-base
manual #7393046
manual
x86_test-base
 
  Container 2
created #7393057
android_build
created #7393060
arm64_test
created #7393061
armhf_test
created #7393054
i386_build
created #7393050
kernel+rootfs_amd64
created #7393051
aarch64
kernel+rootfs_arm64
created #7393052
aarch64
kernel+rootfs_armhf
created #7393055
ppc64el_build
created #7393056
s390x_build
created #7393053
x86_build
created #7393058
x86_test-gl
created #7393059
x86_test-vk
 
  Meson X86 64
created #7393067
meson-clang
created #7393068
meson-clover
created #7393064
meson-clover-testing
created #7393065
gstreamer
meson-gallium
created #7393066
meson-release
created #7393062
meson-testing
created #7393063
meson-testing-asan
created #7393069
meson-vulkan
 
  Build Misc
created #7393070
meson-android
created #7393072
aarch64
meson-arm64
created #7393073
aarch64
meson-arm64-build-test
created #7393071
aarch64
meson-armhf
created #7393074
meson-i386
created #7393077
meson-mingw32-x86_64
created #7393076
kvm
meson-ppc64el
created #7393075
kvm
meson-s390x