anv: Remove redundant #if checks

Patch removes redundant #if checks and unused code inside another #if
block.

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <!9604>
35 jobs for !9604 with remove-ifdef in 4 minutes and 34 seconds (queued for 3 seconds)
latest detached
Status Job ID Name Coverage
  Sanity
passed #8004650
sanity

00:00:14

 
  Container
passed #8004655
aarch64
arm_build

00:00:17

passed #8004657
arm_test-base

00:00:15

passed #8004659
windows shell 1809 mesa
windows_build_vs2019

00:00:08

passed #8004652
x86_build-base

00:00:16

passed #8004653
x86_test-base

00:00:14

 
  Container 2
passed #8004675
android_build

00:00:21

passed #8004680
arm64_test

00:00:18

passed #8004681
armhf_test

00:00:18

passed #8004670
i386_build

00:00:18

passed #8004662
kernel+rootfs_amd64

00:00:22

passed #8004664
aarch64
kernel+rootfs_arm64

00:01:10

passed #8004666
aarch64
kernel+rootfs_armhf

00:00:11

passed #8004672
ppc64el_build

00:00:20

passed #8004673
s390x_build

00:00:18

passed #8004668
x86_build

00:00:18

passed #8004676
x86_test-gl

00:00:20

passed #8004678
x86_test-vk

00:00:18

 
  Meson X86 64
passed #8004692
meson-clang

00:02:36

passed #8004694
meson-clover

00:03:41

passed #8004687
meson-clover-testing

00:01:25

passed #8004688
gstreamer
meson-gallium

00:02:04

passed #8004690
meson-release

00:02:17

passed #8004683
meson-testing

00:02:25

passed #8004685
meson-testing-asan

00:03:01

passed #8004695
meson-vulkan

00:01:23

 
  Build Misc
passed #8004697
meson-android

00:02:16

passed #8004701
aarch64
meson-arm64

00:01:26

passed #8004703
aarch64
meson-arm64-asan

00:02:56

passed #8004705
aarch64
meson-arm64-build-test

00:01:29

passed #8004699
aarch64
meson-armhf

00:01:42

passed #8004707
meson-i386

00:02:19

passed #8004713
meson-mingw32-x86_64

00:01:48

passed #8004711
kvm
meson-ppc64el

00:02:18

passed #8004709
kvm
meson-s390x

00:02:23