Lines Matching refs:vrend_state

357 static struct global_renderer_state vrend_state;  variable
363 vrend_state.features[feature_id]); in has_feature()
364 return vrend_state.features[feature_id]; in has_feature()
369 vrend_state.features[feature_id] = true; in set_feature()
834 if (vrend_state.use_gles || !vrend_state.use_core_profile) in vrend_format_is_emulated_alpha()
1172 if (vrend_state.use_gles && (bind & VIRGL_BIND_PREFER_EMULATED_BGRA)) { in vrend_format_replace_emulated()
1173 …VREND_DEBUG(dbg_tweak, vrend_state.current_ctx, "Check tweak for format %s", util_format_name(form… in vrend_format_replace_emulated()
1174 if (!vrend_state.bgra_srgb_emulation_loaded) { in vrend_format_replace_emulated()
1178 VREND_DEBUG_NOCTX(dbg_tweak, vrend_state.current_ctx, " ... add swizzled formats\n"); in vrend_format_replace_emulated()
1181 vrend_state.bgra_srgb_emulation_loaded = true; in vrend_format_replace_emulated()
1188 VREND_DEBUG_NOCTX(dbg_tweak, vrend_state.current_ctx, in vrend_format_replace_emulated()
1246 if (vrend_state.use_core_profile) { in vrend_alpha_test_enable()
1882 if (vrend_state.use_gles) { in vrend_create_surface()
1978 …case PIPE_TEX_WRAP_CLAMP: if (vrend_state.use_core_profile == false) return GL_CLAMP; else return … in convert_wrap()
2054 if (vrend_state.use_gles) { in vrend_create_sampler_state()
2060 if (vrend_state.use_gles) { in vrend_create_sampler_state()
2139 if (vrend_state.use_gles) { in vrend_create_sampler_view()
2236 if (vrend_state.use_core_profile == false) { in vrend_create_sampler_view()
2255 if (vrend_state.use_gles) { in vrend_create_sampler_view()
2348 else if (vrend_state.use_gles) in vrend_fb_bind_texture_id()
2472 if (vrend_state.use_gles && in vrend_hw_emit_framebuffer_state()
2671 if (vrend_state.use_integer && in update_int_sign_masks()
2984 if (vrend_state.use_core_profile == false) { in vrend_set_single_sampler_view()
3013 if (vrend_state.use_gles) { in vrend_set_single_sampler_view()
3244 if (vrend_state.use_core_profile == true) { in vrend_fill_shader_key()
3249 if (vrend_state.use_integer && sub_ctx->drawing) { in vrend_fill_shader_key()
3281 …if (type == PIPE_SHADER_FRAGMENT && vrend_state.use_gles && can_emulate_logicop(sub_ctx->blend_sta… in vrend_fill_shader_key()
3376 if (!vrend_state.use_gles) in vrend_fill_shader_key()
3788 if (vrend_state.use_gles) { in vrend_clear()
3902 if (vrend_state.use_gles) { in vrend_clear_texture()
3957 if (vrend_state.use_gles) { in vrend_update_viewport_state()
3962 if (vrend_state.use_gles) in vrend_update_viewport_state()
4050 if (vrend_state.use_explicit_locations || has_feature(feat_gles31_vertex_attrib_binding)) { in vrend_draw_bind_vertex_legacy()
4321 if (!vrend_state.use_gles) in vrend_draw_bind_ssbo_shader()
4398 if (!vrend_state.use_gles) in vrend_draw_bind_images_shader()
4434 if (vrend_state.use_core_profile && sub_ctx->prog->fs_stipple_loc != -1) { in vrend_draw_bind_objects()
4440 if (vrend_state.use_core_profile && sub_ctx->prog->fs_alpha_ref_val_loc != -1) { in vrend_draw_bind_objects()
4463 &shader->key, vrend_state.tess_factors, &sel->sinfo, in vrend_inject_tcs()
4505 else if (vrend_state.use_gles && shaders[PIPE_SHADER_TESS_EVAL]) { in vrend_select_program()
4708 if (vrend_state.use_gles) { in vrend_draw_vbo()
4817 if (vrend_state.use_gles) { in vrend_draw_vbo()
5055 if (vrend_state.use_gles) { in vrend_hw_emit_blend()
5138 if (!vrend_state.use_gles) { in vrend_hw_emit_blend()
5255 if (!vrend_state.use_core_profile) in vrend_hw_emit_dsa()
5371 if (vrend_state.use_gles) { in vrend_hw_emit_rs()
5398 if (vrend_state.use_gles == true) { in vrend_hw_emit_rs()
5405 } else if (vrend_state.use_core_profile == false) { in vrend_hw_emit_rs()
5419 if (vrend_state.use_gles) { in vrend_hw_emit_rs()
5429 if (vrend_state.use_gles) { in vrend_hw_emit_rs()
5442 if (vrend_state.use_core_profile == false) { in vrend_hw_emit_rs()
5464 if (vrend_state.use_gles) { in vrend_hw_emit_rs()
5475 if (!vrend_state.use_gles && has_feature(feat_polygon_offset_clamp)) in vrend_hw_emit_rs()
5480 if (vrend_state.use_core_profile == false) { in vrend_hw_emit_rs()
5491 if (vrend_state.use_core_profile == false && in vrend_hw_emit_rs()
5492 vrend_state.use_gles == false) { in vrend_hw_emit_rs()
5496 if (vrend_state.use_gles == false) { in vrend_hw_emit_rs()
5500 if (vrend_state.use_core_profile == false && in vrend_hw_emit_rs()
5501 vrend_state.use_gles == false) { in vrend_hw_emit_rs()
5525 if (vrend_state.use_core_profile == false) { in vrend_hw_emit_rs()
5541 if (vrend_state.use_core_profile == false) { in vrend_hw_emit_rs()
5548 if (vrend_state.use_gles) in vrend_hw_emit_rs()
5555 if (vrend_state.use_gles) { in vrend_hw_emit_rs()
5565 if (vrend_state.use_gles) { in vrend_hw_emit_rs()
5575 if (vrend_state.use_core_profile == false) { in vrend_hw_emit_rs()
5599 if (!vrend_state.use_gles) { in vrend_hw_emit_rs()
5684 if (vrend_state.use_gles && in get_swizzled_border_color()
5774 if (vrend_state.use_gles) { in vrend_apply_sampler_state()
5794 if (!vrend_state.use_gles) { in vrend_apply_sampler_state()
5851 if (!vrend_state.sync_thread) in vrend_free_sync_thread()
5854 pipe_mutex_lock(vrend_state.fence_mutex); in vrend_free_sync_thread()
5855 vrend_state.stop_sync_thread = true; in vrend_free_sync_thread()
5856 pipe_condvar_signal(vrend_state.fence_cond); in vrend_free_sync_thread()
5857 pipe_mutex_unlock(vrend_state.fence_mutex); in vrend_free_sync_thread()
5859 pipe_thread_wait(vrend_state.sync_thread); in vrend_free_sync_thread()
5860 vrend_state.sync_thread = 0; in vrend_free_sync_thread()
5862 pipe_condvar_destroy(vrend_state.fence_cond); in vrend_free_sync_thread()
5863 pipe_mutex_destroy(vrend_state.fence_mutex); in vrend_free_sync_thread()
5870 if (vrend_state.use_egl_fence) { in free_fence_locked()
5885 assert(!vrend_state.sync_thread); in vrend_free_fences()
5887 LIST_FOR_EACH_ENTRY_SAFE(fence, stor, &vrend_state.fence_list, fences) in vrend_free_fences()
5889 LIST_FOR_EACH_ENTRY_SAFE(fence, stor, &vrend_state.fence_wait_list, fences) in vrend_free_fences()
5897 if (vrend_state.sync_thread) { in vrend_free_fences_for_context()
5898 pipe_mutex_lock(vrend_state.fence_mutex); in vrend_free_fences_for_context()
5899 LIST_FOR_EACH_ENTRY_SAFE(fence, stor, &vrend_state.fence_list, fences) { in vrend_free_fences_for_context()
5903 LIST_FOR_EACH_ENTRY_SAFE(fence, stor, &vrend_state.fence_wait_list, fences) { in vrend_free_fences_for_context()
5907 if (vrend_state.fence_waiting) { in vrend_free_fences_for_context()
5909 vrend_state.fence_waiting->ctx = NULL; in vrend_free_fences_for_context()
5911 pipe_mutex_unlock(vrend_state.fence_mutex); in vrend_free_fences_for_context()
5913 LIST_FOR_EACH_ENTRY_SAFE(fence, stor, &vrend_state.fence_list, fences) { in vrend_free_fences_for_context()
5926 if (vrend_state.use_egl_fence) { in do_wait()
5949 pipe_mutex_lock(vrend_state.fence_mutex); in wait_sync()
5950 list_addtail(&fence->fences, &vrend_state.fence_list); in wait_sync()
5951 vrend_state.fence_waiting = NULL; in wait_sync()
5952 pipe_mutex_unlock(vrend_state.fence_mutex); in wait_sync()
5954 if (write_eventfd(vrend_state.eventfd, 1)) { in wait_sync()
5961 virgl_gl_context gl_context = vrend_state.sync_context; in thread_sync()
5965 pipe_mutex_lock(vrend_state.fence_mutex); in thread_sync()
5968 while (!vrend_state.stop_sync_thread) { in thread_sync()
5969 if (LIST_IS_EMPTY(&vrend_state.fence_wait_list) && in thread_sync()
5970 pipe_condvar_wait(vrend_state.fence_cond, vrend_state.fence_mutex) != 0) { in thread_sync()
5975 LIST_FOR_EACH_ENTRY_SAFE(fence, stor, &vrend_state.fence_wait_list, fences) { in thread_sync()
5976 if (vrend_state.stop_sync_thread) in thread_sync()
5979 vrend_state.fence_waiting = fence; in thread_sync()
5980 pipe_mutex_unlock(vrend_state.fence_mutex); in thread_sync()
5982 pipe_mutex_lock(vrend_state.fence_mutex); in thread_sync()
5987 vrend_clicbs->destroy_gl_context(vrend_state.sync_context); in thread_sync()
5988 pipe_mutex_unlock(vrend_state.fence_mutex); in thread_sync()
5997 ctx_params.major_ver = vrend_state.gl_major_ver; in vrend_renderer_use_threaded_sync()
5998 ctx_params.minor_ver = vrend_state.gl_minor_ver; in vrend_renderer_use_threaded_sync()
6000 vrend_state.stop_sync_thread = false; in vrend_renderer_use_threaded_sync()
6002 vrend_state.sync_context = vrend_clicbs->create_gl_context(0, &ctx_params); in vrend_renderer_use_threaded_sync()
6003 if (vrend_state.sync_context == NULL) { in vrend_renderer_use_threaded_sync()
6008 vrend_state.eventfd = create_eventfd(0); in vrend_renderer_use_threaded_sync()
6009 if (vrend_state.eventfd == -1) { in vrend_renderer_use_threaded_sync()
6011 vrend_clicbs->destroy_gl_context(vrend_state.sync_context); in vrend_renderer_use_threaded_sync()
6015 pipe_condvar_init(vrend_state.fence_cond); in vrend_renderer_use_threaded_sync()
6016 pipe_mutex_init(vrend_state.fence_mutex); in vrend_renderer_use_threaded_sync()
6018 vrend_state.sync_thread = pipe_thread_create(thread_sync, NULL); in vrend_renderer_use_threaded_sync()
6019 if (!vrend_state.sync_thread) { in vrend_renderer_use_threaded_sync()
6020 close(vrend_state.eventfd); in vrend_renderer_use_threaded_sync()
6021 vrend_state.eventfd = -1; in vrend_renderer_use_threaded_sync()
6022 vrend_clicbs->destroy_gl_context(vrend_state.sync_context); in vrend_renderer_use_threaded_sync()
6023 pipe_condvar_destroy(vrend_state.fence_cond); in vrend_renderer_use_threaded_sync()
6024 pipe_mutex_destroy(vrend_state.fence_mutex); in vrend_renderer_use_threaded_sync()
6044 if (vrend_state.finishing || pipe_reference(&res->base.reference, NULL)) in vrend_pipe_resource_unref()
6131 vrend_state.max_texture_2d_size = in vrend_renderer_init()
6132 vrend_state.max_texture_3d_size = in vrend_renderer_init()
6133 vrend_state.max_texture_cube_size = 16384; in vrend_renderer_init()
6163 vrend_state.gl_major_ver = gl_ver / 10; in vrend_renderer_init()
6164 vrend_state.gl_minor_ver = gl_ver % 10; in vrend_renderer_init()
6168 vrend_state.use_gles = true; in vrend_renderer_init()
6170 vrend_state.use_core_profile = 1; in vrend_renderer_init()
6173 vrend_state.use_core_profile = 1; in vrend_renderer_init()
6178 vrend_state.use_integer = use_integer(); in vrend_renderer_init()
6183 vrend_state.features[feat_srgb_write_control] &= vrend_winsys_has_gl_colorspace(); in vrend_renderer_init()
6185 glGetIntegerv(GL_MAX_DRAW_BUFFERS, (GLint *) &vrend_state.max_draw_buffers); in vrend_renderer_init()
6206 vrend_state.bgra_srgb_emulation_loaded = false; in vrend_renderer_init()
6209 if (vrend_state.use_gles) { in vrend_renderer_init()
6223 list_inithead(&vrend_state.fence_list); in vrend_renderer_init()
6224 list_inithead(&vrend_state.fence_wait_list); in vrend_renderer_init()
6225 list_inithead(&vrend_state.waiting_query_list); in vrend_renderer_init()
6227 vrend_state.ctx0 = vrend_create_context(0, strlen("HOST"), "HOST"); in vrend_renderer_init()
6229 vrend_state.eventfd = -1; in vrend_renderer_init()
6234 vrend_state.use_external_blob = true; in vrend_renderer_init()
6237 if (vrend_state.use_gles) in vrend_renderer_init()
6238 vrend_state.use_egl_fence = virgl_egl_supports_fences(egl); in vrend_renderer_init()
6247 vrend_state.finishing = true; in vrend_renderer_fini()
6249 if (vrend_state.eventfd != -1) { in vrend_renderer_fini()
6250 close(vrend_state.eventfd); in vrend_renderer_fini()
6251 vrend_state.eventfd = -1; in vrend_renderer_fini()
6257 vrend_destroy_context(vrend_state.ctx0); in vrend_renderer_fini()
6259 vrend_state.current_ctx = NULL; in vrend_renderer_fini()
6260 vrend_state.current_hw_ctx = NULL; in vrend_renderer_fini()
6262 vrend_state.finishing = false; in vrend_renderer_fini()
6339 bool switch_0 = (ctx == vrend_state.current_ctx); in vrend_destroy_context()
6340 struct vrend_context *cur = vrend_state.current_ctx; in vrend_destroy_context()
6344 vrend_state.current_ctx = NULL; in vrend_destroy_context()
6345 vrend_state.current_hw_ctx = NULL; in vrend_destroy_context()
6348 if (vrend_state.use_core_profile) { in vrend_destroy_context()
6411 grctx->shader_cfg.use_gles = vrend_state.use_gles; in vrend_create_context()
6412 grctx->shader_cfg.use_core_profile = vrend_state.use_core_profile; in vrend_create_context()
6413 grctx->shader_cfg.use_explicit_locations = vrend_state.use_explicit_locations; in vrend_create_context()
6414 grctx->shader_cfg.max_draw_buffers = vrend_state.max_draw_buffers; in vrend_create_context()
6419 grctx->shader_cfg.use_integer = vrend_state.use_integer; in vrend_create_context()
6468 if (!format_can_texture_storage && vrend_state.use_gles) { in check_resource_valid()
6607 if (args->width > vrend_state.max_texture_2d_size) { in check_resource_valid()
6609 args->width, vrend_state.max_texture_2d_size); in check_resource_valid()
6617 if (args->width > vrend_state.max_texture_2d_size || in check_resource_valid()
6618 args->height > vrend_state.max_texture_2d_size) { in check_resource_valid()
6620 args->width, args->height, vrend_state.max_texture_2d_size); in check_resource_valid()
6632 if (args->width > vrend_state.max_texture_3d_size || in check_resource_valid()
6633 args->height > vrend_state.max_texture_3d_size || in check_resource_valid()
6634 args->depth > vrend_state.max_texture_3d_size) { in check_resource_valid()
6637 vrend_state.max_texture_3d_size); in check_resource_valid()
6658 if (args->width > vrend_state.max_texture_cube_size) { in check_resource_valid()
6660 args->width, vrend_state.max_texture_cube_size); in check_resource_valid()
6692 gr->map_info = vrend_state.inferred_gl_caching_type; in vrend_create_buffer()
6884 if (vrend_state.use_gles && pr->nr_samples > 0 && !format_can_texture_storage) { in vrend_resource_fixup_emulated_bgra()
6928 if (vrend_state.use_gles && gr->target == GL_TEXTURE_RECTANGLE_NV) { in vrend_resource_alloc_texture()
6937 if (vrend_state.use_gles && gr->target == GL_TEXTURE_1D) { in vrend_resource_alloc_texture()
6942 if (vrend_state.use_gles && gr->target == GL_TEXTURE_1D_ARRAY) { in vrend_resource_alloc_texture()
7029 } else if (gr->target == GL_TEXTURE_1D && vrend_state.use_gles) { in vrend_resource_alloc_texture()
7517 if (vrend_state.use_core_profile == true && in vrend_renderer_transfer_write_iov()
7571 if ((!vrend_state.use_core_profile) && (res->y_0_top)) { in vrend_renderer_transfer_write_iov()
7634 if (!vrend_state.use_core_profile) in vrend_renderer_transfer_write_iov()
7660 if (vrend_state.use_gles) { in vrend_renderer_transfer_write_iov()
7684 if (!vrend_state.use_core_profile) in vrend_renderer_transfer_write_iov()
7770 } else if (vrend_state.use_gles) { in vrend_transfer_send_getteximage()
7778 } else if (vrend_state.use_gles) { in vrend_transfer_send_getteximage()
7917 if (!vrend_state.use_core_profile) { in vrend_transfer_send_readpixels()
7933 if (vrend_state.use_gles) { in vrend_transfer_send_readpixels()
7954 if (!vrend_state.use_core_profile) in vrend_transfer_send_readpixels()
8054 if (!vrend_state.use_gles) in vrend_renderer_transfer_send_iov()
8142 return vrend_renderer_transfer_internal(vrend_state.ctx0, res, info, in vrend_renderer_transfer_pipe()
8293 if (vrend_state.use_core_profile) { in vrend_set_polygon_stipple()
8326 if (vrend_state.use_core_profile) { in vrend_set_clip_state()
8361 if (!vrend_state.use_gles) { in vrend_set_tess_state()
8365 memcpy(vrend_state.tess_factors, tess_factors, 6 * sizeof (float)); in vrend_set_tess_state()
8502 if (vrend_state.use_gles) { in vrend_resource_copy_fallback()
8644 if (vrend_state.use_gles) { in vrend_copy_sub_image()
8794 if (vrend_state.use_gles) { in vrend_make_view()
8879 if (vrend_state.use_gles && in vrend_renderer_blit_int()
8903 if (vrend_state.use_gles && in vrend_renderer_blit_int()
8952 if (vrend_state.use_gles && in vrend_renderer_blit_int()
9195 if (vrend_state.use_egl_fence) { in vrend_renderer_create_fence()
9207 if (vrend_state.sync_thread) { in vrend_renderer_create_fence()
9208 pipe_mutex_lock(vrend_state.fence_mutex); in vrend_renderer_create_fence()
9209 list_addtail(&fence->fences, &vrend_state.fence_wait_list); in vrend_renderer_create_fence()
9210 pipe_condvar_signal(vrend_state.fence_cond); in vrend_renderer_create_fence()
9211 pipe_mutex_unlock(vrend_state.fence_mutex); in vrend_renderer_create_fence()
9213 list_addtail(&fence->fences, &vrend_state.fence_list); in vrend_renderer_create_fence()
9229 if (fence->fences.next == &vrend_state.fence_list) in need_fence_retire_signal_locked()
9251 if (vrend_state.sync_thread) { in vrend_renderer_check_fences()
9252 flush_eventfd(vrend_state.eventfd); in vrend_renderer_check_fences()
9253 pipe_mutex_lock(vrend_state.fence_mutex); in vrend_renderer_check_fences()
9254 LIST_FOR_EACH_ENTRY_SAFE(fence, stor, &vrend_state.fence_list, fences) { in vrend_renderer_check_fences()
9270 pipe_mutex_unlock(vrend_state.fence_mutex); in vrend_renderer_check_fences()
9274 LIST_FOR_EACH_ENTRY_SAFE(fence, stor, &vrend_state.fence_list, fences) { in vrend_renderer_check_fences()
9326 if (!vrend_state.current_ctx->sub->fake_occlusion_query_samples_passed_multiplier) { in vrend_update_oq_samples_multiplier()
9330 vrend_state.current_ctx->sub->fake_occlusion_query_samples_passed_multiplier = in vrend_update_oq_samples_multiplier()
9351 vrend_update_oq_samples_multiplier(vrend_state.current_ctx); in vrend_check_query()
9352 state.result *= vrend_state.current_ctx->sub->fake_occlusion_query_samples_passed_multiplier; in vrend_check_query()
9371 LIST_FOR_EACH_ENTRY_SAFE(query, stor, &vrend_state.waiting_query_list, waiting_queries) { in vrend_renderer_check_queries()
9383 if (ctx == vrend_state.current_ctx && ctx->ctx_switch_pending == false) in vrend_hw_switch_context()
9394 vrend_state.current_ctx = ctx; in vrend_hw_switch_context()
9404 if (vrend_state.current_hw_ctx == ctx) in vrend_finish_context_switch()
9407 vrend_state.current_hw_ctx = ctx; in vrend_finish_context_switch()
9599 list_addtail(&q->waiting_queries, &vrend_state.waiting_query_list); in vrend_get_query_result()
9813 if (vrend_state.use_gles) { in vrender_get_glsl_version()
9911 if (gl_ver > 0 && !vrend_state.use_core_profile) { in vrend_renderer_fill_caps_v1()
10075 caps->v1.max_render_targets = vrend_state.max_draw_buffers; in vrend_renderer_fill_caps_v1()
10134 if (gl_ver >= 32 || (vrend_state.use_gles && gl_ver >= 30)) in vrend_renderer_fill_caps_v2()
10149 vrend_state.max_texture_2d_size = caps->v2.max_texture_2d_size; in vrend_renderer_fill_caps_v2()
10150 vrend_state.max_texture_3d_size = caps->v2.max_texture_3d_size; in vrend_renderer_fill_caps_v2()
10151 vrend_state.max_texture_cube_size = caps->v2.max_texture_cube_size; in vrend_renderer_fill_caps_v2()
10153 vrend_state.max_texture_2d_size, vrend_state.max_texture_3d_size, in vrend_renderer_fill_caps_v2()
10154 vrend_state.max_texture_cube_size); in vrend_renderer_fill_caps_v2()
10218 if (has_feature(feat_compute_shader) && (vrend_state.use_gles || gl_ver >= 33)) { in vrend_renderer_fill_caps_v2()
10326 if (vrend_state.use_gles) { in vrend_renderer_fill_caps_v2()
10368 if (has_feature(feat_arb_buffer_storage) && !vrend_state.use_external_blob) { in vrend_renderer_fill_caps_v2()
10383 vrend_state.inferred_gl_caching_type = VIRGL_RENDERER_MAP_CACHE_CACHED; in vrend_renderer_fill_caps_v2()
10385 vrend_state.inferred_gl_caching_type = VIRGL_RENDERER_MAP_CACHE_WC; in vrend_renderer_fill_caps_v2()
10389 vrend_state.inferred_gl_caching_type = VIRGL_RENDERER_MAP_CACHE_CACHED; in vrend_renderer_fill_caps_v2()
10392 if (vrend_state.inferred_gl_caching_type) in vrend_renderer_fill_caps_v2()
10457 if (vrend_state.use_gles) { in vrend_renderer_fill_caps()
10522 } else if (vrend_state.use_gles) { in vrend_renderer_get_cursor_contents()
10543 vrend_state.current_ctx = NULL; in vrend_renderer_force_ctx_0()
10544 vrend_state.current_hw_ctx = NULL; in vrend_renderer_force_ctx_0()
10545 vrend_hw_switch_context(vrend_state.ctx0, true); in vrend_renderer_force_ctx_0()
10695 ctx_params.major_ver = vrend_state.gl_major_ver; in vrend_renderer_create_sub_ctx()
10696 ctx_params.minor_ver = vrend_state.gl_minor_ver; in vrend_renderer_create_sub_ctx()
10797 vrend_hw_switch_context(vrend_state.ctx0, true); in vrend_renderer_prepare_reset()
10805 vrend_destroy_context(vrend_state.ctx0); in vrend_renderer_reset()
10807 vrend_state.ctx0 = vrend_create_context(0, strlen("HOST"), "HOST"); in vrend_renderer_reset()
10813 return vrend_state.eventfd; in vrend_renderer_get_poll_fd()
11025 return vrend_renderer_create_fence(vrend_state.ctx0, in vrend_renderer_create_ctx0_fence()
11038 if (iter->ctx != vrend_state.ctx0) in find_ctx0_fence_locked()
11058 if (!vrend_state.use_egl_fence) { in vrend_renderer_export_ctx0_fence()
11062 if (vrend_state.sync_thread) in vrend_renderer_export_ctx0_fence()
11063 pipe_mutex_lock(vrend_state.fence_mutex); in vrend_renderer_export_ctx0_fence()
11068 bool found = find_ctx0_fence_locked(&vrend_state.fence_list, in vrend_renderer_export_ctx0_fence()
11073 found = find_ctx0_fence_locked(&vrend_state.fence_wait_list, in vrend_renderer_export_ctx0_fence()
11082 if (vrend_state.sync_thread) in vrend_renderer_export_ctx0_fence()
11083 pipe_mutex_unlock(vrend_state.fence_mutex); in vrend_renderer_export_ctx0_fence()