Lines Matching defs:glxc

249     __GLXcontext *glxc, *shareglxc;
319 glxc = pGlxScreen->createContext(pGlxScreen, config, shareglxc,
323 glxc = __glXdirectContextCreate(pGlxScreen, config, shareglxc);
324 if (!glxc) {
330 glxc->pGlxScreen = pGlxScreen;
331 glxc->config = config;
332 glxc->id = gcId;
333 glxc->share_id = shareList;
334 glxc->idExists = GL_TRUE;
335 glxc->isDirect = isDirect;
336 glxc->renderMode = GL_RENDER;
337 glxc->renderType = renderType;
347 glxc->resetNotificationStrategy = GLX_NO_RESET_NOTIFICATION_ARB;
359 glxc->releaseBehavior = GLX_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB;
364 if (!__glXAddContext(glxc)) {
365 (*glxc->destroy) (glxc);
435 __GLXcontext *glxc;
439 &glxc, &err))
442 glxc->idExists = GL_FALSE;
443 if (glxc->currentClient) {
444 XID ghost = FakeClientID(glxc->currentClient->index);
446 if (!AddResource(ghost, __glXContextRes, glxc))
448 ChangeResourceValue(glxc->id, __glXContextRes, NULL);
449 glxc->id = ghost;
482 __glXGetDrawable(__GLXcontext * glxc, GLXDrawable drawId, ClientPtr client,
500 if (glxc != NULL &&
501 glxc->config != NULL &&
502 glxc->config != pGlxDraw->config) {
512 if (glxc == NULL) {
530 pGlxScreen = glxc->pGlxScreen;
537 config = glxc->config;
583 __GLXcontext *glxc = NULL, *prevglxc = NULL;
611 if (!validGlxContext(client, contextId, DixUseAccess, &glxc, &error))
614 if ((glxc != prevglxc) && glxc->currentClient)
618 drawPriv = __glXGetDrawable(glxc, drawId, client, &status);
624 readPriv = __glXGetDrawable(glxc, readId, client, &status);
654 if (glxc && !glxc->isDirect) {
655 glxc->drawPriv = drawPriv;
656 glxc->readPriv = readPriv;
659 lastGLContext = glxc;
660 if (!(*glxc->makeCurrent) (glxc)) {
662 glxc->drawPriv = NULL;
663 glxc->readPriv = NULL;
668 glxServer.setContextTagPrivate(client, newContextTag, glxc);
669 if (glxc)
670 glxc->currentClient = client;
706 __GLXcontext *glxc;
709 if (!validGlxContext(cl->client, req->context, DixReadAccess, &glxc, &err))
716 .isDirect = glxc->isDirect
774 __GLXcontext *glxc = NULL;
779 glxc = __glXLookupContextByTag(cl, tag);
780 if (!glxc)
789 if (glxc && glxc->drawPriv && glxc->drawPriv->waitGL)
790 (*glxc->drawPriv->waitGL) (glxc->drawPriv);
800 __GLXcontext *glxc = NULL;
805 glxc = __glXLookupContextByTag(cl, tag);
806 if (!glxc)
813 if (glxc && glxc->drawPriv && glxc->drawPriv->waitX)
814 (*glxc->drawPriv->waitX) (glxc->drawPriv);
1621 __GLXcontext *glxc = NULL;
1628 glxc = __glXLookupContextByTag(cl, tag);
1629 if (!glxc) {
1649 pGlxDraw = __glXGetDrawable(glxc, drawId, client, &error);
1812 __GLXcontext *glxc = NULL;
1833 glxc = __glXLookupContextByTag(cl, tag);
1834 if (!glxc) {
1854 pGlxDraw = __glXGetDrawable(glxc, drawId, client, &error);
2012 __GLXcontext *glxc;
2024 glxc = __glXForceCurrent(cl, req->contextTag, &error);
2025 if (!glxc) {
2112 __GLXcontext *glxc;
2129 glxc = __glXForceCurrent(cl, req->contextTag, &error);
2130 if (!glxc) {
2143 ResetLargeCommandStatus(glxc);
2148 if (glxc->largeCmdRequestsSoFar == 0) {
2207 if (glxc->largeCmdBufSize < cmdlen) {
2208 GLbyte *newbuf = glxc->largeCmdBuf;
2213 glxc->largeCmdBuf = newbuf;
2214 glxc->largeCmdBufSize = cmdlen;
2216 memcpy(glxc->largeCmdBuf, pc, dataBytes);
2218 glxc->largeCmdBytesSoFar = dataBytes;
2219 glxc->largeCmdBytesTotal = cmdlen;
2220 glxc->largeCmdRequestsSoFar = 1;
2221 glxc->largeCmdRequestsTotal = req->requestTotal;
2235 if (req->requestNumber != glxc->largeCmdRequestsSoFar + 1) {
2237 ResetLargeCommandStatus(glxc);
2240 if (req->requestTotal != glxc->largeCmdRequestsTotal) {
2242 ResetLargeCommandStatus(glxc);
2249 if ((bytesSoFar = safe_add(glxc->largeCmdBytesSoFar, dataBytes)) < 0) {
2251 ResetLargeCommandStatus(glxc);
2255 if (bytesSoFar > glxc->largeCmdBytesTotal) {
2257 ResetLargeCommandStatus(glxc);
2261 memcpy(glxc->largeCmdBuf + glxc->largeCmdBytesSoFar, pc, dataBytes);
2262 glxc->largeCmdBytesSoFar += dataBytes;
2263 glxc->largeCmdRequestsSoFar++;
2265 if (req->requestNumber == glxc->largeCmdRequestsTotal) {
2281 if (safe_pad(glxc->largeCmdBytesSoFar) != glxc->largeCmdBytesTotal) {
2283 ResetLargeCommandStatus(glxc);
2286 hdr = (__GLXrenderLargeHeader *) glxc->largeCmdBuf;
2306 (*proc) (glxc->largeCmdBuf + __GLX_RENDER_LARGE_HDR_SIZE);
2311 ResetLargeCommandStatus(glxc);