VirtualBox

Ignore:
Timestamp:
Sep 17, 2015 9:50:12 AM (9 years ago)
Author:
vboxsync
Message:

Devices/VGA,Additions/WDDM: Fix hardware accelerated video playback with the WDDM driver when VWHA interface is used (fixes VLC video playback)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVhwa.cpp

    r51260 r57801  
    538538    memset(pInfo, 0, sizeof(VBOXVHWA_SURFACEDESC));
    539539
     540#if 0
     541    /**
     542     * The following breaks 2D accelerated video playback because this method is called just after the surface was created
     543     * and most its members are still 0.
     544     *
     545     * @todo: Not 100% sure this is the correct way. It looks like the SegmentId specifies where the  memory
     546     *        for the surface is stored (VRAM vs. system memory) but because this method is only used
     547     *        to query some parameters (using VBOXVHWACMD_SURF_GETINFO) and this command doesn't access any surface memory
     548     *        on the host it should be safe.
     549     */
    540550    if (pSurf->AllocData.Addr.SegmentId != 1)
    541551    {
     
    543553        return VERR_INVALID_PARAMETER;
    544554    }
     555#endif
    545556
    546557    pInfo->height = pSurf->AllocData.SurfDesc.height;
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