- Timestamp:
- May 31, 2017 7:14:33 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-win.cpp
r65381 r67179 1341 1341 pContext = pState->papContexts[cid]; 1342 1342 1343 Log(("vmsvga3dSurfaceCopy: create texture s urfaceid=%x type=%d format=%d -> create texture\n", sidDest, pSurfaceDest->flags, pSurfaceDest->format));1343 Log(("vmsvga3dSurfaceCopy: create texture sid=%x type=%d format=%d -> create texture\n", sidDest, pSurfaceDest->flags, pSurfaceDest->format)); 1344 1344 rc = vmsvga3dBackCreateTexture(pState, pContext, cid, pSurfaceDest); 1345 1345 AssertRCReturn(rc, rc); … … 1371 1371 && pSurfaceSrc->idAssociatedContext != cid) 1372 1372 { 1373 Log(("vmsvga3dSurfaceCopy; using texture %x created for another context (%d vs %d)\n", sidSrc, pSurfaceSrc->idAssociatedContext, cid));1373 Log(("vmsvga3dSurfaceCopy; using texture sid=%x created for another context (%d vs %d)\n", sidSrc, pSurfaceSrc->idAssociatedContext, cid)); 1374 1374 1375 1375 PVMSVGA3DSHAREDSURFACE pSharedSurface = vmsvga3dSurfaceGetSharedCopy(pThis, pContext, pSurfaceSrc); … … 1456 1456 Rect.bottom = pBox[i].srcy + pBox[i].h; /* exclusive */ 1457 1457 1458 Log(("vmsvga3dSurfaceCopy: (manual) copy s rc=%x src=%x face=%d (%d,%d)(%d,%d) to dest=%x src=%x face=%d (%d,%d)\n", sidSrc, src.face, src.mipmap, Rect.left, Rect.top, Rect.right, Rect.bottom, sidDest, dest.face, dest.mipmap, pBox[i].x, pBox[i].y));1458 Log(("vmsvga3dSurfaceCopy: (manual) copy sid=%x face=%d mipmap=%d (%d,%d)(%d,%d) to sid=%x face=%d mipmap=%d (%d,%d)\n", sidSrc, src.face, src.mipmap, Rect.left, Rect.top, Rect.right, Rect.bottom, sidDest, dest.face, dest.mipmap, pBox[i].x, pBox[i].y)); 1459 1459 1460 1460 Assert(!pBox[i].srcz && !pBox[i].z); … … 1882 1882 1883 1883 if (fTexture) 1884 Log(("Lock TEXTURE (bounce=%d) memory for rectangle (%d,%d)(%d,%d)\n", !!(pSurface->bounce.pTexture), Rect.left, Rect.top, Rect.right, Rect.bottom));1884 Log(("Lock sid=%x TEXTURE (bounce=%d) memory for rectangle (%d,%d)(%d,%d)\n", pSurface->id, !!(pSurface->bounce.pTexture), Rect.left, Rect.top, Rect.right, Rect.bottom)); 1885 1885 else 1886 Log(("Lock %s memory for rectangle (%d,%d)(%d,%d)\n", (pSurface->flags & SVGA3D_SURFACE_HINT_DEPTHSTENCIL) ? "DEPTH-STENCIL" : "RENDERTARGET", Rect.left, Rect.top, Rect.right, Rect.bottom));1886 Log(("Lock sid=%x %s memory for rectangle (%d,%d)(%d,%d)\n", pSurface->id, (pSurface->flags & SVGA3D_SURFACE_HINT_DEPTHSTENCIL) ? "DEPTH-STENCIL" : "RENDERTARGET", Rect.left, Rect.top, Rect.right, Rect.bottom)); 1887 1887 1888 1888 rc = vmsvgaGMRTransfer(pThis, … … 1992 1992 { 1993 1993 /* Requires SVGA_FIFO_CAP_SCREEN_OBJECT support */ 1994 Log(("vmsvga3dSurfaceBlitToScreen: dest=%d (%d,%d)(%d,%d) s urface=%x (face=%d, mipmap=%d) (%d,%d)(%d,%d) cRects=%d\n", dest, destRect.left, destRect.top, destRect.right, destRect.bottom, src.sid, src.face, src.mipmap, srcRect.left, srcRect.top, srcRect.right, srcRect.bottom, cRects));1994 Log(("vmsvga3dSurfaceBlitToScreen: dest=%d (%d,%d)(%d,%d) sid=%x (face=%d, mipmap=%d) (%d,%d)(%d,%d) cRects=%d\n", dest, destRect.left, destRect.top, destRect.right, destRect.bottom, src.sid, src.face, src.mipmap, srcRect.left, srcRect.top, srcRect.right, srcRect.bottom, cRects)); 1995 1995 for (uint32_t i = 0; i < cRects; i++) 1996 1996 { … … 2141 2141 2142 2142 /* Unknown surface type; turn it into a texture. */ 2143 Log(("vmsvga3dGenerateMipmaps: unknown src surface id=%x type=%d format=%d -> create texture\n", sid, pSurface->flags, pSurface->format));2143 Log(("vmsvga3dGenerateMipmaps: unknown src surface sid=%x type=%d format=%d -> create texture\n", sid, pSurface->flags, pSurface->format)); 2144 2144 rc = vmsvga3dBackCreateTexture(pState, pContext, cid, pSurface); 2145 2145 AssertRCReturn(rc, rc); … … 2539 2539 int rc; 2540 2540 2541 Log(("vmsvga3dContextDestroy: remove all dependencies for surface %x\n", sid));2541 Log(("vmsvga3dContextDestroy: remove all dependencies for surface sid=%x\n", sid)); 2542 2542 2543 2543 uint32_t surfaceFlags = pSurface->flags; … … 2580 2580 if (pSharedSurface) 2581 2581 { 2582 Log(("vmsvga3dContextDestroy: remove shared dependency for surface %x\n", sid));2582 Log(("vmsvga3dContextDestroy: remove shared dependency for surface sid=%x\n", sid)); 2583 2583 2584 2584 switch (pSurface->flags & (SVGA3D_SURFACE_HINT_INDEXBUFFER | SVGA3D_SURFACE_HINT_VERTEXBUFFER | SVGA3D_SURFACE_HINT_TEXTURE | SVGA3D_SURFACE_HINT_RENDERTARGET | SVGA3D_SURFACE_HINT_DEPTHSTENCIL | SVGA3D_SURFACE_CUBEMAP)) … … 3754 3754 AssertReturn(target.face == 0, VERR_INVALID_PARAMETER); 3755 3755 3756 Log(("vmsvga3dSetRenderTarget cid=%x type=%x s urfaceid=%x\n", cid, type, target.sid));3756 Log(("vmsvga3dSetRenderTarget cid=%x type=%x sid=%x\n", cid, type, target.sid)); 3757 3757 3758 3758 if ( cid >= pState->cContexts … … 3964 3964 if (!pRenderTarget->u.pTexture) 3965 3965 { 3966 Log(("vmsvga3dSetRenderTarget: create texture to be used as render target; s urfaceid=%x type=%d format=%d -> create texture\n", target.sid, pRenderTarget->flags, pRenderTarget->format));3966 Log(("vmsvga3dSetRenderTarget: create texture to be used as render target; sid=%x type=%d format=%d -> create texture\n", target.sid, pRenderTarget->flags, pRenderTarget->format)); 3967 3967 int rc = vmsvga3dBackCreateTexture(pState, pContext, cid, pRenderTarget); 3968 3968 AssertRCReturn(rc, rc); … … 3972 3972 if (pRenderTarget->idAssociatedContext != cid) 3973 3973 { 3974 Log(("vmsvga3dSetRenderTarget; using texture %x created for another context (%d vs %d)\n", target.sid, pRenderTarget->idAssociatedContext, cid));3974 Log(("vmsvga3dSetRenderTarget; using texture sid=%x created for another context (%d vs %d)\n", target.sid, pRenderTarget->idAssociatedContext, cid)); 3975 3975 3976 3976 PVMSVGA3DSHAREDSURFACE pSharedSurface = vmsvga3dSurfaceGetSharedCopy(pThis, pContext, pRenderTarget); … … 4300 4300 if (pTextureState[i].value == SVGA3D_INVALID_ID) 4301 4301 { 4302 Log(("SVGA3D_TS_BIND_TEXTURE: stage %d, texture s urfaceid=%x\n", currentStage, pTextureState[i].value));4302 Log(("SVGA3D_TS_BIND_TEXTURE: stage %d, texture sid=%x\n", currentStage, pTextureState[i].value)); 4303 4303 4304 4304 pContext->aSidActiveTexture[currentStage] = SVGA3D_INVALID_ID; … … 4317 4317 PVMSVGA3DSURFACE pSurface = pState->papSurfaces[sid]; 4318 4318 4319 Log(("SVGA3D_TS_BIND_TEXTURE: stage %d, texture s urfaceid=%x (%d,%d)\n", currentStage, pTextureState[i].value, pSurface->pMipmapLevels[0].size.width, pSurface->pMipmapLevels[0].size.height));4319 Log(("SVGA3D_TS_BIND_TEXTURE: stage %d, texture sid=%x (%d,%d)\n", currentStage, pTextureState[i].value, pSurface->pMipmapLevels[0].size.width, pSurface->pMipmapLevels[0].size.height)); 4320 4320 4321 4321 if (!pSurface->u.pTexture) … … 4335 4335 if (pSurface->idAssociatedContext != cid) 4336 4336 { 4337 Log(("vmsvga3dSetTextureState; using texture %x created for another context (%d vs %d)\n", sid, pSurface->idAssociatedContext, cid));4337 Log(("vmsvga3dSetTextureState; using texture sid=%x created for another context (%d vs %d)\n", sid, pSurface->idAssociatedContext, cid)); 4338 4338 4339 4339 PVMSVGA3DSHAREDSURFACE pSharedSurface = vmsvga3dSurfaceGetSharedCopy(pThis, pContext, pSurface); … … 4793 4793 4794 4794 pVertexSurface = pState->papSurfaces[sidVertex]; 4795 Log(("vmsvga3dDrawPrimitives: vertex s urface%x stream %d\n", sidVertex, idStream));4795 Log(("vmsvga3dDrawPrimitives: vertex sid=%x stream %d\n", sidVertex, idStream)); 4796 4796 Log(("vmsvga3dDrawPrimitives: type=%s (%d) method=%s (%d) usage=%s (%d) usageIndex=%d stride=%d offset=%d\n", vmsvgaDeclType2String(pVertexDecl[iVertex].identity.type), pVertexDecl[iVertex].identity.type, vmsvgaDeclMethod2String(pVertexDecl[iVertex].identity.method), pVertexDecl[iVertex].identity.method, vmsvgaDeclUsage2String(pVertexDecl[iVertex].identity.usage), pVertexDecl[iVertex].identity.usage, pVertexDecl[iVertex].identity.usageIndex, pVertexDecl[iVertex].array.stride, pVertexDecl[iVertex].array.offset)); 4797 4797 … … 5010 5010 } 5011 5011 pIndexSurface = pState->papSurfaces[sidIndex]; 5012 Log(("vmsvga3dDrawPrimitives: index s urface%x\n", sidIndex));5012 Log(("vmsvga3dDrawPrimitives: index sid=%x\n", sidIndex)); 5013 5013 5014 5014 if (!pIndexSurface->u.pIndexBuffer)
Note:
See TracChangeset
for help on using the changeset viewer.