Lines Matching refs:pMipmapLevels

158 #define D3D_TO_OGL_Y_COORD(ptrSurface, y_coordinate)                (ptrSurface->pMipmapLevels[0].size.height - (y_coordinate))
523 PVMSVGA3DMIPMAPLEVEL pMipmapLevels;
550 SSMFIELD_ENTRY_IGN_HCPTR( VMSVGA3DSURFACE, pMipmapLevels),
2744 pSurface->pMipmapLevels = (PVMSVGA3DMIPMAPLEVEL)RTMemAllocZ(cMipLevels * sizeof(VMSVGA3DMIPMAPLEVEL));
2745 AssertReturn(pSurface->pMipmapLevels, VERR_NO_MEMORY);
2748 pSurface->pMipmapLevels[i].size = pMipLevelSize[i];
2793 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));
2794 Log(("vmsvga3dSurfaceDefine: cbPitch=%x cbBlock=%x \n", pSurface->cbBlock * pSurface->pMipmapLevels[idx].size.width, pSurface->cbBlock));
2796 pSurface->pMipmapLevels[idx].cbSurfacePitch = pSurface->cbBlock * pSurface->pMipmapLevels[idx].size.width;
2797 pSurface->pMipmapLevels[idx].cbSurface = pSurface->pMipmapLevels[idx].cbSurfacePitch * pSurface->pMipmapLevels[idx].size.height * pSurface->pMipmapLevels[idx].size.depth;
2798 pSurface->pMipmapLevels[idx].pSurfaceData = RTMemAllocZ(pSurface->pMipmapLevels[idx].cbSurface);
2799 AssertReturn(pSurface->pMipmapLevels[idx].pSurfaceData, VERR_NO_MEMORY);
2901 if (pSurface->pMipmapLevels)
2908 if (pSurface->pMipmapLevels[idx].pSurfaceData)
2909 RTMemFree(pSurface->pMipmapLevels[idx].pSurfaceData);
2912 RTMemFree(pSurface->pMipmapLevels);
3103 if (pSurface->pMipmapLevels[i].fDirty || i == 0)
3105 if (pSurface->pMipmapLevels[i].fDirty)
3106 Log(("vmsvga3dCreateTexture: sync dirty texture mipmap level %d (pitch %x)\n", i, pSurface->pMipmapLevels[i].cbSurfacePitch));
3111 pSurface->pMipmapLevels[i].size.width,
3112 pSurface->pMipmapLevels[i].size.height,
3116 pSurface->pMipmapLevels[i].pSurfaceData);
3120 pSurface->pMipmapLevels[i].fDirty = false;
3133 pSurface->pMipmapLevels[0].size.width,
3134 pSurface->pMipmapLevels[0].size.height,
3138 pSurface->pMipmapLevels[0].pSurfaceData);
3408 pMipLevel = &pSurface->pMipmapLevels[host.mipmap];
3417 AssertReturn(pSurface->pMipmapLevels[host.mipmap].pSurfaceData, VERR_INTERNAL_ERROR);
3475 pSurface->pMipmapLevels[host.mipmap].fDirty = true;
3932 if (pSurface->pMipmapLevels[0].size.width != pThis->svga.uWidth ||
3933 pSurface->pMipmapLevels[0].size.height != pThis->svga.uHeight)
3935 float xMultiplier = (float)pSurface->pMipmapLevels[0].size.width / (float)pThis->svga.uWidth;
3936 float yMultiplier = (float)pSurface->pMipmapLevels[0].size.height / (float)pThis->svga.uHeight;
3938 LogFlow(("size (%d vs %d) (%d vs %d) multiplier %d\n", pSurface->pMipmapLevels[0].size.width, pThis->svga.uWidth, pSurface->pMipmapLevels[0].size.height, pThis->svga.uHeight, (int)(xMultiplier * 100.0), (int)(yMultiplier * 100.0)));
3962 rect.w = pSurface->pMipmapLevels[0].size.width;
3963 rect.h = pSurface->pMipmapLevels[0].size.height;
3980 glViewport(0, 0, pSurface->pMipmapLevels[0].size.width, pSurface->pMipmapLevels[0].size.height);
4047 left /= pSurface->pMipmapLevels[0].size.width;
4048 right /= pSurface->pMipmapLevels[0].size.width;
4049 top /= pSurface->pMipmapLevels[0].size.height;
4050 bottom /= pSurface->pMipmapLevels[0].size.height;
4059 Log(("texture (%d,%d) (%d,%d) (%d,%d) (%d,%d)\n", pRect[i].srcx, pSurface->pMipmapLevels[0].size.height - (pRect[i].srcy + pRect[i].h), pRect[i].srcx, pSurface->pMipmapLevels[0].size.height - pRect[i].srcy, pRect[i].srcx + pRect[i].w, pSurface->pMipmapLevels[0].size.height - pRect[i].srcy, pRect[i].srcx + pRect[i].w, pSurface->pMipmapLevels[0].size.height - (pRect[i].srcy + pRect[i].h)));
4139 pSurface->pMipmapLevels[0].size.width - RT_MAX(pRect[i].srcy, srcViewPort.y), /* exclusive. (reverse to flip the image) */
4141 pSurface->pMipmapLevels[0].size.width - RT_MIN(pRect[i].srcy + pRect[i].h, srcViewPort.y + srcViewPort.cy),
4586 memcpy(&pMipLevelSize[idx], &pSurface->pMipmapLevels[idx].size, sizeof(SVGA3dSize));
5844 pRenderTarget->pMipmapLevels[0].size.width,
5845 pRenderTarget->pMipmapLevels[0].size.height);
6201 currentStage, pTextureState[i].value, pSurface->pMipmapLevels[0].size.width,
6202 pSurface->pMipmapLevels[0].size.height, pContext->aSidActiveTexture[currentStage]));
6209 Log(("CreateTexture (%d,%d) level=%d\n", pSurface->pMipmapLevels[0].size.width, pSurface->pMipmapLevels[0].size.height, pSurface->faces[0].numMipLevels));
6957 Log(("vmsvga3dDrawPrimitives: create vertex buffer fDirty=%d size=%x bytes\n", pVertexSurface->fDirty, pVertexSurface->pMipmapLevels[0].cbSurface));
6972 pState->ext.glBufferData(GL_ARRAY_BUFFER, pVertexSurface->pMipmapLevels[0].cbSurface, pVertexSurface->pMipmapLevels[0].pSurfaceData, GL_DYNAMIC_DRAW);
6975 pVertexSurface->pMipmapLevels[0].fDirty = false;
7213 rtHeight = pRenderTarget->pMipmapLevels[0].size.height;
7275 Log(("vmsvga3dDrawPrimitives: create index buffer fDirty=%d size=%x bytes\n", pIndexSurface->fDirty, pIndexSurface->pMipmapLevels[0].cbSurface));
7290 pState->ext.glBufferData(GL_ELEMENT_ARRAY_BUFFER, pIndexSurface->pMipmapLevels[0].cbSurface, pIndexSurface->pMipmapLevels[0].pSurfaceData, GL_DYNAMIC_DRAW);
7293 pIndexSurface->pMipmapLevels[0].fDirty = false;