Home
last modified time | relevance | path

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

12

/external/chromium_org/third_party/mesa/src/src/glx/
Ddri2_glx.c125 struct dri2_screen *psc = (struct dri2_screen *) context->psc; in dri2_destroy_context() local
132 (*psc->core->destroyContext) (pcp->driContext); in dri2_destroy_context()
142 struct dri2_screen *psc = (struct dri2_screen *) pcp->base.psc; in dri2_bind_context() local
154 if (!(*psc->core->bindContext) (pcp->driContext, in dri2_bind_context()
161 pdp = (struct dri2_display *) psc->base.display; in dri2_bind_context()
163 dri2InvalidateBuffers(psc->base.dpy, pdraw->base.xDrawable); in dri2_bind_context()
165 dri2InvalidateBuffers(psc->base.dpy, pread->base.xDrawable); in dri2_bind_context()
175 struct dri2_screen *psc = (struct dri2_screen *) pcp->base.psc; in dri2_unbind_context() local
177 (*psc->core->unbindContext) (pcp->driContext); in dri2_unbind_context()
186 struct dri2_screen *psc = (struct dri2_screen *) base; in dri2_create_context() local
[all …]
Ddrisw_glx.c138 Display *dpy = pdraw->psc->dpy; in swrastGetDrawableInfo()
180 Display *dpy = pdraw->psc->dpy; in swrastPutImage()
216 Display *dpy = pread->psc->dpy; in swrastGetImage()
254 struct drisw_screen *psc = (struct drisw_screen *) context->psc; in drisw_destroy_context() local
261 (*psc->core->destroyContext) (pcp->driContext); in drisw_destroy_context()
271 struct drisw_screen *psc = (struct drisw_screen *) pcp->base.psc; in drisw_bind_context() local
282 if ((*psc->core->bindContext) (pcp->driContext, in drisw_bind_context()
293 struct drisw_screen *psc = (struct drisw_screen *) pcp->base.psc; in drisw_unbind_context() local
295 (*psc->core->unbindContext) (pcp->driContext); in drisw_unbind_context()
307 struct drisw_screen *psc; in drisw_bind_tex_image() local
[all …]
Ddri_glx.c228 struct glx_screen *psc = glxDraw->psc; in __glXReportDamage() local
229 Display *dpy = psc->dpy; in __glXReportDamage()
238 drawable = RootWindow(dpy, psc->scr); in __glXReportDamage()
280 struct glx_screen *psc = glxDraw->psc; in __glXDRIGetDrawableInfo() local
281 Display *dpy = psc->dpy; in __glXDRIGetDrawableInfo()
283 return XF86DRIGetDrawableInfo(dpy, psc->scr, glxDraw->drawable, in __glXDRIGetDrawableInfo()
318 CallCreateNewScreen(Display *dpy, int scrn, struct dri_screen *psc, in CallCreateNewScreen() argument
434 psp = (*psc->legacy->createNewScreen) (scrn, in CallCreateNewScreen()
442 &driver_configs, psc); in CallCreateNewScreen()
449 configs = driConvertConfigs(psc->core, psc->base.configs, driver_configs); in CallCreateNewScreen()
[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()
124 applegl_create_context(struct glx_screen *psc, in applegl_create_context() argument
131 Display *dpy = psc->dpy; in applegl_create_context()
132 int screen = psc->scr; in applegl_create_context()
141 if (!glx_context_init(gc, psc, config)) { in applegl_create_context()
174 struct glx_screen *psc; in applegl_create_screen() local
176 psc = Xmalloc(sizeof *psc); in applegl_create_screen()
[all …]
Dglxcmds.c231 struct glx_screen *psc, struct glx_config *config) in glx_context_init() argument
233 gc->majorOpcode = __glXSetupForCommand(psc->display->dpy); in glx_context_init()
237 gc->screen = psc->scr; in glx_context_init()
238 gc->psc = psc; in glx_context_init()
259 struct glx_screen *psc; in CreateContext() local
264 psc = GetGLXScreenConfigs(dpy, screen); in CreateContext()
265 if (psc == NULL) in CreateContext()
273 gc = applegl_create_context(psc, config, shareList, renderType); in CreateContext()
275 if (allowDirect && psc->vtable->create_context) in CreateContext()
276 gc = psc->vtable->create_context(psc, config, shareList, renderType); in CreateContext()
[all …]
Dglxext.c199 struct glx_screen *psc; in FreeScreenConfigs() local
205 psc = priv->screens[i]; in FreeScreenConfigs()
206 glx_screen_cleanup(psc); in FreeScreenConfigs()
209 if (psc->driScreen) { in FreeScreenConfigs()
210 psc->driScreen->destroyScreen(psc); in FreeScreenConfigs()
212 Xfree(psc); in FreeScreenConfigs()
215 Xfree(psc); in FreeScreenConfigs()
650 getVisualConfigs(struct glx_screen *psc, in getVisualConfigs() argument
659 psc->visuals = NULL; in getVisualConfigs()
668 psc->visuals = createConfigsFromProperties(dpy, in getVisualConfigs()
[all …]
Dcreate_context.c46 struct glx_screen *psc; in glXCreateContextAttribsARB() local
59 psc = GetGLXScreenConfigs(dpy, cfg->screen); in glXCreateContextAttribsARB()
60 if (psc == NULL) in glXCreateContextAttribsARB()
63 assert(cfg->screen == psc->scr); in glXCreateContextAttribsARB()
73 if (direct && psc->vtable->create_context_attribs) { in glXCreateContextAttribsARB()
78 gc = psc->vtable->create_context_attribs(psc, cfg, share, num_attribs, in glXCreateContextAttribsARB()
85 gc = applegl_create_context(psc, cfg, share, 0); in glXCreateContextAttribsARB()
87 gc = indirect_create_context(psc, cfg, share, 0); in glXCreateContextAttribsARB()
Dindirect_glx.c134 Display *dpy = gc->psc->dpy; in indirect_bind_context()
137 if (old != &dummyContext && !old->isDirect && old->psc->dpy == dpy) { in indirect_bind_context()
164 Display *dpy = gc->psc->dpy; in indirect_unbind_context()
175 if (!new || new->isDirect || new->psc->dpy != dpy) { in indirect_unbind_context()
344 indirect_create_context(struct glx_screen *psc, in indirect_create_context() argument
353 opcode = __glXSetupForCommand(psc->dpy); in indirect_create_context()
366 glx_context_init(gc, psc, mode); in indirect_create_context()
386 bufSize = (XMaxRequestSize(psc->dpy) * 4) - sz_xGLXRenderReq; in indirect_create_context()
469 struct glx_screen *psc; in indirect_create_screen() local
471 psc = Xmalloc(sizeof *psc); in indirect_create_screen()
[all …]
Dglxclient.h103 void (*destroyScreen)(struct glx_screen *psc);
105 struct glx_context *(*createContext)(struct glx_screen *psc,
110 __GLXDRIdrawable *(*createDrawable)(struct glx_screen *psc,
119 int (*getDrawableMSC)(struct glx_screen *psc, __GLXDRIdrawable *pdraw,
136 struct glx_screen *psc; member
278 struct glx_screen *psc; member
424 struct glx_screen *psc, struct glx_config *fbconfig);
466 struct glx_context *(*create_context)(struct glx_screen *psc,
471 struct glx_context *(*create_context_attribs)(struct glx_screen *psc,
597 glx_screen_init(struct glx_screen *psc,
[all …]
/external/mesa3d/src/glx/
Ddri2_glx.c125 struct dri2_screen *psc = (struct dri2_screen *) context->psc; in dri2_destroy_context() local
132 (*psc->core->destroyContext) (pcp->driContext); in dri2_destroy_context()
142 struct dri2_screen *psc = (struct dri2_screen *) pcp->base.psc; in dri2_bind_context() local
154 if (!(*psc->core->bindContext) (pcp->driContext, in dri2_bind_context()
161 pdp = (struct dri2_display *) psc->base.display; in dri2_bind_context()
163 dri2InvalidateBuffers(psc->base.dpy, pdraw->base.xDrawable); in dri2_bind_context()
165 dri2InvalidateBuffers(psc->base.dpy, pread->base.xDrawable); in dri2_bind_context()
175 struct dri2_screen *psc = (struct dri2_screen *) pcp->base.psc; in dri2_unbind_context() local
177 (*psc->core->unbindContext) (pcp->driContext); in dri2_unbind_context()
186 struct dri2_screen *psc = (struct dri2_screen *) base; in dri2_create_context() local
[all …]
Ddrisw_glx.c138 Display *dpy = pdraw->psc->dpy; in swrastGetDrawableInfo()
180 Display *dpy = pdraw->psc->dpy; in swrastPutImage()
216 Display *dpy = pread->psc->dpy; in swrastGetImage()
254 struct drisw_screen *psc = (struct drisw_screen *) context->psc; in drisw_destroy_context() local
261 (*psc->core->destroyContext) (pcp->driContext); in drisw_destroy_context()
271 struct drisw_screen *psc = (struct drisw_screen *) pcp->base.psc; in drisw_bind_context() local
282 if ((*psc->core->bindContext) (pcp->driContext, in drisw_bind_context()
293 struct drisw_screen *psc = (struct drisw_screen *) pcp->base.psc; in drisw_unbind_context() local
295 (*psc->core->unbindContext) (pcp->driContext); in drisw_unbind_context()
307 struct drisw_screen *psc; in drisw_bind_tex_image() local
[all …]
Ddri_glx.c228 struct glx_screen *psc = glxDraw->psc; in __glXReportDamage() local
229 Display *dpy = psc->dpy; in __glXReportDamage()
238 drawable = RootWindow(dpy, psc->scr); in __glXReportDamage()
280 struct glx_screen *psc = glxDraw->psc; in __glXDRIGetDrawableInfo() local
281 Display *dpy = psc->dpy; in __glXDRIGetDrawableInfo()
283 return XF86DRIGetDrawableInfo(dpy, psc->scr, glxDraw->drawable, in __glXDRIGetDrawableInfo()
318 CallCreateNewScreen(Display *dpy, int scrn, struct dri_screen *psc, in CallCreateNewScreen() argument
434 psp = (*psc->legacy->createNewScreen) (scrn, in CallCreateNewScreen()
442 &driver_configs, psc); in CallCreateNewScreen()
449 configs = driConvertConfigs(psc->core, psc->base.configs, driver_configs); in CallCreateNewScreen()
[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()
124 applegl_create_context(struct glx_screen *psc, in applegl_create_context() argument
131 Display *dpy = psc->dpy; in applegl_create_context()
132 int screen = psc->scr; in applegl_create_context()
141 if (!glx_context_init(gc, psc, config)) { in applegl_create_context()
174 struct glx_screen *psc; in applegl_create_screen() local
176 psc = Xmalloc(sizeof *psc); in applegl_create_screen()
[all …]
Dglxcmds.c231 struct glx_screen *psc, struct glx_config *config) in glx_context_init() argument
233 gc->majorOpcode = __glXSetupForCommand(psc->display->dpy); in glx_context_init()
237 gc->screen = psc->scr; in glx_context_init()
238 gc->psc = psc; in glx_context_init()
259 struct glx_screen *psc; in CreateContext() local
264 psc = GetGLXScreenConfigs(dpy, screen); in CreateContext()
265 if (psc == NULL) in CreateContext()
273 gc = applegl_create_context(psc, config, shareList, renderType); in CreateContext()
275 if (allowDirect && psc->vtable->create_context) in CreateContext()
276 gc = psc->vtable->create_context(psc, config, shareList, renderType); in CreateContext()
[all …]
Dglxext.c199 struct glx_screen *psc; in FreeScreenConfigs() local
205 psc = priv->screens[i]; in FreeScreenConfigs()
206 glx_screen_cleanup(psc); in FreeScreenConfigs()
209 if (psc->driScreen) { in FreeScreenConfigs()
210 psc->driScreen->destroyScreen(psc); in FreeScreenConfigs()
212 Xfree(psc); in FreeScreenConfigs()
215 Xfree(psc); in FreeScreenConfigs()
650 getVisualConfigs(struct glx_screen *psc, in getVisualConfigs() argument
659 psc->visuals = NULL; in getVisualConfigs()
668 psc->visuals = createConfigsFromProperties(dpy, in getVisualConfigs()
[all …]
Dcreate_context.c46 struct glx_screen *psc; in glXCreateContextAttribsARB() local
59 psc = GetGLXScreenConfigs(dpy, cfg->screen); in glXCreateContextAttribsARB()
60 if (psc == NULL) in glXCreateContextAttribsARB()
63 assert(cfg->screen == psc->scr); in glXCreateContextAttribsARB()
73 if (direct && psc->vtable->create_context_attribs) { in glXCreateContextAttribsARB()
78 gc = psc->vtable->create_context_attribs(psc, cfg, share, num_attribs, in glXCreateContextAttribsARB()
85 gc = applegl_create_context(psc, cfg, share, 0); in glXCreateContextAttribsARB()
87 gc = indirect_create_context(psc, cfg, share, 0); in glXCreateContextAttribsARB()
Dindirect_glx.c134 Display *dpy = gc->psc->dpy; in indirect_bind_context()
137 if (old != &dummyContext && !old->isDirect && old->psc->dpy == dpy) { in indirect_bind_context()
164 Display *dpy = gc->psc->dpy; in indirect_unbind_context()
175 if (!new || new->isDirect || new->psc->dpy != dpy) { in indirect_unbind_context()
344 indirect_create_context(struct glx_screen *psc, in indirect_create_context() argument
353 opcode = __glXSetupForCommand(psc->dpy); in indirect_create_context()
366 glx_context_init(gc, psc, mode); in indirect_create_context()
386 bufSize = (XMaxRequestSize(psc->dpy) * 4) - sz_xGLXRenderReq; in indirect_create_context()
469 struct glx_screen *psc; in indirect_create_screen() local
471 psc = Xmalloc(sizeof *psc); in indirect_create_screen()
[all …]
Dglxclient.h103 void (*destroyScreen)(struct glx_screen *psc);
105 struct glx_context *(*createContext)(struct glx_screen *psc,
110 __GLXDRIdrawable *(*createDrawable)(struct glx_screen *psc,
119 int (*getDrawableMSC)(struct glx_screen *psc, __GLXDRIdrawable *pdraw,
136 struct glx_screen *psc; member
278 struct glx_screen *psc; member
424 struct glx_screen *psc, struct glx_config *fbconfig);
466 struct glx_context *(*create_context)(struct glx_screen *psc,
471 struct glx_context *(*create_context_attribs)(struct glx_screen *psc,
597 glx_screen_init(struct glx_screen *psc,
[all …]
/external/chromium_org/third_party/mesa/src/src/glx/tests/
Dfake_glx_screen.h71 fake_glx_context(struct glx_screen *psc, struct glx_config *mode) in fake_glx_context() argument
77 this->screen = psc->scr; in fake_glx_context()
78 this->psc = psc; in fake_glx_context()
91 static glx_context *create_attribs(struct glx_screen *psc, in create_attribs() argument
103 return new fake_glx_context(psc, mode); in create_attribs()
120 fake_glx_context_direct(struct glx_screen *psc, struct glx_config *mode) in fake_glx_context_direct() argument
121 : fake_glx_context(psc, mode) in fake_glx_context_direct()
126 static glx_context *create(struct glx_screen *psc, struct glx_config *mode, in create() argument
132 return new fake_glx_context_direct(psc, mode); in create()
135 static glx_context *create_attribs(struct glx_screen *psc, in create_attribs() argument
[all …]
Dcreate_context_unittest.cpp41 struct glx_screen *psc; variable
45 struct glx_screen *psc, struct glx_config *config) in glx_context_init() argument
48 gc->screen = psc->scr; in glx_context_init()
49 gc->psc = psc; in glx_context_init()
62 return psc; in GetGLXScreenConfigs()
139 psc = new fake_glx_screen(NULL, 0, ""); in SetUp()
151 new fake_glx_screen_direct(psc->display, in use_direct_rendering_screen()
152 psc->scr, in use_direct_rendering_screen()
153 psc->serverGLXexts); in use_direct_rendering_screen()
155 delete psc; in use_direct_rendering_screen()
[all …]
/external/mesa3d/src/glx/tests/
Dfake_glx_screen.h71 fake_glx_context(struct glx_screen *psc, struct glx_config *mode) in fake_glx_context() argument
77 this->screen = psc->scr; in fake_glx_context()
78 this->psc = psc; in fake_glx_context()
91 static glx_context *create_attribs(struct glx_screen *psc, in create_attribs() argument
103 return new fake_glx_context(psc, mode); in create_attribs()
120 fake_glx_context_direct(struct glx_screen *psc, struct glx_config *mode) in fake_glx_context_direct() argument
121 : fake_glx_context(psc, mode) in fake_glx_context_direct()
126 static glx_context *create(struct glx_screen *psc, struct glx_config *mode, in create() argument
132 return new fake_glx_context_direct(psc, mode); in create()
135 static glx_context *create_attribs(struct glx_screen *psc, in create_attribs() argument
[all …]
Dcreate_context_unittest.cpp41 struct glx_screen *psc; variable
45 struct glx_screen *psc, struct glx_config *config) in glx_context_init() argument
48 gc->screen = psc->scr; in glx_context_init()
49 gc->psc = psc; in glx_context_init()
62 return psc; in GetGLXScreenConfigs()
139 psc = new fake_glx_screen(NULL, 0, ""); in SetUp()
151 new fake_glx_screen_direct(psc->display, in use_direct_rendering_screen()
152 psc->scr, in use_direct_rendering_screen()
153 psc->serverGLXexts); in use_direct_rendering_screen()
155 delete psc; in use_direct_rendering_screen()
[all …]
/external/mesa3d/src/gallium/state_trackers/egl/x11/
Dglxinit.c190 __GLXscreenConfigs *psc; in FreeScreenConfigs() local
196 psc = priv->screenConfigs[i]; in FreeScreenConfigs()
197 if (!psc) in FreeScreenConfigs()
199 if (psc->configs) { in FreeScreenConfigs()
200 _gl_context_modes_destroy(psc->configs); in FreeScreenConfigs()
201 psc->configs = NULL; /* NOTE: just for paranoia */ in FreeScreenConfigs()
203 Xfree((char *) psc->serverGLXexts); in FreeScreenConfigs()
515 getFBConfigs(__GLXscreenConfigs *psc, __GLXdisplayPrivate *priv, int screen) in getFBConfigs() argument
523 psc->serverGLXexts = in getFBConfigs()
528 psc->configs = NULL; in getFBConfigs()
[all …]
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/egl/x11/
Dglxinit.c190 __GLXscreenConfigs *psc; in FreeScreenConfigs() local
196 psc = priv->screenConfigs[i]; in FreeScreenConfigs()
197 if (!psc) in FreeScreenConfigs()
199 if (psc->configs) { in FreeScreenConfigs()
200 _gl_context_modes_destroy(psc->configs); in FreeScreenConfigs()
201 psc->configs = NULL; /* NOTE: just for paranoia */ in FreeScreenConfigs()
203 Xfree((char *) psc->serverGLXexts); in FreeScreenConfigs()
515 getFBConfigs(__GLXscreenConfigs *psc, __GLXdisplayPrivate *priv, int screen) in getFBConfigs() argument
523 psc->serverGLXexts = in getFBConfigs()
528 psc->configs = NULL; in getFBConfigs()
[all …]
/external/chromium_org/v8/tools/profviz/
Dstdio.js51 var psc = new PlotScriptComposer(kResX, kResY, log_error); variable
52 psc.collectData(readline, distortion_per_entry);
53 psc.findPlotRange(range_start_override, range_end_override);
56 psc.assembleOutput(print);

12