v3dv/debug: use gl stage when checking debug flag

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <!10229>
51 jobs for master
Status Name Job ID Coverage
  Container
manual arm_build #8905466
aarch64 manual
manual windows_build_vs2019 #8905467
windows shell 1809 mesa manual
manual x86_build-base #8905464
manual
manual x86_test-base #8905465
manual
 
  Container 2
created android_build #8905475
created i386_build #8905472
created kernel+rootfs_amd64 #8905468
created kernel+rootfs_arm64 #8905469
aarch64
created kernel+rootfs_arm64-baremetal #8905478
aarch64
created kernel+rootfs_armhf #8905470
aarch64
created kernel+rootfs_armhf-baremetal #8905479
aarch64
created ppc64el_build #8905473
created s390x_build #8905474
created x86_build #8905471
created x86_test-gl #8905476
created x86_test-vk #8905477
 
  Meson X86 64
created meson-clang #8905485
created meson-clover #8905486
created meson-clover-testing #8905482
created meson-gallium #8905483
created meson-release #8905484
created meson-testing #8905480
created meson-testing-asan #8905481
created meson-vulkan #8905487
 
  Build Misc
created arm_test #8905488
created meson-android #8905489
created meson-arm64 #8905491
aarch64
created meson-arm64-asan #8905492
aarch64
created meson-arm64-build-test #8905493
aarch64
created meson-armhf #8905490
aarch64
created meson-i386 #8905494
created meson-mingw32-x86_64 #8905497
created meson-ppc64el #8905496
created meson-s390x #8905495
kvm
 
  Broadcom
created v3d-rpi4-gles2:armhf #8905508
igalia-rpi4
created v3d-rpi4-gles31:armhf 1/2 #8905502
igalia-rpi4
created v3d-rpi4-gles31:armhf 2/2 #8905503
igalia-rpi4
created v3d-rpi4-gles3:armhf 1/4 #8905504
igalia-rpi4
created v3d-rpi4-gles3:armhf 2/4 #8905505
igalia-rpi4
created v3d-rpi4-gles3:armhf 3/4 #8905506
igalia-rpi4
created v3d-rpi4-gles3:armhf 4/4 #8905507
igalia-rpi4
created v3dv-rpi4-vk:armhf 1/6 #8905509
igalia-rpi4
created v3dv-rpi4-vk:armhf 2/6 #8905510
igalia-rpi4
created v3dv-rpi4-vk:armhf 3/6 #8905511
igalia-rpi4
created v3dv-rpi4-vk:armhf 4/6 #8905512
igalia-rpi4
created v3dv-rpi4-vk:armhf 5/6 #8905513
igalia-rpi4
created v3dv-rpi4-vk:armhf 6/6 #8905514
igalia-rpi4
created vc4-rpi3-gles2:armhf 1/4 #8905498
igalia-rpi3
created vc4-rpi3-gles2:armhf 2/4 #8905499
igalia-rpi3
created vc4-rpi3-gles2:armhf 3/4 #8905500
igalia-rpi3
created vc4-rpi3-gles2:armhf 4/4 #8905501
igalia-rpi3