/external/mesa3d/src/gallium/targets/egl-static/ |
D | egl_st.c | 78 struct st_api *stapi = NULL; in load_gl() local 87 stapi = create_api(); in load_gl() 89 if (!stapi) { in load_gl() 94 return stapi; in load_gl() 102 struct st_api *stapi; in egl_st_load_gl() local 104 stapi = load_gl(module, symbol); in egl_st_load_gl() 107 if (!stapi) { in egl_st_load_gl() 113 stapi = load_gl(module, symbol); in egl_st_load_gl() 117 if (!stapi) in egl_st_load_gl() 120 return stapi; in egl_st_load_gl() [all …]
|
D | egl.c | 48 struct st_api *stapi; member 57 stmod->stapi = egl_st_create_api(api); in get_st_api() 61 return stmod->stapi; in get_st_api() 280 if (stmod->stapi) { in loader_fini() 281 egl_st_destroy_api(stmod->stapi); in loader_fini() 282 stmod->stapi = NULL; in loader_fini()
|
D | egl_st.h | 38 egl_st_destroy_api(struct st_api *stapi);
|
/external/mesa3d/src/gallium/state_trackers/dri/common/ |
D | dri_context.c | 70 struct st_api *stapi = screen->st_api; in dri_create_context() local 119 ctx->st = stapi->create_context(stapi, &screen->base, &attribs, &ctx_err, in dri_create_context() 148 ctx->stapi = stapi; in dri_create_context() 196 struct st_api *stapi = screen->st_api; in dri_unbind_context() local 199 if (ctx->st == ctx->stapi->get_current(ctx->stapi)) { in dri_unbind_context() 205 stapi->make_current(stapi, NULL, NULL, NULL); in dri_unbind_context() 221 struct st_context_iface *old_st = ctx->stapi->get_current(ctx->stapi); in dri_make_current() 230 return ctx->stapi->make_current(ctx->stapi, ctx->st, NULL, NULL); in dri_make_current() 243 ctx->stapi->make_current(ctx->stapi, ctx->st, &draw->base, &read->base); in dri_make_current() 258 struct st_api *stapi = screen->st_api; in dri_get_current() local [all …]
|
D | dri_context.h | 58 struct st_api *stapi; member
|
/external/mesa3d/src/gallium/state_trackers/dri/drm/ |
D | dri_context.c | 70 struct st_api *stapi = screen->st_api; in dri_create_context() local 119 ctx->st = stapi->create_context(stapi, &screen->base, &attribs, &ctx_err, in dri_create_context() 148 ctx->stapi = stapi; in dri_create_context() 196 struct st_api *stapi = screen->st_api; in dri_unbind_context() local 199 if (ctx->st == ctx->stapi->get_current(ctx->stapi)) { in dri_unbind_context() 205 stapi->make_current(stapi, NULL, NULL, NULL); in dri_unbind_context() 221 struct st_context_iface *old_st = ctx->stapi->get_current(ctx->stapi); in dri_make_current() 230 return ctx->stapi->make_current(ctx->stapi, ctx->st, NULL, NULL); in dri_make_current() 243 ctx->stapi->make_current(ctx->stapi, ctx->st, &draw->base, &read->base); in dri_make_current() 258 struct st_api *stapi = screen->st_api; in dri_get_current() local [all …]
|
/external/mesa3d/src/gallium/state_trackers/dri/sw/ |
D | dri_context.c | 70 struct st_api *stapi = screen->st_api; in dri_create_context() local 119 ctx->st = stapi->create_context(stapi, &screen->base, &attribs, &ctx_err, in dri_create_context() 148 ctx->stapi = stapi; in dri_create_context() 196 struct st_api *stapi = screen->st_api; in dri_unbind_context() local 199 if (ctx->st == ctx->stapi->get_current(ctx->stapi)) { in dri_unbind_context() 205 stapi->make_current(stapi, NULL, NULL, NULL); in dri_unbind_context() 221 struct st_context_iface *old_st = ctx->stapi->get_current(ctx->stapi); in dri_make_current() 230 return ctx->stapi->make_current(ctx->stapi, ctx->st, NULL, NULL); in dri_make_current() 243 ctx->stapi->make_current(ctx->stapi, ctx->st, &draw->base, &read->base); in dri_make_current() 258 struct st_api *stapi = screen->st_api; in dri_get_current() local [all …]
|
/external/mesa3d/src/gallium/state_trackers/wgl/ |
D | stw_device.c | 87 stw_dev->stapi = stw_st_create_api(); in stw_init() 89 if (!stw_dev->stapi || !stw_dev->smapi) in stw_init() 122 if (stw_dev->stapi) in stw_init() 123 stw_dev->stapi->destroy(stw_dev->stapi); in stw_init() 175 stw_dev->stapi->destroy(stw_dev->stapi); in stw_cleanup()
|
D | stw_context.c | 56 st = (stw_dev) ? stw_dev->stapi->get_current(stw_dev->stapi) : NULL; in stw_current_context() 213 ctx->st = stw_dev->stapi->create_context(stw_dev->stapi, in stw_create_context_attribs() 256 stw_dev->stapi->make_current(stw_dev->stapi, NULL, NULL, NULL); in DrvDeleteContext() 378 ret = stw_dev->stapi->make_current(stw_dev->stapi, ctx->st, in stw_make_current() 382 ret = stw_dev->stapi->make_current(stw_dev->stapi, NULL, NULL, NULL); in stw_make_current() 394 stw_dev->stapi->make_current(stw_dev->stapi, NULL, NULL, NULL); in stw_make_current()
|
D | stw_device.h | 57 struct st_api *stapi; member
|
/external/mesa3d/src/gallium/include/state_tracker/ |
D | st_api.h | 465 void (*destroy)(struct st_api *stapi); 472 st_proc_t (*get_proc_address)(struct st_api *stapi, const char *procname); 477 struct st_context_iface *(*create_context)(struct st_api *stapi, 489 boolean (*make_current)(struct st_api *stapi, 497 struct st_context_iface *(*get_current)(struct st_api *stapi);
|
/external/mesa3d/src/gallium/state_trackers/vega/ |
D | vg_manager.c | 164 vg_api_create_context(struct st_api *stapi, struct st_manager *smapi, in vg_api_create_context() argument 173 if (!(stapi->profile_mask & (1 << attribs->profile))) { in vg_api_create_context() 336 vg_api_make_current(struct st_api *stapi, struct st_context_iface *stctxi, in vg_api_make_current() argument 350 vg_api_get_current(struct st_api *stapi) in vg_api_get_current() argument 358 vg_api_get_proc_address(struct st_api *stapi, const char *procname) in vg_api_get_proc_address() argument 364 vg_api_destroy(struct st_api *stapi) in vg_api_destroy() argument
|
/external/mesa3d/src/gallium/state_trackers/egl/common/ |
D | egl_g3d_api.c | 49 struct st_api *stapi; in egl_g3d_choose_st() local 82 stapi = egl_g3d_get_st_api(drv, api); in egl_g3d_choose_st() 83 if (stapi && !(stapi->profile_mask & (1 << *profile))) in egl_g3d_choose_st() 84 stapi = NULL; in egl_g3d_choose_st() 86 return stapi; in egl_g3d_choose_st() 170 gctx->stapi = egl_g3d_choose_st(drv, &gctx->base, &stattribs.profile); in egl_g3d_create_context() 171 if (!gctx->stapi) { in egl_g3d_create_context() 176 gctx->stctxi = gctx->stapi->create_context(gctx->stapi, gdpy->smapi, in egl_g3d_create_context() 508 ok = gctx->stapi->make_current(gctx->stapi, gctx->stctxi, in egl_g3d_make_current() 521 ok = old_gctx->stapi->make_current(old_gctx->stapi, NULL, NULL, NULL); in egl_g3d_make_current()
|
D | egl_g3d.c | 635 struct st_api *stapi = NULL; in egl_g3d_get_proc_address() local 638 stapi = gdrv->loader->get_st_api(ST_API_OPENVG); in egl_g3d_get_proc_address() 640 stapi = gdrv->loader->get_st_api(ST_API_OPENGL); in egl_g3d_get_proc_address() 642 return (_EGLProc) ((stapi) ? in egl_g3d_get_proc_address() 643 stapi->get_proc_address(stapi, procname) : NULL); in egl_g3d_get_proc_address()
|
D | egl_g3d.h | 64 struct st_api *stapi; member
|
/external/mesa3d/src/gallium/state_trackers/glx/xlib/ |
D | xm_api.c | 76 static struct st_api *stapi; variable 103 stapi = driver.create_st_api(); in xmesa_set_driver() 838 return stapi->name; in xmesa_get_name() 909 c->st = stapi->create_context(stapi, xmdpy->smapi, &attribs, in XMesaCreateContext() 1189 stapi->make_current(stapi, c->st, drawBuffer->stfb, readBuffer->stfb); in XMesaMakeCurrent2() 1196 stapi->make_current(stapi, NULL, NULL, NULL); in XMesaMakeCurrent2() 1215 struct st_context_iface *st = stapi->get_current(stapi); in XMesaGetCurrentContext() 1347 struct st_context_iface *st = stapi->get_current(stapi); in XMesaBindTexImage()
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_manager.c | 602 st_api_create_context(struct st_api *stapi, struct st_manager *smapi, in st_api_create_context() argument 613 if (!(stapi->profile_mask & (1 << attribs->profile))) in st_api_create_context() 678 st_api_get_current(struct st_api *stapi) in st_api_get_current() argument 707 st_api_make_current(struct st_api *stapi, struct st_context_iface *stctxi, in st_api_make_current() argument 760 st_api_get_proc_address(struct st_api *stapi, const char *procname) in st_api_get_proc_address() argument 766 st_api_destroy(struct st_api *stapi) in st_api_destroy() argument
|