Home
last modified time | relevance | path

Searched refs:stapi (Results 1 – 12 of 12) sorted by relevance

/external/mesa3d/src/gallium/frontends/dri/
Ddri_context.c54 struct st_api *stapi = screen->st_api; in dri_create_context() local
163 ctx->st = stapi->create_context(stapi, &screen->base, &attribs, &ctx_err, in dri_create_context()
192 ctx->stapi = stapi; in dri_create_context()
259 struct st_api *stapi = screen->st_api; in dri_unbind_context() local
262 if (st == stapi->get_current(stapi)) { in dri_unbind_context()
270 stapi->make_current(stapi, NULL, NULL, NULL); in dri_unbind_context()
290 return ctx->stapi->make_current(ctx->stapi, ctx->st, NULL, NULL); in dri_make_current()
303 ctx->stapi->make_current(ctx->stapi, ctx->st, &draw->base, &read->base); in dri_make_current()
317 struct st_api *stapi = screen->st_api; in dri_get_current() local
320 st = stapi->get_current(stapi); in dri_get_current()
Ddri_helpers.c94 struct st_context_iface *stapi = dri_context(_ctx)->st; in dri2_create_fence() local
100 stapi->flush(stapi, 0, &fence->pipe_fence, NULL, NULL); in dri2_create_fence()
114 struct st_context_iface *stapi = dri_context(_ctx)->st; in dri2_create_fence_fd() local
115 struct pipe_context *ctx = stapi->pipe; in dri2_create_fence_fd()
120 stapi->flush(stapi, ST_FLUSH_FENCE_FD, &fence->pipe_fence, NULL, NULL); in dri2_create_fence_fd()
Ddri_context.h56 struct st_api *stapi; member
Ddri_drawable.c196 struct st_api *stapi = screen->st_api; in dri_destroy_buffer() local
210 stapi->destroy_drawable(stapi, &drawable->base); in dri_destroy_buffer()
/external/mesa3d/src/gallium/frontends/wgl/
Dstw_device.c117 stw_dev->stapi = stw_st_create_api(); in stw_init()
119 if (!stw_dev->stapi || !stw_dev->smapi) in stw_init()
146 if (stw_dev->stapi) in stw_init()
147 stw_dev->stapi->destroy(stw_dev->stapi); in stw_init()
220 stw_dev->stapi->destroy(stw_dev->stapi); in stw_cleanup()
Dstw_context.c57 st = (stw_dev) ? stw_dev->stapi->get_current(stw_dev->stapi) : NULL; in stw_current_context()
273 ctx->st = stw_dev->stapi->create_context(stw_dev->stapi, in stw_create_context_attribs()
348 stw_dev->stapi->make_current(stw_dev->stapi, NULL, NULL, NULL); in DrvDeleteContext()
535 ret = stw_dev->stapi->make_current(stw_dev->stapi, ctx->st, in stw_make_current()
543 ret = stw_dev->stapi->make_current(stw_dev->stapi, ctx->st, in stw_make_current()
567 ret = stw_dev->stapi->make_current(stw_dev->stapi, NULL, NULL, NULL); in stw_make_current()
Dstw_device.h58 struct st_api *stapi; member
Dstw_st.c331 stw_dev->stapi->destroy_drawable(stw_dev->stapi, &stwfb->base); in stw_st_destroy_framebuffer_locked()
/external/mesa3d/src/gallium/frontends/osmesa/
Dosmesa.c146 static struct st_api *stapi = NULL; in get_st_api() local
147 if (!stapi) { in get_st_api()
148 stapi = st_gl_api_create(); in get_st_api()
150 return stapi; in get_st_api()
521 struct st_api *stapi = get_st_api(); in osmesa_destroy_buffer() local
527 stapi->destroy_drawable(stapi, osbuffer->stfb); in osmesa_destroy_buffer()
593 struct st_api *stapi = get_st_api(); in OSMesaCreateContextAttribs() local
704 osmesa->stctx = stapi->create_context(stapi, get_st_manager(), in OSMesaCreateContextAttribs()
764 struct st_api *stapi = get_st_api(); in OSMesaMakeCurrent() local
769 stapi->make_current(stapi, NULL, NULL, NULL); in OSMesaMakeCurrent()
[all …]
/external/mesa3d/src/gallium/include/frontend/
Dapi.h518 void (*destroy)(struct st_api *stapi);
524 void (*query_versions)(struct st_api *stapi, struct st_manager *sm,
534 struct st_context_iface *(*create_context)(struct st_api *stapi,
546 bool (*make_current)(struct st_api *stapi,
554 struct st_context_iface *(*get_current)(struct st_api *stapi);
560 void (*destroy_drawable)(struct st_api *stapi,
/external/mesa3d/src/gallium/frontends/glx/xlib/
Dxm_api.c84 static struct st_api *stapi; variable
111 stapi = driver.create_st_api(); in xmesa_set_driver()
609 stapi->destroy_drawable(stapi, buffer->stfb); in xmesa_free_buffer()
925 return stapi->name; in xmesa_get_name()
1025 c->st = stapi->create_context(stapi, xmdpy->smapi, &attribs, in XMesaCreateContext()
1309 stapi->make_current(stapi, c->st, in XMesaMakeCurrent2()
1319 stapi->make_current(stapi, NULL, NULL, NULL); in XMesaMakeCurrent2()
1338 struct st_context_iface *st = stapi->get_current(stapi); in XMesaGetCurrentContext()
1481 struct st_context_iface *st = stapi->get_current(stapi); in XMesaBindTexImage()
/external/mesa3d/src/mesa/state_tracker/
Dst_manager.c609 st_api_destroy_drawable(struct st_api *stapi, in st_api_destroy_drawable() argument
851 st_api_create_context(struct st_api *stapi, struct st_manager *smapi, in st_api_create_context() argument
865 if (!(stapi->profile_mask & (1 << attribs->profile))) in st_api_create_context()
999 st_api_get_current(struct st_api *stapi) in st_api_get_current() argument
1053 st_api_make_current(struct st_api *stapi, struct st_context_iface *stctxi, in st_api_make_current() argument
1122 st_api_destroy(struct st_api *stapi) in st_api_destroy() argument
1277 st_api_query_versions(struct st_api *stapi, struct st_manager *sm, in st_api_query_versions() argument