Lines Matching defs:pMipmapLevel
183 PVMSVGA3DMIPMAPLEVEL pMipmapLevel = (PVMSVGA3DMIPMAPLEVEL)RTMemAlloc(cMipLevels * sizeof(VMSVGA3DMIPMAPLEVEL));
184 AssertReturn(pMipmapLevel, VERR_NO_MEMORY);
195 rc = SSMR3GetStructEx(pSSM, &pMipmapLevel[idx], sizeof(pMipmapLevel[idx]), 0, g_aVMSVGA3DMIPMAPLEVELFields, NULL);
198 pMipmapLevelSize[idx] = pMipmapLevel[idx].size;
206 RTMemFree(pMipmapLevel);
217 PVMSVGA3DMIPMAPLEVEL pMipmapLevel = &pSurface->pMipmapLevels[j];
220 Assert(pMipmapLevel->cbSurface);
221 pMipmapLevel->pSurfaceData = RTMemAllocZ(pMipmapLevel->cbSurface);
222 AssertReturn(pMipmapLevel->pSurfaceData, VERR_NO_MEMORY);
228 Log(("Surface sid=%x: load mipmap level %d with %x bytes data (present=%d).\n", sid, j, pMipmapLevel->cbSurface, fDataPresent));
232 rc = SSMR3GetMem(pSSM, pMipmapLevel->pSurfaceData, pMipmapLevel->cbSurface);
234 pMipmapLevel->fDirty = true;
239 pMipmapLevel->fDirty = false;
456 PVMSVGA3DMIPMAPLEVEL pMipmapLevel = &pSurface->pMipmapLevels[idx];
459 rc = SSMR3PutStructEx(pSSM, pMipmapLevel, sizeof(*pMipmapLevel), 0, g_aVMSVGA3DMIPMAPLEVELFields, NULL);
470 PVMSVGA3DMIPMAPLEVEL pMipmapLevel = &pSurface->pMipmapLevels[idx];
472 Log(("Surface sid=%d: save mipmap level %d with %x bytes data.\n", sid, i, pMipmapLevel->cbSurface));
480 if (pMipmapLevel->fDirty)
486 Assert(pMipmapLevel->cbSurface);
487 rc = SSMR3PutMem(pSSM, pMipmapLevel->pSurfaceData, pMipmapLevel->cbSurface);
507 Assert(pMipmapLevel->cbSurface);
508 pData = RTMemAllocZ(pMipmapLevel->cbSurface);
579 for (uint32_t j = 0; j < pMipmapLevel->size.height; j++)
581 memcpy((uint8_t *)pData + j * pMipmapLevel->cbSurfacePitch, (uint8_t *)LockedRect.pBits + j * LockedRect.Pitch, pMipmapLevel->cbSurfacePitch);
614 memcpy(pData, pD3DData, pMipmapLevel->cbSurface);
636 rc = SSMR3PutMem(pSSM, pData, pMipmapLevel->cbSurface);
666 Assert(pMipmapLevel->cbSurface);
687 pData = RTMemAllocZ(pMipmapLevel->cbSurface);
714 rc = SSMR3PutMem(pSSM, pData, pMipmapLevel->cbSurface);
740 rc = SSMR3PutMem(pSSM, pBufferData, pMipmapLevel->cbSurface);