VirtualBox

Changeset 74477 in vbox for trunk


Ignore:
Timestamp:
Sep 26, 2018 12:47:25 PM (6 years ago)
Author:
vboxsync
Message:

WDDM: renamed VBOXVIDEO_HWTYPE_CROGL to VBOXVIDEO_HWTYPE_VBOX. bugref:8893

Location:
trunk/src/VBox/Additions/WINNT/Graphics/Video
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/common/wddm/VBoxMPIf.h

    r73097 r74477  
    3838typedef enum VBOXVIDEO_HWTYPE
    3939{
    40     VBOXVIDEO_HWTYPE_CROGL  = 0,
     40    VBOXVIDEO_HWTYPE_VBOX   = 0,
    4141    VBOXVIDEO_HWTYPE_VMSVGA = 1,
    4242    VBOXVIDEO_HWTYPE_32BIT  = 0x7fffffff
     
    514514        struct
    515515        {
    516             /* VBOXVIDEO_HWTYPE_CROGL */
     516            /* VBOXVIDEO_HWTYPE_VBOX */
    517517            uint32_t    u32VBox3DCaps;   /* CR_VBOX_CAP_* */
    518         } crogl;
     518        } vbox;
    519519    } u;
    520520} VBOXWDDM_QAI;
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispD3D.cpp

    r73097 r74477  
    58025802        if (pDevice->pDevice9If)
    58035803        {
    5804             if (pDevice->pAdapter->enmHwType == VBOXVIDEO_HWTYPE_CROGL)
     5804            if (pDevice->pAdapter->enmHwType == VBOXVIDEO_HWTYPE_VBOX)
    58055805                pDevice->pAdapter->D3D.D3D.pfnVBoxWineExD3DDev9Term((IDirect3DDevice9Ex *)pDevice->pDevice9If);
    58065806        }
     
    65726572    pAdapter->RtCallbacks = *pOpenData->pAdapterCallbacks;
    65736573    pAdapter->enmHwType   = pAdapterInfo->enmHwType;
    6574     if (pAdapter->enmHwType == VBOXVIDEO_HWTYPE_CROGL)
    6575         pAdapter->u32VBox3DCaps = pAdapterInfo->u.crogl.u32VBox3DCaps;
     6574    if (pAdapter->enmHwType == VBOXVIDEO_HWTYPE_VBOX)
     6575        pAdapter->u32VBox3DCaps = pAdapterInfo->u.vbox.u32VBox3DCaps;
    65766576    pAdapter->AdapterInfo = *pAdapterInfo;
    65776577#ifdef VBOX_WITH_VIDEOHWACCEL
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispD3DIf.cpp

    r72010 r74477  
    12621262
    12631263    HRESULT hr;
    1264     if (pAdapterInfo->enmHwType == VBOXVIDEO_HWTYPE_CROGL)
     1264    if (pAdapterInfo->enmHwType == VBOXVIDEO_HWTYPE_VBOX)
    12651265        hr = vboxDispD3DGlobalDoOpenWine(pD3D);
    12661266    else
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxUhgsmiKmt.cpp

    r73097 r74477  
    331331    }
    332332
    333     if (Query.enmHwType == VBOXVIDEO_HWTYPE_CROGL)
    334         *pu32Caps = Query.u.crogl.u32VBox3DCaps;
     333    if (Query.enmHwType == VBOXVIDEO_HWTYPE_VBOX)
     334        *pu32Caps = Query.u.vbox.u32VBox3DCaps;
    335335    else
    336336        *pu32Caps = 0;
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVdma.cpp

    r73097 r74477  
    11821182static NTSTATUS vboxVdmaCrCtlGetDefaultClientId(PVBOXMP_DEVEXT pDevExt, uint32_t *pu32ClienID)
    11831183{
    1184     if (pDevExt->enmHwType != VBOXVIDEO_HWTYPE_CROGL)
     1184    if (pDevExt->enmHwType != VBOXVIDEO_HWTYPE_VBOX)
    11851185    {
    11861186        /* Should not be called at all in this case. */
     
    13361336NTSTATUS vboxVdmaTexPresentSetAlloc(PVBOXMP_DEVEXT pDevExt, const VBOXWDDM_ALLOC_DATA *pAllocData)
    13371337{
    1338     if (pDevExt->enmHwType != VBOXVIDEO_HWTYPE_CROGL)
     1338    if (pDevExt->enmHwType != VBOXVIDEO_HWTYPE_VBOX)
    13391339    {
    13401340        /* Not used in this case. */
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.cpp

    r74236 r74477  
    816816    }
    817817
    818     pDevExt->enmHwType = u32 ? VBOXVIDEO_HWTYPE_VMSVGA : VBOXVIDEO_HWTYPE_CROGL;
    819 
    820     if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_CROGL)
     818    pDevExt->enmHwType = u32 ? VBOXVIDEO_HWTYPE_VMSVGA : VBOXVIDEO_HWTYPE_VBOX;
     819
     820    if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VBOX)
    821821    {
    822822        pDevExt->f3DEnabled = VBoxMpCrCtlConIs3DSupported();
     
    824824    else
    825825    {
    826         pDevExt->f3DEnabled = f3DSupported;
     826        /* No supported 3D hardware, Fallback to VBox 2D only. */
     827        pDevExt->enmHwType = VBOXVIDEO_HWTYPE_VBOX;
     828        pDevExt->f3DEnabled = FALSE;
    827829    }
    828830}
     
    11491151            {
    11501152#ifdef VBOX_WITH_CROGL
    1151                 if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_CROGL)
     1153                if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VBOX)
    11521154                {
    11531155                    if (pDevExt->f3DEnabled)
     
    13771379
    13781380#ifdef VBOX_WITH_CROGL
    1379     if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_CROGL && pDevExt->u32CrConDefaultClientID)
     1381    if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VBOX && pDevExt->u32CrConDefaultClientID)
    13801382        VBoxMpCrCtlConDisconnect(pDevExt, &pDevExt->CrCtlCon, pDevExt->u32CrConDefaultClientID);
    13811383
     
    23372339                    pQAI->u32Version = VBOXVIDEOIF_VERSION;
    23382340                    pQAI->enmHwType = pDevExt->enmHwType;
    2339                     if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_CROGL)
     2341                    if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VBOX)
    23402342                    {
    23412343#ifdef VBOX_WITH_CROGL
    2342                         pQAI->u.crogl.u32VBox3DCaps = VBoxMpCrGetHostCaps();
     2344                        pQAI->u.vbox.u32VBox3DCaps = VBoxMpCrGetHostCaps();
    23432345#endif
    23442346                    }
     
    28552857        /* wait for all current allocation-related ops are completed */
    28562858        vboxWddmAllocationCleanup(pDevExt, pAlloc);
    2857         if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_CROGL && pAlloc->hSharedHandle && pAlloc->AllocData.hostID)
     2859        if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VBOX && pAlloc->hSharedHandle && pAlloc->AllocData.hostID)
    28582860            VBoxVdmaChromiumParameteriCRSubmit(pDevExt, GL_PIN_TEXTURE_CLEAR_CR, pAlloc->AllocData.hostID);
    28592861        vboxWddmAllocationDestroy(pAlloc);
     
    45614563                if (pEscape->PrivateDriverDataSize == sizeof (*pEscapeHdr))
    45624564                {
    4563                     if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_CROGL)
     4565                    if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VBOX)
    45644566                        pEscapeHdr->u32CmdSpecific = VBoxMpCrGetHostCaps();
    45654567                    else
     
    69006902            }
    69016903
    6902             if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_CROGL)
     6904            if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VBOX)
    69036905            {
    69046906#ifdef VBOX_WITH_CROGL
     
    69516953                                        if (pDevExt->f3DEnabled)
    69526954                                        {
    6953                                             if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_CROGL)
     6955                                            if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VBOX)
    69546956                                            {
    69556957                                                int rc = VBoxMpCrCtlConConnect(pDevExt, &pDevExt->CrCtlCon,
     
    70067008                                if (pDevExt->f3DEnabled)
    70077009                                {
    7008                                     if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_CROGL)
     7010                                    if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VBOX)
    70097011                                    {
    70107012                                        int rc = VBoxMpCrCtlConConnect(pDevExt, &pDevExt->CrCtlCon,
     
    71467148
    71477149#ifdef VBOX_WITH_CROGL
    7148     if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_CROGL && pContext->u32CrConClientID)
     7150    if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VBOX && pContext->u32CrConClientID)
    71497151    {
    71507152        VBoxMpCrCtlConDisconnect(pDevExt, &pDevExt->CrCtlCon, pContext->u32CrConClientID);
     
    73187320    if (bUpdateRectInited && pSource->bVisible)
    73197321    {
    7320         if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_CROGL)
    7321             VBOXVBVA_OP_WITHLOCK(ReportDirtyRect, pDevExt, pSource, &UpdateRect);
     7322        VBOXVBVA_OP_WITHLOCK(ReportDirtyRect, pDevExt, pSource, &UpdateRect);
    73227323    }
    73237324
     
    76597660
    76607661        /* Check whether 3D is provided by the host. */
    7661         VBOXVIDEO_HWTYPE enmHwType = VBOXVIDEO_HWTYPE_CROGL;
     7662        VBOXVIDEO_HWTYPE enmHwType = VBOXVIDEO_HWTYPE_VBOX;
    76627663        BOOL f3DSupported = FALSE;
    76637664
     
    76687669            if (VBoxVGACfgQuery(VBE_DISPI_CFG_ID_VERSION, &u32, 0))
    76697670            {
    7670                 LOGREL(("VGA configuration version %d", u32));
     7671                LOGREL(("WDDM: VGA configuration version %d", u32));
    76717672            }
    76727673
     
    76797680                enmHwType = VBOXVIDEO_HWTYPE_VMSVGA;
    76807681            }
     7682            LOGREL(("WDDM: VGA configuration: 3D %d, hardware type %d", f3DSupported, enmHwType));
    76817683        }
    76827684
    76837685        BOOL fCmdVbva = FALSE;
    7684         if (enmHwType == VBOXVIDEO_HWTYPE_CROGL)
     7686        if (enmHwType == VBOXVIDEO_HWTYPE_VBOX)
    76857687        {
    76867688            /* Try to establish connection to the host 3D service. */
     
    76957697#endif
    76967698        }
    7697         else if (enmHwType == VBOXVIDEO_HWTYPE_VMSVGA)
    7698         {
    7699             fCmdVbva = TRUE;
    7700         }
    77017699        else
    77027700        {
    7703             Status = STATUS_UNSUCCESSFUL;
     7701            /* No supported hardware, fallback to VBox 2D only. */
     7702            enmHwType = VBOXVIDEO_HWTYPE_VBOX;
     7703            f3DSupported = FALSE;
    77047704        }
    77057705
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