Lines Matching refs:grctx
6388 struct vrend_context *grctx = CALLOC_STRUCT(vrend_context); in vrend_create_context() local
6390 if (!grctx) in vrend_create_context()
6394 strncpy(grctx->debug_name, debug_name, in vrend_create_context()
6395 nlen < sizeof(grctx->debug_name) - 1 ? in vrend_create_context()
6396 nlen : sizeof(grctx->debug_name) - 1); in vrend_create_context()
6397 grctx->debug_name[sizeof(grctx->debug_name) - 1] = 0; in vrend_create_context()
6400 VREND_DEBUG(dbg_caller, grctx, "create context\n"); in vrend_create_context()
6402 grctx->ctx_id = id; in vrend_create_context()
6404 list_inithead(&grctx->sub_ctxs); in vrend_create_context()
6405 list_inithead(&grctx->vrend_resources); in vrend_create_context()
6406 list_inithead(&grctx->active_nontimer_query_list); in vrend_create_context()
6408 grctx->res_hash = vrend_ctx_resource_init_table(); in vrend_create_context()
6409 list_inithead(&grctx->untyped_resources); in vrend_create_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()
6415 grctx->shader_cfg.has_arrays_of_arrays = has_feature(feat_arrays_of_arrays); in vrend_create_context()
6416 grctx->shader_cfg.has_gpu_shader5 = has_feature(feat_gpu_shader5); in vrend_create_context()
6417 grctx->shader_cfg.has_es31_compat = has_feature(feat_gles31_compatibility); in vrend_create_context()
6418 grctx->shader_cfg.has_conservative_depth = has_feature(feat_conservative_depth); in vrend_create_context()
6419 grctx->shader_cfg.use_integer = vrend_state.use_integer; in vrend_create_context()
6420 grctx->shader_cfg.has_dual_src_blend = has_feature(feat_dual_src_blend); in vrend_create_context()
6422 vrend_renderer_create_sub_ctx(grctx, 0); in vrend_create_context()
6423 vrend_renderer_set_sub_ctx(grctx, 0); in vrend_create_context()
6425 vrender_get_glsl_version(&grctx->shader_cfg.glsl_version); in vrend_create_context()
6427 if (!grctx->ctx_id) in vrend_create_context()
6428 grctx->fence_retire = vrend_clicbs->ctx0_fence_retire; in vrend_create_context()
6430 return grctx; in vrend_create_context()