From d1323fd44b2998a6af53610b0bfda17595de689d Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 18 Jan 2016 13:45:08 +1000 Subject: [PATCH] renderer: move ctx forcing into fence checking. This is a precursor for some later changes Signed-off-by: Dave Airlie --- src/virglrenderer.c | 1 - src/vrend_renderer.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/virglrenderer.c b/src/virglrenderer.c index ae02939..d75fdc8 100644 --- a/src/virglrenderer.c +++ b/src/virglrenderer.c @@ -233,7 +233,6 @@ void *virgl_renderer_get_cursor_data(uint32_t resource_id, uint32_t *width, uint void virgl_renderer_poll(void) { - virgl_renderer_force_ctx_0(); vrend_renderer_check_queries(); vrend_renderer_check_fences(); } diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index 0a95f18..549b379 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -5271,6 +5271,7 @@ void vrend_renderer_check_fences(void) if (!vrend_state.inited) return; + vrend_renderer_force_ctx_0(); LIST_FOR_EACH_ENTRY_SAFE(fence, stor, &vrend_state.fence_list, fences) { glret = glClientWaitSync(fence->syncobj, 0, 0); if (glret == GL_ALREADY_SIGNALED){