Lines Matching refs:pDRIContextPriv
365 DRIContextPrivPtr pDRIContextPriv; in DRIScreenInit() local
550 if (!(pDRIContextPriv = DRICreateContextPriv(pScreen, in DRIScreenInit()
556 pDRIPriv->myContextPriv = pDRIContextPriv; in DRIScreenInit()
583 DRIDestroyContextPriv(pDRIContextPriv); in DRIScreenInit()
594 DRIDestroyContextPriv(pDRIContextPriv); in DRIScreenInit()
618 DRIDestroyContextPriv(pDRIContextPriv); in DRIScreenInit()
931 DRIContextPrivPtr pDRIContextPriv; in DRICreateContextPrivFromHandle() local
936 if (!(pDRIContextPriv = calloc(1, contextPrivSize))) { in DRICreateContextPrivFromHandle()
939 pDRIContextPriv->pContextStore = (void *) (pDRIContextPriv + 1); in DRICreateContextPrivFromHandle()
941 drmAddContextTag(pDRIPriv->drmFD, hHWContext, pDRIContextPriv); in DRICreateContextPrivFromHandle()
943 pDRIContextPriv->hwContext = hHWContext; in DRICreateContextPrivFromHandle()
944 pDRIContextPriv->pScreen = pScreen; in DRICreateContextPrivFromHandle()
945 pDRIContextPriv->flags = flags; in DRICreateContextPrivFromHandle()
946 pDRIContextPriv->valid3D = FALSE; in DRICreateContextPrivFromHandle()
952 DRIDestroyContextPriv(pDRIContextPriv); in DRICreateContextPrivFromHandle()
961 DRIDestroyContextPriv(pDRIContextPriv); in DRICreateContextPrivFromHandle()
965 return pDRIContextPriv; in DRICreateContextPrivFromHandle()
969 DRIDestroyContextPriv(DRIContextPrivPtr pDRIContextPriv) in DRIDestroyContextPriv() argument
973 if (!pDRIContextPriv) in DRIDestroyContextPriv()
976 pDRIPriv = DRI_SCREEN_PRIV(pDRIContextPriv->pScreen); in DRIDestroyContextPriv()
978 if (!(pDRIContextPriv->flags & DRI_CONTEXT_RESERVED)) { in DRIDestroyContextPriv()
982 if (drmDestroyContext(pDRIPriv->drmFD, pDRIContextPriv->hwContext)) in DRIDestroyContextPriv()
991 drmDelContextTag(pDRIPriv->drmFD, pDRIContextPriv->hwContext); in DRIDestroyContextPriv()
992 free(pDRIContextPriv); in DRIDestroyContextPriv()
1000 DRIContextPrivPtr pDRIContextPriv; in DRICreateDummyContext() local
1003 if (!(pDRIContextPriv = in DRICreateDummyContext()
1008 contextStore = DRIGetContextStore(pDRIContextPriv); in DRICreateDummyContext()
1015 DRIDestroyContextPriv(pDRIContextPriv); in DRICreateDummyContext()
1020 pDRIPriv->dummyCtxPriv = pDRIContextPriv; in DRICreateDummyContext()
1028 DRIContextPrivPtr pDRIContextPriv = pDRIPriv->dummyCtxPriv; in DRIDestroyDummyContext() local
1031 if (!pDRIContextPriv) in DRIDestroyDummyContext()
1034 contextStore = DRIGetContextStore(pDRIContextPriv); in DRIDestroyDummyContext()
1035 pDRIPriv->pDriverInfo->DestroyContext(pDRIContextPriv->pScreen, in DRIDestroyDummyContext()
1036 pDRIContextPriv->hwContext, in DRIDestroyDummyContext()
1050 DRIContextPrivPtr pDRIContextPriv; in DRICreateContext() local
1061 if (!(pDRIContextPriv = DRICreateContextPriv(pScreen, pHWContext, 0))) { in DRICreateContext()
1065 contextStore = DRIGetContextStore(pDRIContextPriv); in DRICreateContext()
1071 DRIDestroyContextPriv(pDRIContextPriv); in DRICreateContext()
1077 if (!AddResource(context, DRIContextPrivResType, (void *) pDRIContextPriv)) in DRICreateContext()
1095 DRIContextPrivPtr pDRIContextPriv = (DRIContextPrivPtr) pResource; in DRIContextPrivDelete() local
1099 pDRIPriv = DRI_SCREEN_PRIV(pDRIContextPriv->pScreen); in DRIContextPrivDelete()
1101 contextStore = DRIGetContextStore(pDRIContextPriv); in DRIContextPrivDelete()
1102 pDRIPriv->pDriverInfo->DestroyContext(pDRIContextPriv->pScreen, in DRIContextPrivDelete()
1103 pDRIContextPriv->hwContext, in DRIContextPrivDelete()
1107 return DRIDestroyContextPriv(pDRIContextPriv); in DRIContextPrivDelete()