VirtualBox

Changeset 53780 in vbox


Ignore:
Timestamp:
Jan 13, 2015 11:16:52 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
97587
Message:

logging adjustments

Location:
trunk/src/VBox/Devices/Graphics
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA.cpp

    r53779 r53780  
    320320
    321321    default:
    322         if (    pThis->svga.u32IndexReg >= SVGA_SCRATCH_BASE
    323             &&  pThis->svga.u32IndexReg < SVGA_SCRATCH_BASE + pThis->svga.cScratchRegion)
    324         {
     322        if (pThis->svga.u32IndexReg - (uint32_t)SVGA_SCRATCH_BASE < pThis->svga.cScratchRegion)
    325323            return "SVGA_SCRATCH_BASE reg";
    326         }
     324        if (pThis->svga.u32IndexReg - (uint32_t)SVGA_PALETTE_BASE < (uint32_t)SVGA_NUM_PALETTE_REGS)
     325            return "SVGA_PALETTE_BASE reg";
    327326        return "UNKNOWN";
    328327    }
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-win.cpp

    r53769 r53780  
    23052305}
    23062306
    2307 int vmsvga3dSurfaceDMA(PVGASTATE pThis, SVGA3dGuestImage guest, SVGA3dSurfaceImageId host, SVGA3dTransferType transfer, uint32_t cCopyBoxes, SVGA3dCopyBox *pBoxes)
     2307int vmsvga3dSurfaceDMA(PVGASTATE pThis, SVGA3dGuestImage guest, SVGA3dSurfaceImageId host, SVGA3dTransferType transfer,
     2308                       uint32_t cCopyBoxes, SVGA3dCopyBox *pBoxes)
    23082309{
    23092310    PVMSVGA3DSTATE          pState = (PVMSVGA3DSTATE)pThis->svga.p3dState;
     
    25592560                AssertReturn(uDestOffset + pBoxes[i].w * pSurface->cbBlock + (pBoxes[i].h - 1) * pSurface->pMipmapLevels[host.mipmap].cbSurfacePitch <= pSurface->pMipmapLevels[host.mipmap].cbSurface, VERR_INTERNAL_ERROR);
    25602561
    2561                 /* @todo lock only as much as we really need */
     2562                /** @todo lock only as much as we really need */
    25622563                if (fVertex)
    25632564                    hr = pSurface->u.pVertexBuffer->Lock(0, 0, (void **)&pData, dwFlags);
     
    62956296
    62966297    LogRel(("\n"));
    6297     LogRel(("  PixelShaderVersion:  %#x (%u.%u)\n",
    6298             pCaps->PixelShaderVersion,  RT_BYTE2(pCaps->PixelShaderVersion),  RT_BYTE1(pCaps->PixelShaderVersion)));
    6299     LogRel(("  VertexShaderVersion: %#x (%u.%u)\n",
    6300             pCaps->VertexShaderVersion, RT_BYTE2(pCaps->VertexShaderVersion), RT_BYTE1(pCaps->VertexShaderVersion)));
    6301 
     6298    LogRel(("PixelShaderVersion:  %#x (%u.%u)\n", pCaps->PixelShaderVersion,
     6299            D3DSHADER_VERSION_MAJOR(pCaps->PixelShaderVersion), D3DSHADER_VERSION_MINOR(pCaps->PixelShaderVersion)));
     6300    LogRel(("VertexShaderVersion: %#x (%u.%u)\n", pCaps->VertexShaderVersion,
     6301            D3DSHADER_VERSION_MAJOR(pCaps->VertexShaderVersion), D3DSHADER_VERSION_MINOR(pCaps->VertexShaderVersion)));
     6302
     6303    LogRel(("\n"));
    63026304    RTLogRelSetBuffering(fBufferingSaved);
    63036305}
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette