VirtualBox

Changeset 99857 in vbox


Ignore:
Timestamp:
May 19, 2023 9:05:50 AM (20 months ago)
Author:
vboxsync
Message:

WDDM: D3D10_DDI_MAP_FLAG_DONOTWAIT fix; remove FlushCommands from Draw calls. bugref:9845

Location:
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/dx
Files:
2 edited

Legend:

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

    r99856 r99857  
    24202420    Assert(pResource->uMap == 0); /* Must not be already mapped */
    24212421
    2422     if (   RT_BOOL(Flags & D3D10_DDI_MAP_FLAG_DONOTWAIT)
    2423         && dxIsAllocationInUse(pDevice, vboxDXGetAllocation(pResource)))
     2422    if (dxIsAllocationInUse(pDevice, vboxDXGetAllocation(pResource)))
    24242423    {
    24252424        vboxDXFlush(pDevice, true);
    2426         vboxDXDeviceSetError(pDevice, DXGI_DDI_ERR_WASSTILLDRAWING);
    2427         return;
     2425
     2426        if (RT_BOOL(Flags & D3D10_DDI_MAP_FLAG_DONOTWAIT))
     2427        {
     2428            vboxDXDeviceSetError(pDevice, DXGI_DDI_ERR_WASSTILLDRAWING);
     2429            return;
     2430        }
    24282431    }
    24292432
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/dx/VBoxDXCmd.cpp

    r98103 r99857  
    420420
    421421    vboxDXCommandBufferCommit(pDevice);
    422 vboxDXDeviceFlushCommands(pDevice);
    423422    return VINF_SUCCESS;
    424423}
     
    440439
    441440    vboxDXCommandBufferCommit(pDevice);
    442 vboxDXDeviceFlushCommands(pDevice);
    443441    return VINF_SUCCESS;
    444442}
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