From 38658c6d4dda1df12690c1f4c01b993862d6fe68 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 8 Jan 2019 16:50:28 +1000 Subject: [PATCH] virgl: enable elapsed time queries GL underneath always has GL_TIME_ELAPSED so always enable these. Reviewed-by: Gurchetan Singh --- src/gallium/drivers/virgl/virgl_screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/virgl/virgl_screen.c b/src/gallium/drivers/virgl/virgl_screen.c index 42e0987e0c9..9a8d0e64848 100644 --- a/src/gallium/drivers/virgl/virgl_screen.c +++ b/src/gallium/drivers/virgl/virgl_screen.c @@ -172,7 +172,7 @@ virgl_get_param(struct pipe_screen *screen, enum pipe_cap param) case PIPE_CAP_QUERY_TIMESTAMP: return 1; case PIPE_CAP_QUERY_TIME_ELAPSED: - return 0; + return 1; case PIPE_CAP_TGSI_TEXCOORD: return 0; case PIPE_CAP_MIN_MAP_BUFFER_ALIGNMENT: -- 2.30.2