vrend: set timer_query caps when host supports it
Also increment host_feature_check_version in order to prevent breaking
older versions.
Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1006>
diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c
index 567455c..4b7ee36 100644
--- a/src/vrend_renderer.c
+++ b/src/vrend_renderer.c
@@ -11330,6 +11330,10 @@
caps->v1.max_viewports = 1;
}
+ if (has_feature(feat_timer_query)) {
+ caps->v1.bset.timer_query = 1;
+ }
+
/* Common limits for all backends. */
caps->v1.max_render_targets = vrend_state.max_draw_buffers;
@@ -11368,7 +11372,7 @@
* this value to avoid regressions when a guest with a new mesa version is
* run on an old virgl host. Use it also to indicate non-cap fixes on the
* host that help enable features in the guest. */
- caps->v2.host_feature_check_version = 14;
+ caps->v2.host_feature_check_version = 15;
/* Forward host GL_RENDERER to the guest. */
strncpy(caps->v2.renderer, renderer, sizeof(caps->v2.renderer) - 1);