VirtualBox

Changeset 22028 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Aug 6, 2009 11:50:01 AM (15 years ago)
Author:
vboxsync
Message:

video hw accel: perf improvements: 1.YV12 stored as BGRA, 2.PBO used for overlays; bug-fixes

Location:
trunk/src/VBox/Additions/WINNT/Graphics/Display
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/dd.c

    r21939 r22028  
    670670                if(pCmd->rc == VINF_SUCCESS)
    671671                {
     672                        uint32_t surfSizeX = pBody->SurfInfo.sizeX;
     673                        uint32_t surfSizeY = pBody->SurfInfo.sizeY;
    672674                    pDesc->hHostHandle = pBody->u.out.hSurf;
    673675                    lpSurfaceGlobal->dwReserved1 = (ULONG_PTR)pDesc;
    674676                    lPitch = pBody->SurfInfo.pitch;
    675                     lBpp = pBody->SurfInfo.bitsPerPixel;
    676                     pDesc->cBitsPerPixel = lBpp;
     677//                    lBpp = pBody->SurfInfo.bitsPerPixel;
     678//                    pDesc->cBitsPerPixel = lBpp;
    677679#if 0
    678680                    lpSurfaceGlobal->dwBlockSizeX   = lPitch;
     
    680682                    lpSurfaceGlobal->lPitch         = lPitch;
    681683#else
    682                     lpSurfaceGlobal->dwBlockSizeX   = lPitch * lpSurfaceGlobal->wHeight;
    683                     lpSurfaceGlobal->dwBlockSizeY   = 1;
     684                    lpSurfaceGlobal->dwBlockSizeX   = surfSizeX;
     685                    lpSurfaceGlobal->dwBlockSizeY   = surfSizeY;
    684686                    lpSurfaceGlobal->lPitch         = lPitch;
    685687#endif
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/driver.h

    r21939 r22028  
    108108    volatile uint32_t cPendingFlipsCurr;
    109109    volatile uint32_t cPendingFlipsTarg;
    110     uint32_t cBitsPerPixel;
     110//    uint32_t cBitsPerPixel;
    111111    bool bHidden;
    112112    VBOXVHWAREGION UpdatedMemRegion;
Note: See TracChangeset for help on using the changeset viewer.

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