virgl: Assume sRGB write control for older guest kernels or virglrenderer hosts

When the host virglrenderer is an older version that doesn't check the sRGB write
control feature, or when the guest kernel doesn't support CAPS v2, then the guest
will only report support for GL 2.1 on a GL 3.3 host, even though it was supporting
3.3 with earlier guest mesa versions.

By also checking the host feature check version this regression can be avoided.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110921
Fixes: 2845939d
   virgl: Set sRGB write control CAP based on host capabilities

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
10 jobs for !1108 with virgl-fix-version-regression in 10 minutes and 37 seconds (queued for 2 seconds)
detached
Status Job ID Name Coverage
  Containers Build
passed #364895
debian

00:00:25

 
  Build+Test
passed #364897
meson-clang

00:10:11

passed #364901
meson-clover

00:07:54

passed #364900
meson-main

00:04:29

passed #364896
meson-swr-glvnd

00:08:08

passed #364902
meson-vulkan

00:00:57

passed #364904
scons-llvm

00:07:39

passed #364903
scons-nollvm

00:03:24

passed #364898
scons-swr

00:05:06

passed #364899
scons-win64

00:07:12