Home
last modified time | relevance | path

Searched refs:psc (Results 1 – 25 of 44) sorted by relevance

12

/third_party/mesa3d/src/glx/
Ddri3_glx.c105 struct dri3_screen *psc = (struct dri3_screen *) priv->base.psc; in glx_dri3_in_current_context() local
107 return (&pcp->base != &dummyContext) && pcp->base.psc == &psc->base; in glx_dri3_in_current_context()
124 struct dri3_screen *psc = (struct dri3_screen *) pcp->base.psc; in glx_dri3_get_dri_screen() local
126 return (gc != &dummyContext && psc) ? psc->driScreen : NULL; in glx_dri3_get_dri_screen()
140 ((struct dri3_screen *) priv->base.psc)->show_fps_interval; in glx_dri3_show_fps()
175 struct dri3_screen *psc = (struct dri3_screen *) context->psc; in dri3_destroy_context() local
181 (*psc->core->destroyContext) (pcp->driContext); in dri3_destroy_context()
191 struct dri3_screen *psc = (struct dri3_screen *) pcp->base.psc; in dri3_bind_context() local
210 if (!(*psc->core->bindContext) (pcp->driContext, dri_draw, dri_read)) in dri3_bind_context()
214 psc->f->invalidate(dri_draw); in dri3_bind_context()
[all …]
Ddri2_glx.c117 struct dri2_screen *psc = (struct dri2_screen *) context->psc; in dri2_destroy_context() local
123 (*psc->core->destroyContext) (pcp->driContext); in dri2_destroy_context()
133 struct dri2_screen *psc = (struct dri2_screen *) pcp->base.psc; in dri2_bind_context() local
136 struct glx_display *dpyPriv = psc->base.display; in dri2_bind_context()
154 if (!(*psc->core->bindContext) (pcp->driContext, dri_draw, dri_read)) in dri2_bind_context()
162 dri2InvalidateBuffers(psc->base.dpy, pdraw->base.xDrawable); in dri2_bind_context()
164 dri2InvalidateBuffers(psc->base.dpy, pread->base.xDrawable); in dri2_bind_context()
174 struct dri2_screen *psc = (struct dri2_screen *) pcp->base.psc; in dri2_unbind_context() local
176 (*psc->core->unbindContext) (pcp->driContext); in dri2_unbind_context()
189 struct dri2_screen *psc = (struct dri2_screen *) base; in dri2_create_context_attribs() local
[all …]
Ddrisw_glx.c141 Display *dpy = pdraw->psc->dpy; in swrastGetDrawableInfo()
184 Display *dpy = pdraw->psc->dpy; in swrastXPutImage()
275 Display *dpy = pread->psc->dpy; in swrastGetImage2()
312 Display *dpy = pread->psc->dpy; in swrastGetImageShm2()
385 struct drisw_screen *psc = (struct drisw_screen *) context->psc; in drisw_destroy_context() local
391 (*psc->core->destroyContext) (pcp->driContext); in drisw_destroy_context()
401 struct drisw_screen *psc = (struct drisw_screen *) pcp->base.psc; in drisw_bind_context() local
409 if ((*psc->core->bindContext) (pcp->driContext, in drisw_bind_context()
421 struct drisw_screen *psc = (struct drisw_screen *) pcp->base.psc; in drisw_unbind_context() local
423 (*psc->core->unbindContext) (pcp->driContext); in drisw_unbind_context()
[all …]
Ddri_common_query_renderer.c85 struct dri2_screen *const psc = (struct dri2_screen *) base; in dri2_query_renderer_integer() local
94 if (psc->rendererQuery == NULL) in dri2_query_renderer_integer()
97 ret = psc->rendererQuery->queryInteger(psc->driScreen, dri_attribute, in dri2_query_renderer_integer()
108 struct dri2_screen *const psc = (struct dri2_screen *) base; in dri2_query_renderer_string() local
116 if (psc->rendererQuery == NULL) in dri2_query_renderer_string()
119 return psc->rendererQuery->queryString(psc->driScreen, dri_attribute, value); in dri2_query_renderer_string()
128 struct dri3_screen *const psc = (struct dri3_screen *) base; in dri3_query_renderer_integer() local
137 if (psc->rendererQuery == NULL) in dri3_query_renderer_integer()
140 ret = psc->rendererQuery->queryInteger(psc->driScreen, dri_attribute, in dri3_query_renderer_integer()
151 struct dri3_screen *const psc = (struct dri3_screen *) base; in dri3_query_renderer_string() local
[all …]
Dquery_renderer.c29 __glXQueryRendererInteger(struct glx_screen *psc, int attribute, in __glXQueryRendererInteger() argument
39 if (psc->vtable->query_renderer_integer == NULL) in __glXQueryRendererInteger()
67 err = psc->vtable->query_renderer_integer(psc, attribute, buffer); in __glXQueryRendererInteger()
83 struct glx_screen *psc; in glXQueryRendererIntegerMESA() local
91 psc = GetGLXScreenConfigs(dpy, screen); in glXQueryRendererIntegerMESA()
92 if (psc == NULL) in glXQueryRendererIntegerMESA()
101 return __glXQueryRendererInteger(psc, attribute, value); in glXQueryRendererIntegerMESA()
112 return __glXQueryRendererInteger(gc->psc, attribute, value); in glXQueryCurrentRendererIntegerMESA()
116 __glXQueryRendererString(struct glx_screen *psc, int attribute) in __glXQueryRendererString() argument
124 if (psc->vtable->query_renderer_integer == NULL) in __glXQueryRendererString()
[all …]
Ddri_common_interop.c39 struct dri2_screen *psc = (struct dri2_screen*)ctx->psc; in dri2_interop_query_device_info() local
42 if (!psc->interop) in dri2_interop_query_device_info()
45 return psc->interop->query_device_info(drictx->driContext, out); in dri2_interop_query_device_info()
53 struct dri2_screen *psc = (struct dri2_screen*)ctx->psc; in dri2_interop_export_object() local
56 if (!psc->interop) in dri2_interop_export_object()
59 return psc->interop->export_object(drictx->driContext, in, out); in dri2_interop_export_object()
68 struct dri3_screen *psc = (struct dri3_screen*)ctx->psc; in dri3_interop_query_device_info() local
71 if (!psc->interop) in dri3_interop_query_device_info()
74 return psc->interop->query_device_info(drictx->driContext, out); in dri3_interop_query_device_info()
82 struct dri3_screen *psc = (struct dri3_screen*)ctx->psc; in dri3_interop_export_object() local
[all …]
Ddriwindows_glx.c126 struct driwindows_screen *psc = (struct driwindows_screen *) base; in driwindows_create_context() local
129 if (!psc->base.driScreen) in driwindows_create_context()
152 if (!glx_context_init(&pcp->base, &psc->base, &config->base)) { in driwindows_create_context()
183 struct driwindows_screen *psc = (struct driwindows_screen *) base; in driwindows_create_context_attribs() local
203 if (!psc->base.driScreen || !config_base) in driwindows_create_context_attribs()
227 if (!glx_context_init(&pcp->base, &psc->base, &config->base)) { in driwindows_create_context_attribs()
264 struct driwindows_screen *psc = (struct driwindows_screen *) base; in driwindowsCreateDrawable() local
272 pdp->base.psc = &psc->base; in driwindowsCreateDrawable()
285 if (!XWindowsDRIQueryDrawable(psc->base.dpy, base->scr, drawable, &type, &handle)) in driwindowsCreateDrawable()
346 struct driwindows_screen *psc = (struct driwindows_screen *) base; in driwindowsDestroyScreen() local
[all …]
Dglxcmds.c259 struct glx_screen *psc, struct glx_config *config) in glx_context_init() argument
261 gc->majorOpcode = __glXSetupForCommand(psc->display->dpy); in glx_context_init()
265 gc->screen = psc->scr; in glx_context_init()
266 gc->psc = psc; in glx_context_init()
330 struct glx_screen *psc; in CreateContext() local
335 psc = GetGLXScreenConfigs(dpy, screen); in CreateContext()
336 if (psc == NULL) in CreateContext()
344 gc = applegl_create_context(psc, config, shareList, renderType); in CreateContext()
346 if (allowDirect && psc->vtable->create_context) in CreateContext()
347 gc = psc->vtable->create_context(psc, config, shareList, renderType); in CreateContext()
[all …]
Dapplegl_glx.c48 apple_glx_destroy_context(&gc->driContext, gc->psc->dpy); in applegl_destroy_context()
55 Display *dpy = gc->psc->dpy; in applegl_bind_context()
83 dpy = gc->psc->dpy; in applegl_unbind_context()
101 Display *dpy = gc->psc->dpy; in applegl_wait_x()
120 applegl_create_context(struct glx_screen *psc, in applegl_create_context() argument
127 Display *dpy = psc->dpy; in applegl_create_context()
128 int screen = psc->scr; in applegl_create_context()
140 if (!glx_context_init(gc, psc, config)) { in applegl_create_context()
176 struct glx_screen *psc; in applegl_create_screen() local
178 psc = calloc(1, sizeof *psc); in applegl_create_screen()
[all …]
Dglxext.c246 struct glx_screen *psc; in FreeScreenConfigs() local
252 psc = priv->screens[i]; in FreeScreenConfigs()
253 if (!psc) in FreeScreenConfigs()
255 glx_screen_cleanup(psc); in FreeScreenConfigs()
258 if (psc->driScreen) { in FreeScreenConfigs()
259 psc->driScreen->destroyScreen(psc); in FreeScreenConfigs()
261 free(psc); in FreeScreenConfigs()
264 free(psc); in FreeScreenConfigs()
683 getVisualConfigs(struct glx_screen *psc, in getVisualConfigs() argument
692 psc->visuals = NULL; in getVisualConfigs()
[all …]
Dglxextensions.c284 static void __glXExtensionsCtrScreen(struct glx_screen * psc);
384 __glXEnableDirectExtension(struct glx_screen * psc, const char *name) in __glXEnableDirectExtension() argument
387 __glXExtensionsCtrScreen(psc); in __glXEnableDirectExtension()
390 name, strlen(name), GL_TRUE, psc->direct_support); in __glXEnableDirectExtension()
394 __ParseExtensionOverride(struct glx_screen *psc, in __ParseExtensionOverride() argument
456 __glXParseExtensionOverride(struct glx_screen *psc, const char *override) in __glXParseExtensionOverride() argument
458 __ParseExtensionOverride(psc, known_glx_extensions, psc->glx_force_enabled, in __glXParseExtensionOverride()
459 psc->glx_force_disabled, override); in __glXParseExtensionOverride()
475 __IndirectGlParseExtensionOverride(struct glx_screen *psc, const char *override) in __IndirectGlParseExtensionOverride() argument
477 __ParseExtensionOverride(psc, known_gl_extensions, psc->gl_force_enabled, in __IndirectGlParseExtensionOverride()
[all …]
Dindirect_glx.c155 Display *dpy = gc->psc->dpy; in indirect_bind_context()
158 if (old != &dummyContext && !old->isDirect && old->psc->dpy == dpy) { in indirect_bind_context()
182 gc->currentDpy = gc->psc->dpy; in indirect_bind_context()
196 Display *dpy = gc->psc->dpy; in indirect_unbind_context()
205 if (!new || new->isDirect || new->psc->dpy != dpy) { in indirect_unbind_context()
258 indirect_create_context(struct glx_screen *psc, in indirect_create_context() argument
265 return indirect_create_context_attribs(psc, mode, shareList, in indirect_create_context()
275 indirect_create_context_attribs(struct glx_screen *psc, in indirect_create_context_attribs() argument
291 opcode = __glXSetupForCommand(psc->dpy); in indirect_create_context_attribs()
329 glx_context_init(gc, psc, mode); in indirect_create_context_attribs()
[all …]
Dcreate_context.c54 struct glx_screen *psc; in glXCreateContextAttribsARB() local
89 psc = GetGLXScreenConfigs(dpy, screen); in glXCreateContextAttribsARB()
90 if (psc == NULL) in glXCreateContextAttribsARB()
93 assert(screen == psc->scr); in glXCreateContextAttribsARB()
95 if (direct && psc->vtable->create_context_attribs) { in glXCreateContextAttribsARB()
100 gc = psc->vtable->create_context_attribs(psc, cfg, share, num_attribs, in glXCreateContextAttribsARB()
107 gc = applegl_create_context(psc, cfg, share, 0); in glXCreateContextAttribsARB()
109 gc = indirect_create_context_attribs(psc, cfg, share, num_attribs, in glXCreateContextAttribsARB()
Dglxclient.h115 void (*destroyScreen)(struct glx_screen *psc);
117 __GLXDRIdrawable *(*createDrawable)(struct glx_screen *psc,
126 int (*getDrawableMSC)(struct glx_screen *psc, __GLXDRIdrawable *pdraw,
146 struct glx_screen *psc; member
294 struct glx_screen *psc; member
439 struct glx_screen *psc, struct glx_config *fbconfig);
479 struct glx_context *(*create_context)(struct glx_screen *psc,
484 struct glx_context *(*create_context_attribs)(struct glx_screen *psc,
490 int (*query_renderer_integer)(struct glx_screen *psc,
493 int (*query_renderer_string)(struct glx_screen *psc,
[all …]
Ddri_common.c307 driInferDrawableConfig(struct glx_screen *psc, GLXDrawable draw) in driInferDrawableConfig() argument
312 xcb_connection_t *conn = XGetXCBConnection(psc->dpy); in driInferDrawableConfig()
320 if (__glXGetDrawableAttribute(psc->dpy, draw, GLX_FBCONFIG_ID, &fbconfig)) { in driInferDrawableConfig()
321 return glx_config_find_fbconfig(psc->configs, fbconfig); in driInferDrawableConfig()
333 return glx_config_find_visual(psc->visuals, vid); in driInferDrawableConfig()
342 struct glx_display *const priv = __glXInitialize(gc->psc->dpy); in driFetchDrawable()
344 struct glx_screen *psc; in driFetchDrawable() local
353 psc = priv->screens[gc->screen]; in driFetchDrawable()
364 config = driInferDrawableConfig(gc->psc, glxDrawable); in driFetchDrawable()
368 pdraw = psc->driScreen->createDrawable(psc, glxDrawable, glxDrawable, in driFetchDrawable()
[all …]
Dglxextensions.h261 extern GLboolean __glXExtensionBitIsEnabled(struct glx_screen *psc,
264 extern void __glXCalculateUsableExtensions(struct glx_screen *psc,
268 extern void __glXParseExtensionOverride(struct glx_screen *psc,
270 extern void __IndirectGlParseExtensionOverride(struct glx_screen *psc,
280 __glXEnableDirectExtension(struct glx_screen *psc, const char *name);
Dglx_pbuffer.c177 struct glx_screen *psc; in CreateDRIDrawable() local
184 psc = priv->screens[config->screen]; in CreateDRIDrawable()
185 if (psc->driScreen == NULL) in CreateDRIDrawable()
188 pdraw = psc->driScreen->createDrawable(psc, drawable, in CreateDRIDrawable()
285 struct glx_screen *psc; in __glXGetDrawableAttribute() local
301 psc = pdraw->psc; in __glXGetDrawableAttribute()
303 if (psc->driScreen->getBufferAge != NULL) in __glXGetDrawableAttribute()
304 *value = psc->driScreen->getBufferAge(pdraw); in __glXGetDrawableAttribute()
311 *value = pdraw->psc->driScreen->getSwapInterval(pdraw); in __glXGetDrawableAttribute()
317 *value = __glXExtensionBitIsEnabled(pdraw->psc, in __glXGetDrawableAttribute()
/third_party/mesa3d/src/glx/tests/
Dfake_glx_screen.h69 fake_glx_context(struct glx_screen *psc, struct glx_config *mode) in fake_glx_context() argument
75 this->screen = psc->scr; in fake_glx_context()
76 this->psc = psc; in fake_glx_context()
103 fake_glx_context_direct(struct glx_screen *psc, struct glx_config *mode) in fake_glx_context_direct() argument
104 : fake_glx_context(psc, mode) in fake_glx_context_direct()
109 static glx_context *create(struct glx_screen *psc, struct glx_config *mode, in create() argument
115 return new fake_glx_context_direct(psc, mode); in create()
118 static glx_context *create_attribs(struct glx_screen *psc, in create_attribs() argument
130 return new fake_glx_context_direct(psc, mode); in create_attribs()
Dcreate_context_unittest.cpp39 struct glx_screen *psc; variable
43 struct glx_screen *psc, struct glx_config *config) in glx_context_init() argument
46 gc->screen = psc->scr; in glx_context_init()
47 gc->psc = psc; in glx_context_init()
64 return psc; in GetGLXScreenConfigs()
152 psc = new fake_glx_screen(NULL, 0, ""); in SetUp()
168 delete (fake_glx_screen *)psc; in TearDown()
177 new fake_glx_screen_direct(psc->display, in use_direct_rendering_screen()
178 psc->scr, in use_direct_rendering_screen()
179 psc->serverGLXexts); in use_direct_rendering_screen()
[all …]
Dquery_renderer_unittest.cpp31 extern struct glx_screen *psc;
57 fake_query_renderer_integer(struct glx_screen *psc, int attribute, in fake_query_renderer_integer() argument
60 (void) psc; in fake_query_renderer_integer()
70 fake_query_renderer_string(struct glx_screen *psc, int attribute, in fake_query_renderer_string() argument
73 (void) psc; in fake_query_renderer_string()
107 psc = &scr; in SetUp()
214 psc = NULL; in TEST_F()
371 psc = NULL; in TEST_F()
Dfake_glx_screen.cpp52 indirect_create_context(struct glx_screen *psc, struct glx_config *mode, in indirect_create_context() argument
58 return new fake_glx_context(psc, mode); in indirect_create_context()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/pae/
Dieee802_1x_kay.c467 ieee802_1x_kay_init_receive_sa(struct receive_sc *psc, u8 an, u32 lowest_pn, in ieee802_1x_kay_init_receive_sa() argument
472 if (!psc || !key) in ieee802_1x_kay_init_receive_sa()
486 psa->sc = psc; in ieee802_1x_kay_init_receive_sa()
491 dl_list_add(&psc->sa_list, &psa->list); in ieee802_1x_kay_init_receive_sa()
523 struct receive_sc *psc; in ieee802_1x_kay_init_receive_sc() local
528 psc = os_zalloc(sizeof(*psc)); in ieee802_1x_kay_init_receive_sc()
529 if (!psc) { in ieee802_1x_kay_init_receive_sc()
534 os_memcpy(&psc->sci, psci, sizeof(psc->sci)); in ieee802_1x_kay_init_receive_sc()
536 os_get_time(&psc->created_time); in ieee802_1x_kay_init_receive_sc()
537 psc->receiving = false; in ieee802_1x_kay_init_receive_sc()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/pae/
Dieee802_1x_kay.c467 ieee802_1x_kay_init_receive_sa(struct receive_sc *psc, u8 an, u32 lowest_pn, in ieee802_1x_kay_init_receive_sa() argument
472 if (!psc || !key) in ieee802_1x_kay_init_receive_sa()
486 psa->sc = psc; in ieee802_1x_kay_init_receive_sa()
491 dl_list_add(&psc->sa_list, &psa->list); in ieee802_1x_kay_init_receive_sa()
523 struct receive_sc *psc; in ieee802_1x_kay_init_receive_sc() local
528 psc = os_zalloc(sizeof(*psc)); in ieee802_1x_kay_init_receive_sc()
529 if (!psc) { in ieee802_1x_kay_init_receive_sc()
534 os_memcpy(&psc->sci, psci, sizeof(psc->sci)); in ieee802_1x_kay_init_receive_sc()
536 os_get_time(&psc->created_time); in ieee802_1x_kay_init_receive_sc()
537 psc->receiving = FALSE; in ieee802_1x_kay_init_receive_sc()
[all …]
/third_party/gstreamer/gstplugins_good/tests/check/elements/
Drtph261.c48 create_h261_payload (gint sbit, gint ebit, gint psc, gsize size) in create_h261_payload() argument
62 if (psc) { in create_h261_payload()
/third_party/gstreamer/gstplugins_bad/gst/videoparsers/
Dgsth263parse.c164 guint psc_pos = -1, psc; in find_psc() local
172 if (gst_byte_reader_peek_uint24_be (&br, &psc) == FALSE) in find_psc()
182 if (gst_byte_reader_peek_uint24_be (&br, &psc) && in find_psc()
183 ((psc & 0xfffffc) == 0x000080)) { in find_psc()

12