virglrenderer: fix shmem resource leak and refactor meson and vtest options for render server
This MR fixes a leak caught with venus render server on qemu. The leak also affects CI bots which run without sandbox (The leak doesn't affect production with enabled sandbox).
The rest of the MR refactors the meson options for venus as well as vtest options. Venus render server config has just been enforced, and running vtest for Venus now requires the additional server option which is quite redundant.
Without breaking existing build systems, now we can build venus with either of below:
- -Dvenus-experimental=true
- -Dvenus-experimental=true -Drender-server=true
- -Dvenus-experimental=true -Drender-server=true -Drender-server-worker=thread
/cc @gerddie
Edited by Yiwei Zhang