Changeset 86838 in vbox for trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-info.cpp
- Timestamp:
- Nov 9, 2020 11:16:50 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 141287
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-info.cpp
r86024 r86838 291 291 for (uint32_t iFace = 0; iFace < pSurface->cFaces; iFace++) 292 292 { 293 Assert(pSurface->faces[iFace].numMipLevels <= pSurface->faces[0].numMipLevels); 294 PVMSVGA3DMIPMAPLEVEL pMipmapLevel = &pSurface->paMipmapLevels[iFace * pSurface->faces[0].numMipLevels]; 295 for (uint32_t i = 0; i < pSurface->faces[iFace].numMipLevels; i++, pMipmapLevel++) 293 PVMSVGA3DMIPMAPLEVEL pMipmapLevel = &pSurface->paMipmapLevels[iFace * pSurface->cLevels]; 294 for (uint32_t i = 0; i < pSurface->cLevels; i++, pMipmapLevel++) 296 295 { 297 296 if (VMSVGA3DSURFACE_HAS_HW_SURFACE(pSurface)) … … 498 497 AssertMsgFailed(("%#x\n", fSwitchFlags)); 499 498 } 499 #elif defined(VMSVGA3D_DX) 500 /** @todo */ 501 RT_NOREF(pState); 500 502 #else 501 503 # error "misconfigured" … … 1522 1524 # ifdef VMSVGA3D_DIRECT3D 1523 1525 pHlp->pfnPrintf(pHlp, "pDevice: %p\n", pContext->pDevice); 1526 # elif defined(VMSVGA3D_DX) 1527 /** @todo */ 1524 1528 # else 1525 1529 pHlp->pfnPrintf(pHlp, "hdc: %p\n", pContext->hdc); … … 1919 1923 const uint32_t u32Seq = ASMAtomicIncU32(&sSeq); 1920 1924 1921 for (uint32_t i = 0; i < pSurface-> faces[0].numMipLevels; ++i)1925 for (uint32_t i = 0; i < pSurface->cLevels; ++i) 1922 1926 { 1923 1927 if (!pSurface->paMipmapLevels[i].pSurfaceData) … … 1978 1982 vmsvga3dInfoU32Flags(pHlp, pSurface->surfaceFlags, "SVGA3D_SURFACE_", g_aSvga3DSurfaceFlags, RT_ELEMENTS(g_aSvga3DSurfaceFlags)); 1979 1983 pHlp->pfnPrintf(pHlp, "\n"); 1980 if (pSurface->cFaces == 0)1984 if (pSurface->cFaces != 0) 1981 1985 pHlp->pfnPrintf(pHlp, "Faces: %u\n", pSurface->cFaces); 1986 if (pSurface->cLevels != 0) 1987 pHlp->pfnPrintf(pHlp, "Mipmap levels: %u\n", pSurface->cLevels); 1982 1988 for (uint32_t iFace = 0; iFace < pSurface->cFaces; iFace++) 1983 1989 { 1984 Assert(pSurface->faces[iFace].numMipLevels <= pSurface->faces[0].numMipLevels); 1985 if (pSurface->faces[iFace].numMipLevels == 0) 1986 pHlp->pfnPrintf(pHlp, "Faces[%u] Mipmap levels: %u\n", iFace, pSurface->faces[iFace].numMipLevels); 1987 1988 uint32_t iMipmap = iFace * pSurface->faces[0].numMipLevels; 1989 for (uint32_t iLevel = 0; iLevel < pSurface->faces[iFace].numMipLevels; iLevel++, iMipmap++) 1990 uint32_t iMipmap = iFace * pSurface->cLevels; 1991 for (uint32_t iLevel = 0; iLevel < pSurface->cLevels; iLevel++, iMipmap++) 1990 1992 { 1991 1993 pHlp->pfnPrintf(pHlp, "Face #%u, mipmap #%u[%u]:%s cx=%u, cy=%u, cz=%u, cbSurface=%#x, cbPitch=%#x", … … 2030 2032 pHlp->pfnPrintf(pHlp, "fStencilAsTexture: %RTbool\n", pSurface->fStencilAsTexture); 2031 2033 2034 #elif defined(VMSVGA3D_DX) 2035 /** @todo */ 2032 2036 #elif defined(VMSVGA3D_OPENGL) 2033 2037 /** @todo */ … … 2039 2043 for (uint32_t iFace = 0; iFace < pSurface->cFaces; iFace++) 2040 2044 { 2041 uint32_t iMipmap = iFace * pSurface-> faces[0].numMipLevels;2042 for (uint32_t iLevel = 0; iLevel < pSurface-> faces[iFace].numMipLevels; iLevel++, iMipmap++)2045 uint32_t iMipmap = iFace * pSurface->cLevels; 2046 for (uint32_t iLevel = 0; iLevel < pSurface->cLevels; iLevel++, iMipmap++) 2043 2047 if (pSurface->paMipmapLevels[iMipmap].pSurfaceData) 2044 2048 {
Note:
See TracChangeset
for help on using the changeset viewer.