Lines Matching refs:pMipmapLevels

113     PVMSVGA3DMIPMAPLEVEL    pMipmapLevels;
153 SSMFIELD_ENTRY_IGN_HCPTR( VMSVGA3DSURFACE, pMipmapLevels),
1511 pSurface->pMipmapLevels = (PVMSVGA3DMIPMAPLEVEL)RTMemAllocZ(cMipLevels * sizeof(VMSVGA3DMIPMAPLEVEL));
1512 AssertReturn(pSurface->pMipmapLevels, VERR_NO_MEMORY);
1515 pSurface->pMipmapLevels[i].size = pMipLevelSize[i];
1576 Log(("vmsvga3dSurfaceDefine: face %d mip level %d (%d,%d,%d)\n", iFace, i, pSurface->pMipmapLevels[idx].size.width, pSurface->pMipmapLevels[idx].size.height, pSurface->pMipmapLevels[idx].size.depth));
1577 Log(("vmsvga3dSurfaceDefine: cbPitch=%x cbBlock=%x \n", pSurface->cbBlock * pSurface->pMipmapLevels[idx].size.width, pSurface->cbBlock));
1579 pSurface->pMipmapLevels[idx].cbSurfacePitch = pSurface->cbBlock * pSurface->pMipmapLevels[idx].size.width;
1580 pSurface->pMipmapLevels[idx].cbSurface = pSurface->pMipmapLevels[idx].cbSurfacePitch * pSurface->pMipmapLevels[idx].size.height * pSurface->pMipmapLevels[idx].size.depth;
1581 pSurface->pMipmapLevels[idx].pSurfaceData = RTMemAllocZ(pSurface->pMipmapLevels[idx].cbSurface);
1582 AssertReturn(pSurface->pMipmapLevels[idx].pSurfaceData, VERR_NO_MEMORY);
1686 if (pSurface->pMipmapLevels)
1693 if (pSurface->pMipmapLevels[idx].pSurfaceData)
1694 RTMemFree(pSurface->pMipmapLevels[idx].pSurfaceData);
1697 RTMemFree(pSurface->pMipmapLevels);
1723 pSurface->pMipmapLevels[0].size.width,
1724 pSurface->pMipmapLevels[0].size.height,
1737 hr = pContext->pDevice->CreateTexture(pSurface->pMipmapLevels[0].size.width,
1738 pSurface->pMipmapLevels[0].size.height,
1982 LockedSrcRect.pBits = (void *)pSurfaceSrc->pMipmapLevels[src.mipmap].pSurfaceData;
1983 LockedSrcRect.Pitch = pSurfaceSrc->pMipmapLevels[src.mipmap].cbSurfacePitch;
2007 LockedDestRect.pBits = (void *)pSurfaceDest->pMipmapLevels[dest.mipmap].pSurfaceData;
2008 LockedDestRect.Pitch = pSurfaceDest->pMipmapLevels[dest.mipmap].cbSurfacePitch;
2076 hr = pContext->pDevice->CreateTexture(pSurface->pMipmapLevels[0].size.width,
2077 pSurface->pMipmapLevels[0].size.height,
2091 hr = pContext->pDevice->CreateTexture(pSurface->pMipmapLevels[0].size.width,
2092 pSurface->pMipmapLevels[0].size.height,
2102 hr = pContext->pDevice->CreateTexture(pSurface->pMipmapLevels[0].size.width,
2103 pSurface->pMipmapLevels[0].size.height,
2117 hr = pContext->pDevice->CreateTexture(pSurface->pMipmapLevels[0].size.width,
2118 pSurface->pMipmapLevels[0].size.height,
2142 if (pSurface->pMipmapLevels[i].fDirty)
2153 Log(("vmsvga3dCreateTexture: sync dirty texture mipmap level %d (pitch %x vs %x)\n", i, LockedRect.Pitch, pSurface->pMipmapLevels[i].cbSurfacePitch));
2156 uint8_t *pSrc = (uint8_t *)pSurface->pMipmapLevels[i].pSurfaceData;
2157 for (uint32_t j = 0; j < pSurface->pMipmapLevels[i].size.height; j++)
2159 memcpy(pDest, pSrc, pSurface->pMipmapLevels[i].cbSurfacePitch);
2162 pSrc += pSurface->pMipmapLevels[i].cbSurfacePitch;
2168 pSurface->pMipmapLevels[i].fDirty = false;
2181 RTMemFree(pSurface->pMipmapLevels[i].pSurfaceData);
2182 pSurface->pMipmapLevels[i].pSurfaceData = NULL;
2336 pMipLevel = &pSurface->pMipmapLevels[host.mipmap];
2345 AssertReturn(pSurface->pMipmapLevels[host.mipmap].pSurfaceData, VERR_INTERNAL_ERROR);
2391 pSurface->pMipmapLevels[host.mipmap].fDirty = true;
2573 uDestOffset = pBoxes[i].x * pSurface->cbBlock + pBoxes[i].y * pSurface->pMipmapLevels[host.mipmap].cbSurfacePitch;
2574 AssertReturn(uDestOffset + pBoxes[i].w * pSurface->cbBlock + (pBoxes[i].h - 1) * pSurface->pMipmapLevels[host.mipmap].cbSurfacePitch <= pSurface->pMipmapLevels[host.mipmap].cbSurface, VERR_INTERNAL_ERROR);
2588 pSurface->pMipmapLevels[host.mipmap].cbSurfacePitch,
2836 if (pSurface->pMipmapLevels[0].size.width != pThis->svga.uWidth ||
2837 pSurface->pMipmapLevels[0].size.height != pThis->svga.uHeight)
2839 float xMultiplier = (float)pSurface->pMipmapLevels[0].size.width / (float)pThis->svga.uWidth;
2840 float yMultiplier = (float)pSurface->pMipmapLevels[0].size.height / (float)pThis->svga.uHeight;
3082 memcpy(&pMipLevelSize[idx], &pSurface->pMipmapLevels[idx].size, sizeof(SVGA3dSize));
3215 PVMSVGA3DMIPMAPLEVEL pMipmapLevel = &pSurface->pMipmapLevels[i];
4380 hr = pContext->pDevice->CreateDepthStencilSurface(pRenderTarget->pMipmapLevels[0].size.width,
4381 pRenderTarget->pMipmapLevels[0].size.height,
4402 if (pRenderTarget->pMipmapLevels[i].fDirty)
4412 Log(("vmsvga3dSetRenderTarget: sync dirty texture mipmap level %d (pitch %x vs %x)\n", i, LockedRect.Pitch, pRenderTarget->pMipmapLevels[i].cbSurfacePitch));
4415 uint8_t *pSrc = (uint8_t *)pRenderTarget->pMipmapLevels[i].pSurfaceData;
4416 for (uint32_t j = 0; j < pRenderTarget->pMipmapLevels[i].size.height; j++)
4418 memcpy(pDest, pSrc, pRenderTarget->pMipmapLevels[i].cbSurfacePitch);
4421 pSrc += pRenderTarget->pMipmapLevels[i].cbSurfacePitch;
4427 pRenderTarget->pMipmapLevels[i].fDirty = false;
4527 Log(("Create rendertarget (%d,%d) format=%x multisample=%x\n", pRenderTarget->pMipmapLevels[0].size.width, pRenderTarget->pMipmapLevels[0].size.height, pRenderTarget->formatD3D, pRenderTarget->multiSampleTypeD3D));
4529 hr = pContext->pDevice->CreateRenderTarget(pRenderTarget->pMipmapLevels[0].size.width,
4530 pRenderTarget->pMipmapLevels[0].size.height,
4835 Log(("SVGA3D_TS_BIND_TEXTURE: stage %d, texture surface id=%x (%d,%d)\n", currentStage, pTextureState[i].value, pSurface->pMipmapLevels[0].size.width, pSurface->pMipmapLevels[0].size.height));
4840 Log(("CreateTexture (%d,%d) level=%d fUsage=%x format=%x\n", pSurface->pMipmapLevels[0].size.width, pSurface->pMipmapLevels[0].size.height, pSurface->faces[0].numMipLevels, pSurface->fUsageD3D, pSurface->formatD3D));
5330 hr = pContext->pDevice->CreateVertexBuffer(pVertexSurface->pMipmapLevels[0].cbSurface,
5347 memcpy(pData, pVertexSurface->pMipmapLevels[0].pSurfaceData, pVertexSurface->pMipmapLevels[0].cbSurface);
5351 pVertexSurface->pMipmapLevels[0].fDirty = false;
5528 hr = pContext->pDevice->CreateIndexBuffer(pIndexSurface->pMipmapLevels[0].cbSurface,
5550 memcpy(pData, pIndexSurface->pMipmapLevels[0].pSurfaceData, pIndexSurface->pMipmapLevels[0].cbSurface);
5555 pIndexSurface->pMipmapLevels[0].fDirty = false;
5602 numVertices = pVertexSurface->pMipmapLevels[0].cbSurface / strideVertex - pVertexDecl[0].array.offset / strideVertex - pVertexDecl[0].rangeHint.first - pRange[iPrimitive].indexBias;