Lines Matching refs:blit_context
54 static struct loader_dri3_blit_context blit_context = { variable
91 mtx_lock(&blit_context.mtx); in loader_dri3_blit_context_get()
93 if (blit_context.ctx && blit_context.cur_screen != draw->dri_screen) { in loader_dri3_blit_context_get()
94 blit_context.core->destroyContext(blit_context.ctx); in loader_dri3_blit_context_get()
95 blit_context.ctx = NULL; in loader_dri3_blit_context_get()
98 if (!blit_context.ctx) { in loader_dri3_blit_context_get()
99 blit_context.ctx = draw->ext->core->createNewContext(draw->dri_screen, in loader_dri3_blit_context_get()
101 blit_context.cur_screen = draw->dri_screen; in loader_dri3_blit_context_get()
102 blit_context.core = draw->ext->core; in loader_dri3_blit_context_get()
105 return blit_context.ctx; in loader_dri3_blit_context_get()
115 mtx_unlock(&blit_context.mtx); in loader_dri3_blit_context_put()
1679 mtx_lock(&blit_context.mtx); in loader_dri3_close_screen()
1680 if (blit_context.ctx && blit_context.cur_screen == dri_screen) { in loader_dri3_close_screen()
1681 blit_context.core->destroyContext(blit_context.ctx); in loader_dri3_close_screen()
1682 blit_context.ctx = NULL; in loader_dri3_close_screen()
1684 mtx_unlock(&blit_context.mtx); in loader_dri3_close_screen()