VirtualBox

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


Ignore:
Timestamp:
Dec 17, 2015 4:35:51 PM (9 years ago)
Author:
vboxsync
Message:

WDDM: bugref:8170: do not abort driver loading if the host does not have enough 3D capabilities

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

Legend:

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

    r58181 r59177  
    10571057    if (RT_FAILURE(rc))
    10581058    {
    1059         LOGREL(("VBoxMpCrCtlConConnectHgcm failed with rc(%d), 3D not supported!"));
     1059        LOGREL(("VBoxMpCrCtlConConnectHgcm failed with rc(%d), 3D not supported!", rc));
    10601060        return;
    10611061    }
    1062 
    1063     g_VBoxMpCr3DSupported = 1;
    10641062
    10651063    rc = vboxMpCrCtlConGetCapsNew(&CrCtlCon, u32ClientID, &g_VBoxMpCrHostCapsInfo);
     
    10761074    }
    10771075
     1076    if (g_VBoxMpCrHostCapsInfo.u32Caps & CR_VBOX_CAP_HOST_CAPS_NOT_SUFFICIENT)
     1077    {
     1078        LOGREL(("Insufficient host 3D capabilities"));
     1079        g_VBoxMpCr3DSupported = 0;
     1080        memset(&g_VBoxMpCrHostCapsInfo, 0, sizeof (g_VBoxMpCrHostCapsInfo));
     1081    }
     1082    else
     1083    {
     1084        g_VBoxMpCr3DSupported = 1;
     1085    }
     1086
    10781087#if 0 //ndef DEBUG_misha
    10791088    g_VBoxMpCrHostCapsInfo.u32Caps &= ~CR_VBOX_CAP_CMDVBVA;
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.cpp

    r58974 r59177  
    75227522#endif
    75237523        }
    7524         else
    7525         {
    7526             /* If host reports minimal OpenGL capabilities. */
    7527             if (VBoxMpCrGetHostCaps() & CR_VBOX_CAP_HOST_CAPS_NOT_SUFFICIENT)
    7528             {
    7529                 LOGREL(("Host reported minimal OpenGL capabilities. Rolling back."));
    7530                 /* The proper fix would be to switch driver to display-only mode, however, it is currently broken (at least for Win8.1 guests).
    7531                    'Status = STATUS_UNSUCCESSFUL;' prevents driver from loading and therefore forces Windows to use its default driver => 3D content is shown.
    7532                    The 'g_VBoxDisplayOnly = 1;' is commented out intentionally; please uncomment when display-only mode will be
    7533                    fixed and remove 'Status = STATUS_UNSUCCESSFUL;' one. */
    7534                 Status = STATUS_UNSUCCESSFUL;
    7535 #ifdef VBOX_WDDM_WIN8
    7536                 //g_VBoxDisplayOnly = 1;
    7537 #endif
    7538             }
    7539         }
    75407524
    75417525#if 0 //defined(DEBUG_misha) && defined(VBOX_WDDM_WIN8)
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