VirtualBox

Ignore:
Timestamp:
Jan 8, 2020 7:37:51 PM (5 years ago)
Author:
vboxsync
Message:

WDDM: HardwareAccess for create/delete surface.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/gallium/GaDrvEnvWddm.cpp

    r82651 r82679  
    220220    ddiEscape.hDevice               = 0; // pThis->mWddmCallbacks.hDevice;
    221221    ddiEscape.Flags.Value           = 0;
     222    ddiEscape.Flags.HardwareAccess  = 1; // Required, otherwise graphics corruption can happen. No idea why.
     223                                         // Eventually we probably have to create allocations for surfaces,
     224                                         // as a WDDM driver should do. Then the Escape hack will be removed.
    222225    ddiEscape.pPrivateDriverData    = pData;
    223226    ddiEscape.PrivateDriverDataSize = cbAlloc;
     
    253256    ddiEscape.hDevice               = 0; // pThis->mWddmCallbacks.hDevice;
    254257    ddiEscape.Flags.Value           = 0;
    255     ddiEscape.Flags.HardwareAccess  = 1; /// @todo Remove when the miniport has the ref counting for the host objects
     258    ddiEscape.Flags.HardwareAccess  = 1; // Required, otherwise graphics corruption can happen. No idea why.
     259                                         // Eventually we probably have to create allocations for surfaces,
     260                                         // as a WDDM driver should do. Then the Escape hack will be removed.
    256261    ddiEscape.pPrivateDriverData    = &data;
    257262    ddiEscape.PrivateDriverDataSize = sizeof(data);
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