Commit d1323fd4 authored by Dave Airlie's avatar Dave Airlie

renderer: move ctx forcing into fence checking.

This is a precursor for some later changes
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 1c820951
......@@ -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();
}
......
......@@ -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){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment