Lines Matching refs:Context
102 std::map<uint32_t, Context*> Context::map;
124 static Context* g_last_submit_cmd_ctx;
159 Context const* ctx = it.second; in dump_global_state()
166 for (auto const& it : Context::map) { in dump_global_state()
167 Context const* ctx = it.second; in dump_global_state()
498 static void process_cmd(Context* ctx, char* buf, size_t bufSize, int fence) { in process_cmd()
572 std::map<uint32_t, Context*>::iterator it; in virgl_renderer_submit_cmd()
573 it = Context::map.find((uint32_t)ctx_id); in virgl_renderer_submit_cmd()
574 if (it == Context::map.end()) { in virgl_renderer_submit_cmd()
579 Context* ctx = it->second; in virgl_renderer_submit_cmd()
852 for (auto const& it : Context::map) { in virgl_renderer_resource_unref()
853 Context const* ctx = it.second; in virgl_renderer_resource_unref()
1000 assert(!Context::map.count(handle) && "Can't insert same context twice!"); in virgl_renderer_context_create()
1002 Context* ctx = new (std::nothrow) Context(handle, name, nlen, process_cmd, g_dpy); in virgl_renderer_context_create()
1011 std::map<uint32_t, Context*>::iterator it; in virgl_renderer_context_destroy()
1012 it = Context::map.find(handle); in virgl_renderer_context_destroy()
1013 if (it == Context::map.end()) in virgl_renderer_context_destroy()
1016 Context* ctx = it->second; in virgl_renderer_context_destroy()
1050 std::map<uint32_t, Context*>::iterator ctx_it; in virgl_renderer_ctx_attach_resource()
1052 ctx_it = Context::map.find((uint32_t)ctx_id); in virgl_renderer_ctx_attach_resource()
1053 if (ctx_it == Context::map.end()) in virgl_renderer_ctx_attach_resource()
1056 Context* ctx = ctx_it->second; in virgl_renderer_ctx_attach_resource()
1075 std::map<uint32_t, Context*>::iterator ctx_it; in virgl_renderer_ctx_detach_resource()
1077 ctx_it = Context::map.find((uint32_t)ctx_id); in virgl_renderer_ctx_detach_resource()
1078 if (ctx_it == Context::map.end()) in virgl_renderer_ctx_detach_resource()
1081 Context* ctx = ctx_it->second; in virgl_renderer_ctx_detach_resource()