VirtualBox

Changeset 67558 in vbox


Ignore:
Timestamp:
Jun 22, 2017 10:04:45 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
116307
Message:

WDDM: Do not fail a VidPN request if ModeSetInterface->addMode returns error, bugref:8904

File:
1 edited

Legend:

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

    r64878 r67558  
    556556        if (!NT_SUCCESS(Status))
    557557        {
    558             WARN(("pfnAddMode failed, Status 0x%x", Status));
     558            WARN(("pfnAddMode (%d x %d) failed, Status 0x%x", size.cx, size.cy, Status));
    559559            VBoxVidPnDumpSourceMode("SourceMode: ", pVidPnModeInfo, "\n");
    560560            NTSTATUS rcNt2 = pVidPnModeSetInterface->pfnReleaseModeInfo(hVidPnModeSet, pVidPnModeInfo);
    561561            AssertNtStatusSuccess(rcNt2);
    562             return Status;
     562            // Continue adding modes into modeset even if a mode was rejected
     563            continue;
    563564        }
    564565    }
     
    616617        if (!NT_SUCCESS(Status))
    617618        {
    618             WARN(("pfnAddMode failed, Status 0x%x", Status));
     619            WARN(("pfnAddMode (%d x %d) failed, Status 0x%x", size.cx, size.cy, Status));
    619620            VBoxVidPnDumpTargetMode("TargetMode: ", pVidPnModeInfo, "\n");
    620621            NTSTATUS rcNt2 = pVidPnModeSetInterface->pfnReleaseModeInfo(hVidPnModeSet, pVidPnModeInfo);
    621622            AssertNtStatusSuccess(rcNt2);
    622             return Status;
     623            // Continue adding modes into modeset even if a mode was rejected
     624            continue;
    623625        }
    624626    }
     
    679681            NTSTATUS rcNt2 = pVidPnModeSetInterface->pfnReleaseModeInfo(hVidPnModeSet, pVidPnModeInfo);
    680682            AssertNtStatusSuccess(rcNt2);
     683            // Continue adding modes into modeset even if a mode was rejected
    681684            continue;
    682685        }
Note: See TracChangeset for help on using the changeset viewer.

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