virgl: check allocation return for virgl_resource

Add memory allocation check for virgl_resource, return NULL if failed.

Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
10 jobs for !1234 with virgl in 25 minutes and 22 seconds (queued for 1 minute and 23 seconds)
latest detached
Status Job ID Name Coverage
  Containers Build
passed #396442
debian

00:02:30

 
  Build+Test
passed #396444
meson-clang

00:10:48

passed #396448
meson-clover

00:10:34

passed #396447
meson-main

00:07:56

passed #396443
meson-swr-glvnd

00:07:14

passed #396449
meson-vulkan

00:03:31

passed #396451
scons-llvm

00:05:39

passed #396450
scons-nollvm

00:03:20

passed #396445
scons-swr

00:07:30

passed #396446
scons-win64

00:07:03