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 Name Job ID Coverage
  Containers Build
passed debian #396442

00:02:30

 
  Build+Test
passed meson-clang #396444

00:10:48

passed meson-clover #396448

00:10:34

passed meson-main #396447

00:07:56

passed meson-swr-glvnd #396443

00:07:14

passed meson-vulkan #396449

00:03:31

passed scons-llvm #396451

00:05:39

passed scons-nollvm #396450

00:03:20

passed scons-swr #396445

00:07:30

passed scons-win64 #396446

00:07:03