VirtualBox

Changeset 102591 in vbox for trunk/src/VBox/Additions/WINNT


Ignore:
Timestamp:
Dec 13, 2023 5:43:40 PM (15 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
160742
Message:

WDDM: removed wrong SetError

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

Legend:

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

    r102408 r102591  
    20392039void vboxDXQueryGetData(PVBOXDX_DEVICE pDevice, PVBOXDXQUERY pQuery, VOID* pData, UINT DataSize, UINT Flags)
    20402040{
    2041     Assert(pQuery->enmQueryState == VBOXDXQUERYSTATE_ISSUED);
     2041    Assert(pQuery->enmQueryState == VBOXDXQUERYSTATE_ISSUED || pQuery->enmQueryState == VBOXDXQUERYSTATE_SIGNALED);
    20422042
    20432043    if (!RT_BOOL(Flags & D3D10_DDI_GET_DATA_DO_NOT_FLUSH))
     
    20722072            if (pData && DataSize >= sizeof(BOOL))
    20732073                *(BOOL *)pData = TRUE;
    2074 
    2075             vboxDXDeviceSetError(pDevice, S_OK);
    20762074        }
    20772075        return;
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/dx/VBoxDX.h

    r102408 r102591  
    818818DECLINLINE(void) vboxDXDeviceSetError(PVBOXDX_DEVICE pDevice, HRESULT hr)
    819819{
    820     Assert(SUCCEEDED(hr) || hr == DXGI_DDI_ERR_WASSTILLDRAWING);
    821     /* This callback is also used for setting S_OK, etc results, so always call it. */
     820    Assert(hr == DXGI_DDI_ERR_WASSTILLDRAWING);
    822821    pDevice->pUMCallbacks->pfnSetErrorCb(pDevice->hRTCoreLayer, hr);
    823822}
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/dx/VBoxDXDDI.cpp

    r102530 r102591  
    11881188)
    11891189{
    1190     //DEBUG_BREAKPOINT_TEST();
     1190    /* This is usually a sign of trouble. Break into debugger. */
     1191    DEBUG_BREAKPOINT_TEST();
    11911192    RT_NOREF(hDevice, pDeviceFunctions);
    11921193    LogFlowFunc(("pDeviceFunctions %p", pDeviceFunctions));
     
    11991200)
    12001201{
    1201     //DEBUG_BREAKPOINT_TEST();
     1202    DEBUG_BREAKPOINT_TEST();
    12021203    RT_NOREF(hDevice, pDeviceFunctions);
    12031204    LogFlowFunc(("pDeviceFunctions %p", pDeviceFunctions));
     
    12101211)
    12111212{
    1212     //DEBUG_BREAKPOINT_TEST();
     1213    DEBUG_BREAKPOINT_TEST();
    12131214    RT_NOREF(hDevice, pDeviceFunctions);
    12141215    LogFlowFunc(("pDeviceFunctions %p", pDeviceFunctions));
     
    12211222)
    12221223{
    1223     //DEBUG_BREAKPOINT_TEST();
     1224    DEBUG_BREAKPOINT_TEST();
    12241225    RT_NOREF(hDevice, pDeviceFunctions);
    12251226    LogFlowFunc(("pDeviceFunctions %p", pDeviceFunctions));
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