renderer: move ctx forcing into fence checking.

This is a precursor for some later changes

Signed-off-by: Dave Airlie <airlied@redhat.com>
macos/master
Dave Airlie 9 years ago
parent 1c820951dc
commit d1323fd44b
  1. 1
      src/virglrenderer.c
  2. 1
      src/vrend_renderer.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();
}

@ -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){

Loading…
Cancel
Save