Home
last modified time | relevance | path

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

/external/mesa3d/src/gallium/state_trackers/dri/
Ddri_context.c52 struct st_api *stapi = screen->st_api; in dri_create_context() local
155 ctx->st = stapi->create_context(stapi, &screen->base, &attribs, &ctx_err, in dri_create_context()
184 ctx->stapi = stapi; in dri_create_context()
251 struct st_api *stapi = screen->st_api; in dri_unbind_context() local
254 if (st == stapi->get_current(stapi)) { in dri_unbind_context()
262 stapi->make_current(stapi, NULL, NULL, NULL); in dri_unbind_context()
282 return ctx->stapi->make_current(ctx->stapi, ctx->st, NULL, NULL); in dri_make_current()
295 ctx->stapi->make_current(ctx->stapi, ctx->st, &draw->base, &read->base); in dri_make_current()
309 struct st_api *stapi = screen->st_api; in dri_get_current() local
312 st = stapi->get_current(stapi); in dri_get_current()
Ddri_helpers.c93 struct st_context_iface *stapi = dri_context(_ctx)->st; in dri2_create_fence() local
99 stapi->flush(stapi, 0, &fence->pipe_fence); in dri2_create_fence()
113 struct st_context_iface *stapi = dri_context(_ctx)->st; in dri2_create_fence_fd() local
114 struct pipe_context *ctx = stapi->pipe; in dri2_create_fence_fd()
119 stapi->flush(stapi, ST_FLUSH_FENCE_FD, &fence->pipe_fence); in dri2_create_fence_fd()
Ddri_context.h56 struct st_api *stapi; member
Ddri_drawable.c190 struct st_api *stapi = screen->st_api; in dri_destroy_buffer() local
203 stapi->destroy_drawable(stapi, &drawable->base); in dri_destroy_buffer()
/external/mesa3d/src/gallium/state_trackers/wgl/
Dstw_device.c107 stw_dev->stapi = stw_st_create_api(); in stw_init()
109 if (!stw_dev->stapi || !stw_dev->smapi) in stw_init()
150 if (stw_dev->stapi) in stw_init()
151 stw_dev->stapi->destroy(stw_dev->stapi); in stw_init()
206 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()
534 ret = stw_dev->stapi->make_current(stw_dev->stapi, ctx->st, in stw_make_current()
542 ret = stw_dev->stapi->make_current(stw_dev->stapi, ctx->st, in stw_make_current()
566 ret = stw_dev->stapi->make_current(stw_dev->stapi, NULL, NULL, NULL); in stw_make_current()
Dstw_device.h56 struct st_api *stapi; member
Dstw_st.c261 stw_dev->stapi->destroy_drawable(stw_dev->stapi, &stwfb->base); in stw_st_destroy_framebuffer_locked()
/external/mesa3d/src/gallium/state_trackers/osmesa/
Dosmesa.c145 static struct st_api *stapi = NULL; in get_st_api() local
146 if (!stapi) { in get_st_api()
147 stapi = st_gl_api_create(); in get_st_api()
149 return stapi; in get_st_api()
516 struct st_api *stapi = get_st_api(); in osmesa_destroy_buffer() local
522 stapi->destroy_drawable(stapi, osbuffer->stfb); in osmesa_destroy_buffer()
588 struct st_api *stapi = get_st_api(); in OSMesaCreateContextAttribs() local
700 osmesa->stctx = stapi->create_context(stapi, get_st_manager(), in OSMesaCreateContextAttribs()
760 struct st_api *stapi = get_st_api(); in OSMesaMakeCurrent() local
799 stapi->make_current(stapi, osmesa->stctx, osbuffer->stfb, osbuffer->stfb); in OSMesaMakeCurrent()
[all …]
/external/mesa3d/src/gallium/include/state_tracker/
Dst_api.h508 void (*destroy)(struct st_api *stapi);
514 void (*query_versions)(struct st_api *stapi, struct st_manager *sm,
524 struct st_context_iface *(*create_context)(struct st_api *stapi,
536 boolean (*make_current)(struct st_api *stapi,
544 struct st_context_iface *(*get_current)(struct st_api *stapi);
550 void (*destroy_drawable)(struct st_api *stapi,
/external/mesa3d/src/gallium/state_trackers/glx/xlib/
Dxm_api.c79 static struct st_api *stapi; variable
106 stapi = driver.create_st_api(); in xmesa_set_driver()
604 stapi->destroy_drawable(stapi, buffer->stfb); in xmesa_free_buffer()
931 return stapi->name; in xmesa_get_name()
1031 c->st = stapi->create_context(stapi, xmdpy->smapi, &attribs, in XMesaCreateContext()
1315 stapi->make_current(stapi, c->st, drawBuffer->stfb, readBuffer->stfb); in XMesaMakeCurrent2()
1322 stapi->make_current(stapi, NULL, NULL, NULL); in XMesaMakeCurrent2()
1341 struct st_context_iface *st = stapi->get_current(stapi); in XMesaGetCurrentContext()
1484 struct st_context_iface *st = stapi->get_current(stapi); in XMesaBindTexImage()
/external/mesa3d/src/mesa/state_tracker/
Dst_manager.c595 st_api_destroy_drawable(struct st_api *stapi, in st_api_destroy_drawable() argument
828 st_api_create_context(struct st_api *stapi, struct st_manager *smapi, in st_api_create_context() argument
841 if (!(stapi->profile_mask & (1 << attribs->profile))) in st_api_create_context()
962 st_api_get_current(struct st_api *stapi) in st_api_get_current() argument
1016 st_api_make_current(struct st_api *stapi, struct st_context_iface *stctxi, in st_api_make_current() argument
1075 st_api_destroy(struct st_api *stapi) in st_api_destroy() argument
1218 st_api_query_versions(struct st_api *stapi, struct st_manager *sm, in st_api_query_versions() argument