VirtualBox

Changeset 22475 in vbox


Ignore:
Timestamp:
Aug 26, 2009 3:12:21 PM (15 years ago)
Author:
vboxsync
Message:

video hw accel: make the new driver not fail with old VMs w/o HGSMI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/vbox.c

    r22448 r22475  
    924924    if (!pCmd)
    925925    {
    926         DISPDBG((0, "VBoxDISP::vboxVHWAQueryHostInfo1: vboxVHWACommandCreate failed\n"));
     926        DISPDBG((0, "VBoxDISP::vboxVHWAQueryHostInfo2: vboxVHWACommandCreate failed\n"));
    927927        return NULL;
    928928    }
     
    948948int vboxVHWAInitHostInfo1(PPDEV ppdev)
    949949{
    950     VBOXVHWACMD_QUERYINFO1* pInfo = vboxVHWAQueryHostInfo1(ppdev);
     950    VBOXVHWACMD_QUERYINFO1* pInfo;
     951
     952    if (!ppdev->bHGSMISupported)
     953        return VERR_NOT_SUPPORTED;
     954
     955    pInfo = vboxVHWAQueryHostInfo1(ppdev);
    951956    if(!pInfo)
    952957    {
     
    969974int vboxVHWAInitHostInfo2(PPDEV ppdev, DWORD *pFourCC)
    970975{
    971     VBOXVHWACMD_QUERYINFO2* pInfo = vboxVHWAQueryHostInfo2(ppdev, ppdev->vhwaInfo.numFourCC);
     976    VBOXVHWACMD_QUERYINFO2* pInfo;
    972977    int rc = VINF_SUCCESS;
     978
     979    if (!ppdev->bHGSMISupported)
     980        return VERR_NOT_SUPPORTED;
     981
     982    pInfo = vboxVHWAQueryHostInfo2(ppdev, ppdev->vhwaInfo.numFourCC);
    973983
    974984    Assert(pInfo);
     
    9941004{
    9951005    int rc = VERR_GENERAL_FAILURE;
    996     VBOXVHWACMD* pCmd = vboxVHWACommandCreate (ppdev, VBOXVHWACMD_TYPE_ENABLE, 0);
     1006    VBOXVHWACMD* pCmd;
     1007
     1008    if (!ppdev->bHGSMISupported)
     1009        return VERR_NOT_SUPPORTED;
     1010
     1011    pCmd = vboxVHWACommandCreate (ppdev, VBOXVHWACMD_TYPE_ENABLE, 0);
    9971012    if (!pCmd)
    9981013    {
    999         DISPDBG((0, "VBoxDISP::vboxVHWAQueryHostInfo1: vboxVHWACommandCreate failed\n"));
     1014        DISPDBG((0, "VBoxDISP::vboxVHWAEnable: vboxVHWACommandCreate failed\n"));
    10001015        return rc;
    10011016    }
     
    10161031{
    10171032    int rc = VERR_GENERAL_FAILURE;
    1018     VBOXVHWACMD* pCmd = vboxVHWACommandCreate (ppdev, VBOXVHWACMD_TYPE_DISABLE, 0);
     1033    VBOXVHWACMD* pCmd;
     1034
     1035    if (!ppdev->bHGSMISupported)
     1036        return VERR_NOT_SUPPORTED;
     1037
     1038    pCmd = vboxVHWACommandCreate (ppdev, VBOXVHWACMD_TYPE_DISABLE, 0);
    10191039    if (!pCmd)
    10201040    {
    1021         DISPDBG((0, "VBoxDISP::vboxVHWAQueryHostInfo1: vboxVHWACommandCreate failed\n"));
     1041        DISPDBG((0, "VBoxDISP::vboxVHWADisable: vboxVHWACommandCreate failed\n"));
    10221042        return rc;
    10231043    }
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