Lines Matching refs:pDraw

505     DrawablePtr pDraw;  in __glXBindSwapBarrierSGIX()  local
510 rc = dixLookupDrawable(&pDraw, req->drawable, client, 0, DixGetAttrAccess); in __glXBindSwapBarrierSGIX()
515 pDraw = pGlxPixmap->pDraw; in __glXBindSwapBarrierSGIX()
518 if (!pDraw && __GLX_IS_VERSION_SUPPORTED(1, 3)) { in __glXBindSwapBarrierSGIX()
522 pDraw = pGlxWindow->pDraw; in __glXBindSwapBarrierSGIX()
525 if (!pDraw) { in __glXBindSwapBarrierSGIX()
530 return BindSwapBarrierSGIX(pDraw, req->barrier); in __glXBindSwapBarrierSGIX()
538 DrawablePtr pDraw, pMember = NULL; in __glXJoinSwapGroupSGIX() local
543 rc = dixLookupDrawable(&pDraw, req->drawable, client, 0, DixManageAccess); in __glXJoinSwapGroupSGIX()
548 pDraw = pGlxPixmap->pDraw; in __glXJoinSwapGroupSGIX()
551 if (!pDraw && __GLX_IS_VERSION_SUPPORTED(1, 3)) { in __glXJoinSwapGroupSGIX()
555 pDraw = pGlxWindow->pDraw; in __glXJoinSwapGroupSGIX()
558 if (!pDraw) { in __glXJoinSwapGroupSGIX()
571 pMember = pGlxPixmap->pDraw; in __glXJoinSwapGroupSGIX()
579 pMember = pGlxWindow->pDraw; in __glXJoinSwapGroupSGIX()
588 return JoinSwapGroupSGIX(pDraw, pMember); in __glXJoinSwapGroupSGIX()
663 AddCurrentContext(__GLXclientState * cl, __GLXcontext * glxc, DrawablePtr pDraw) in AddCurrentContext() argument
699 cl->currentDrawables[num] = pDraw; in AddCurrentContext()
814 DrawablePtr pDraw = NULL; in MakeCurrent() local
892 rc = dixLookupDrawable(&pDraw, drawId, client, 0, DixWriteAccess); in MakeCurrent()
894 if (pDraw->type == DRAWABLE_WINDOW) { in MakeCurrent()
900 pWin = (WindowPtr) pDraw; in MakeCurrent()
929 if (!pDraw) { in MakeCurrent()
942 pDraw = pGlxPixmap->pDraw; in MakeCurrent()
954 if (!pDraw && __GLX_IS_VERSION_SUPPORTED(1, 3)) { in MakeCurrent()
970 pDraw = pGlxWindow->pDraw; in MakeCurrent()
977 if (!pDraw && __GLX_IS_VERSION_SUPPORTED(1, 3)) { in MakeCurrent()
988 pDraw = (DrawablePtr) pGlxPbuffer; in MakeCurrent()
994 if (!pDraw) { in MakeCurrent()
1004 pDraw = 0; in MakeCurrent()
1016 pReadWin = (WindowPtr) pDraw; in MakeCurrent()
1057 pReadDraw = pReadGlxPixmap->pDraw; in MakeCurrent()
1082 pReadDraw = pGlxReadWindow->pDraw; in MakeCurrent()
1115 pReadDraw = pDraw; in MakeCurrent()
1183 tag = AddCurrentContext(cl, glxc, pDraw); in MakeCurrent()
1230 if (pDraw && new_reply.writeType != GLX_PBUFFER_TYPE) { in MakeCurrent()
1232 pDraw->id, XRC_DRAWABLE, in MakeCurrent()
1236 if (pReadDraw && pReadDraw != pDraw && in MakeCurrent()
1269 pWin = (WindowPtr) pGlxWindow->pDraw; in MakeCurrent()
1327 pReadWin = (WindowPtr) pGlxReadWindow->pDraw; in MakeCurrent()
1786 DrawablePtr pDraw; in CreateGLXPixmap() local
1800 rc = dixLookupDrawable(&pDraw, pixmapId, client, M_DRAWABLE_PIXMAP, in CreateGLXPixmap()
1808 pScreen = pDraw->pScreen; in CreateGLXPixmap()
1846 if (pVisual->nplanes != pDraw->depth) { in CreateGLXPixmap()
1885 pGlxScreen = &__glXActiveScreens[pDraw->pScreen->myNum]; in CreateGLXPixmap()
1898 pGlxPixmap->pDraw = pDraw; in CreateGLXPixmap()
1909 ((PixmapPtr) pDraw)->refcnt++; in CreateGLXPixmap()
1921 pDraw->id, XRC_DRAWABLE, in CreateGLXPixmap()
1931 DrawablePtr pRealDraw = pDraw; in CreateGLXPixmap()
2060 from_screen = to_screen = pGlxPixmap->pDraw->pScreen->myNum; in __glXDestroyGLXPixmap()
2098 DrawablePtr pDraw; in __glXDoSwapBuffers() local
2115 rc = dixLookupDrawable(&pDraw, drawId, client, 0, DixWriteAccess); in __glXDoSwapBuffers()
2117 from_screen = to_screen = pDraw->pScreen->myNum; in __glXDoSwapBuffers()
2119 if (pDraw->type == DRAWABLE_WINDOW) { in __glXDoSwapBuffers()
2123 pWin = (WindowPtr) pDraw; in __glXDoSwapBuffers()
2134 if (!pDraw) { in __glXDoSwapBuffers()
2141 pDraw = pGlxPixmap->pDraw; in __glXDoSwapBuffers()
2146 if (!pDraw && __GLX_IS_VERSION_SUPPORTED(1, 3)) { in __glXDoSwapBuffers()
2153 pDraw = pGlxWindow->pDraw; in __glXDoSwapBuffers()
2158 if (!pDraw) { in __glXDoSwapBuffers()
2178 pDraw->id, XRC_DRAWABLE, in __glXDoSwapBuffers()
2227 pWin = (WindowPtr) pGlxWindow->pDraw; in __glXDoSwapBuffers()
2261 DrawablePtr pDraw; in __glXSwapBuffers() local
2273 rc = dixLookupDrawable(&pDraw, drawId, client, 0, DixWriteAccess); in __glXSwapBuffers()
2275 if (pDraw->type != DRAWABLE_WINDOW) { in __glXSwapBuffers()
2284 if (!pDraw) { in __glXSwapBuffers()
2291 pDraw = pGlxPixmap->pDraw; in __glXSwapBuffers()
2295 if (!pDraw && __GLX_IS_VERSION_SUPPORTED(1, 3)) { in __glXSwapBuffers()
2302 pDraw = pGlxWindow->pDraw; in __glXSwapBuffers()
2306 if (!pDraw) { in __glXSwapBuffers()
2321 if (pDraw && in __glXSwapBuffers()
2322 pDraw->type == DRAWABLE_WINDOW && in __glXSwapBuffers()
2323 DMX_GET_WINDOW_PRIV((WindowPtr) pDraw)->swapGroup) { in __glXSwapBuffers()
2324 return SGSwapBuffers(cl, drawId, tag, pDraw); in __glXSwapBuffers()
3069 DrawablePtr pDraw; in __glXCreateWindow() local
3081 rc = dixLookupDrawable(&pDraw, windowId, client, M_DRAWABLE_WINDOW, in __glXCreateWindow()
3089 pScreen = pDraw->pScreen; in __glXCreateWindow()
3129 if (pVisual->nplanes != pDraw->depth) { in __glXCreateWindow()
3162 pGlxWindow->pDraw = pDraw; in __glXCreateWindow()
3478 DrawablePtr pDraw = NULL; in __glXGetDrawableAttributes() local
3490 rc = dixLookupDrawable(&pDraw, drawId, client, 0, DixGetAttrAccess); in __glXGetDrawableAttributes()
3491 if (rc == Success && pDraw->type == DRAWABLE_WINDOW) { in __glXGetDrawableAttributes()
3492 WindowPtr pWin = (WindowPtr) pDraw; in __glXGetDrawableAttributes()
3505 if (!pDraw) { in __glXGetDrawableAttributes()
3512 pDraw = pGlxPixmap->pDraw; in __glXGetDrawableAttributes()
3518 if (!pDraw) { in __glXGetDrawableAttributes()
3525 pDraw = pGlxWindow->pDraw; in __glXGetDrawableAttributes()
3531 if (!pDraw) { in __glXGetDrawableAttributes()
3538 pDraw = (DrawablePtr) pGlxPbuffer; in __glXGetDrawableAttributes()
3545 if (!pDraw) { in __glXGetDrawableAttributes()
3557 WindowPtr pWin = (WindowPtr) pDraw; in __glXGetDrawableAttributes()
3562 pDraw->id, XRC_DRAWABLE, in __glXGetDrawableAttributes()
3648 DrawablePtr pDraw = NULL; in __glXChangeDrawableAttributes() local
3654 rc = dixLookupDrawable(&pDraw, drawId, client, 0, DixSetAttrAccess); in __glXChangeDrawableAttributes()
3655 if (rc == Success && pDraw->type == DRAWABLE_WINDOW) { in __glXChangeDrawableAttributes()
3657 screen = pDraw->pScreen->myNum; in __glXChangeDrawableAttributes()
3667 if (!pDraw) { in __glXChangeDrawableAttributes()
3674 pDraw = pGlxPixmap->pDraw; in __glXChangeDrawableAttributes()
3680 if (!pDraw) { in __glXChangeDrawableAttributes()
3687 pDraw = pGlxWindow->pDraw; in __glXChangeDrawableAttributes()
3693 if (!pDraw) { in __glXChangeDrawableAttributes()
3700 pDraw = (DrawablePtr) pGlxPbuffer; in __glXChangeDrawableAttributes()
3707 if (!pDraw) { in __glXChangeDrawableAttributes()
3719 WindowPtr pWin = (WindowPtr) pDraw; in __glXChangeDrawableAttributes()
3726 pDraw->id, XRC_DRAWABLE, in __glXChangeDrawableAttributes()