Lines Matching refs:pTex

267 DECLINLINE(void) CrTdInit(PCR_TEXDATA pTex, PCVBOXVR_TEXTURE pVrTex, PCR_BLITTER pBlitter, PFNCRTEXDATA_RELEASED pfnTextureReleased)
269 memset(pTex, 0, sizeof (*pTex));
270 pTex->Tex = *pVrTex;
271 pTex->cRefs = 1;
272 pTex->pBlitter = pBlitter;
273 pTex->pfnTextureReleased = pfnTextureReleased;
276 DECLINLINE(PCVBOXVR_TEXTURE) CrTdTexGet(PCCR_TEXDATA pTex)
278 return &pTex->Tex;
281 DECLINLINE(PCR_BLITTER) CrTdBlitterGet(PCR_TEXDATA pTex)
283 return pTex->pBlitter;
286 DECLINLINE(int) CrTdBltEnter(PCR_TEXDATA pTex)
289 if (pTex->Flags.Entered)
291 rc = CrBltEnter(pTex->pBlitter);
301 pTex->Flags.Entered = 1;
305 DECLINLINE(bool) CrTdBltIsEntered(PCR_TEXDATA pTex)
307 return pTex->Flags.Entered;
310 DECLINLINE(void) CrTdBltLeave(PCR_TEXDATA pTex)
313 AssertReturnVoid(pTex->Flags.Entered);
315 if (!pTex->Flags.Entered)
322 CrBltLeave(pTex->pBlitter);
324 pTex->Flags.Entered = 0;
331 VBOXBLITTERDECL(int) CrTdBltDataAcquire(PCR_TEXDATA pTex, GLenum enmFormat, bool fInverted, PCCR_BLITTER_IMG *ppImg);
333 VBOXBLITTERDECL(int) CrTdBltDataAcquireScaled(PCR_TEXDATA pTex, GLenum enmFormat, bool fInverted,
336 VBOXBLITTERDECL(int) CrTdBltDataReleaseScaled(PCR_TEXDATA pTex, PCCR_BLITTER_IMG pImg);
338 VBOXBLITTERDECL(void) CrTdBltScaleCacheMoveTo(PCR_TEXDATA pTex, PCR_TEXDATA pDstTex);
342 VBOXBLITTERDECL(int) CrTdBltDataRelease(PCR_TEXDATA pTex);
345 VBOXBLITTERDECL(int) CrTdBltDataFree(PCR_TEXDATA pTex);
346 VBOXBLITTERDECL(int) CrTdBltDataFreeNe(PCR_TEXDATA pTex);
347 VBOXBLITTERDECL(void) CrTdBltDataInvalidateNe(PCR_TEXDATA pTex);
351 VBOXBLITTERDECL(int) CrTdBltDataCleanup(PCR_TEXDATA pTex);
353 VBOXBLITTERDECL(int) CrTdBltDataCleanupNe(PCR_TEXDATA pTex);
355 DECLINLINE(uint32_t) CrTdAddRef(PCR_TEXDATA pTex)
357 return ASMAtomicIncU32(&pTex->cRefs);
360 DECLINLINE(uint32_t) CrTdRelease(PCR_TEXDATA pTex)
362 uint32_t cRefs = ASMAtomicDecU32(&pTex->cRefs);
365 if (pTex->pfnTextureReleased)
366 pTex->pfnTextureReleased(pTex);
368 CrTdBltDataCleanupNe(pTex);