virgl: check if it's valid hw_res before emission.

Signed-off-by: zhangtao.ste <zhangtao.ste@bytedance.com>
Change-Id: If76cbd76294b682d8c4a2244496447097610cac9
53 jobs for !11638 with dev_1 in 9 seconds (queued for 20 seconds)
latest detached
Status Name Job ID Coverage
  Sanity
passed sanity #11376390

00:00:09

 
  Container
manual arm_build #11376393
aarch64 manual
manual windows_build_vs2019 #11376394
windows shell 1809 mesa manual
manual x86_build-base #11376391
manual
manual x86_test-base #11376392
manual
 
  Container 2
created android_build #11376399
created i386_build #11376396
created kernel+rootfs_amd64 #11376402
created kernel+rootfs_arm64 #11376403
aarch64
created kernel+rootfs_armhf #11376404
aarch64
created ppc64el_build #11376397
created s390x_build #11376398
created x86_build #11376395
created x86_test-gl #11376400
created x86_test-vk #11376401
 
  Meson X86 64
created meson-clang #11376410
created meson-clover #11376411
created meson-clover-testing #11376407
created meson-gallium #11376408
created meson-release #11376409
created meson-testing #11376405
created meson-testing-asan #11376406
created meson-vulkan #11376412
 
  Build Misc
created arm_test #11376413
created meson-android #11376414
created meson-arm64 #11376416
aarch64
created meson-arm64-asan #11376417
aarch64
created meson-arm64-build-test #11376418
aarch64
created meson-armhf #11376415
aarch64
created meson-i386 #11376419
created meson-mingw32-x86_64 #11376421
created meson-ppc64el #11376420
 
  Intel
created i915-g33-deqp #11376422
anholt-g33 manual
created i915-g33-khr-deqp #11376423
anholt-g33 manual
created i915-g33-piglit #11376424
anholt-g33 manual
created i915-g33-traces #11376425
anholt-g33 manual
created iris-apl-gl #11376426
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral manual
created iris-glk-egl #11376431
mesa-ci-x86-64-lava-hp-x360-12b-n4000-octopus manual
created iris-glk-gl #11376430
mesa-ci-x86-64-lava-hp-x360-12b-n4000-octopus manual
created iris-glk-gles2 #11376427
mesa-ci-x86-64-lava-hp-x360-12b-n4000-octopus manual
created iris-glk-gles3 #11376428
mesa-ci-x86-64-lava-hp-x360-12b-n4000-octopus manual
created iris-glk-gles31 #11376429
mesa-ci-x86-64-lava-hp-x360-12b-n4000-octopus manual
created iris-glk-traces #11376432
mesa-ci-x86-64-lava-hp-x360-12b-n4000-octopus manual
created iris-kbl-traces #11376433
mesa-ci-x86-64-lava-hp-x360-14-G1-sona manual
 
  Freedreno
created a530_piglit_gl #11376434
google-freedreno-db820c manual
 
  Layered Backends
created virgl-gl30-on-gl #11376439
created virgl-gl31-on-gl #11376440
created virgl-gl32-on-gl #11376441
created virgl-gles2-on-gl #11376435
created virgl-gles31-on-gl 1/2 #11376437
created virgl-gles31-on-gl 2/2 #11376438
created virgl-gles3-on-gl #11376436
created virgl-traces #11376442
kvm