VirtualBox

Changeset 33572 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 28, 2010 4:39:36 PM (14 years ago)
Author:
vboxsync
Message:

wddm/3d: enable hgsmi for chromium

Location:
trunk/src/VBox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r33540 r33572  
    53945394    LogFlow(("vgaR3Destruct:\n"));
    53955395
     5396#ifdef VBOX_WITH_VDMA
     5397    vboxVDMADestruct(pThis->pVdma);
     5398#endif
     5399
    53965400    /*
    53975401     * Free MM heap pointers.
  • trunk/src/VBox/Devices/Graphics/DevVGA_VDMA.cpp

    r33306 r33572  
    2626#include "HGSMI/HGSMIHostHlp.h"
    2727
     28#ifdef VBOX_VDMA_WITH_WORKERTHREAD
    2829typedef enum
    2930{
     
    7677    VBOXVDMAPIPE_CMD aCmds[1];
    7778} VBOXVDMAPIPE_CMD_POOL, *PVBOXVDMAPIPE_CMD_POOL;
     79#endif
    7880
    7981typedef struct VBOXVDMAHOST
    8082{
     83    PHGSMIINSTANCE pHgsmi;
     84    PVGASTATE pVGAState;
     85    bool bEnabled;
     86#ifdef VBOX_VDMA_WITH_WORKERTHREAD
    8187    VBOXVDMAPIPE Pipe;
    8288    HGSMILIST PendingList;
    8389    RTTHREAD hWorkerThread;
    84     PHGSMIINSTANCE pHgsmi;
    85     PVGASTATE pVGAState;
    86     bool bEnabled;
    8790    VBOXVDMAPIPE_CMD_POOL CmdPool;
     91#endif
    8892} VBOXVDMAHOST, *PVBOXVDMAHOST;
    8993
     
    682686}
    683687
     688#ifdef VBOX_VDMA_WITH_WORKERTHREAD
     689
    684690int vboxVDMAPipeConstruct(PVBOXVDMAPIPE pPipe)
    685691{
     
    909915    return VINF_SUCCESS;
    910916}
     917#endif
    911918
    912919static void vboxVDMACommandProcess(PVBOXVDMAHOST pVdma, PVBOXVDMACBUF_DR pCmd)
     
    977984}
    978985
     986#ifdef VBOX_VDMA_WITH_WORKERTHREAD
    979987typedef struct
    980988{
     
    10551063    return rc;
    10561064}
     1065#endif
    10571066
    10581067int vboxVDMAConstruct(PVGASTATE pVGAState, struct VBOXVDMAHOST **ppVdma, uint32_t cPipeElements)
    10591068{
    10601069    int rc;
     1070#ifdef VBOX_VDMA_WITH_WORKERTHREAD
    10611071    PVBOXVDMAHOST pVdma = (PVBOXVDMAHOST)RTMemAllocZ (RT_OFFSETOF(VBOXVDMAHOST, CmdPool.aCmds[cPipeElements]));
     1072#else
     1073    PVBOXVDMAHOST pVdma = (PVBOXVDMAHOST)RTMemAllocZ (sizeof (*pVdma));
     1074#endif
    10621075    Assert(pVdma);
    10631076    if (pVdma)
    10641077    {
    1065         hgsmiListInit(&pVdma->PendingList);
    10661078        pVdma->pHgsmi = pVGAState->pHGSMI;
    10671079        pVdma->pVGAState = pVGAState;
     1080#ifdef VBOX_VDMA_WITH_WORKERTHREAD
     1081        hgsmiListInit(&pVdma->PendingList);
    10681082        rc = vboxVDMAPipeConstruct(&pVdma->Pipe);
    10691083        AssertRC(rc);
     
    10801094                    hgsmiListAppend(&pVdma->CmdPool.List, &pVdma->CmdPool.aCmds[i].Entry);
    10811095                }
    1082 #if 0 //def VBOX_WITH_CRHGSMI
     1096# if 0 //def VBOX_WITH_CRHGSMI
    10831097                int tmpRc = vboxVDMACrCtlHgsmiSetup(pVdma);
    1084 # ifdef DEBUG_misha
     1098#  ifdef DEBUG_misha
    10851099                AssertRC(tmpRc);
     1100#  endif
    10861101# endif
    10871102#endif
    10881103                *ppVdma = pVdma;
    10891104                return VINF_SUCCESS;
     1105#ifdef VBOX_VDMA_WITH_WORKERTHREAD
    10901106            }
    10911107
     
    10951111
    10961112        RTMemFree(pVdma);
     1113#endif
    10971114    }
    10981115    else
     
    11021119}
    11031120
    1104 int vboxVDMADestruct(struct VBOXVDMAHOST **pVdma)
    1105 {
     1121int vboxVDMADestruct(struct VBOXVDMAHOST *pVdma)
     1122{
     1123#ifdef VBOX_VDMA_WITH_WORKERTHREAD
     1124    /* @todo: implement*/
    11061125    AssertBreakpoint();
     1126#endif
     1127    RTMemFree(pVdma);
    11071128    return VINF_SUCCESS;
    11081129}
    11091130
     1131#ifdef VBOX_VDMA_WITH_WORKERTHREAD
    11101132typedef struct
    11111133{
     
    11351157    return false;
    11361158}
     1159#endif
    11371160
    11381161void vboxVDMAControl(struct VBOXVDMAHOST *pVdma, PVBOXVDMA_CTL pCmd)
     
    12051228#endif
    12061229
     1230    int rc = VERR_NOT_IMPLEMENTED;
     1231
     1232#ifdef VBOX_VDMA_WITH_WORKERTHREAD
     1233
    12071234#ifdef DEBUG_misha
    12081235    Assert(0);
     
    12141241    Context.Cmd.u.pDr = pCmd;
    12151242
    1216     int rc = vboxVDMAPipeModifyClient(&pVdma->Pipe, vboxVDMACommandSubmitCb, &Context);
     1243    rc = vboxVDMAPipeModifyClient(&pVdma->Pipe, vboxVDMACommandSubmitCb, &Context);
    12171244    AssertRC(rc);
    12181245    if (RT_SUCCESS(rc))
     
    12261253        rc = VERR_OUT_OF_RESOURCES;
    12271254    }
    1228 
     1255#endif
    12291256    /* failure */
    12301257    Assert(RT_FAILURE(rc));
  • trunk/src/VBox/GuestHost/OpenGL/Makefile.kmk

    r33561 r33572  
    8989        $(VBOX_LIB_IPRT_GUEST_R3_SHARED)
    9090ifdef VBOX_WITH_CRHGSMI
    91 VBoxOGLcrutil_DEFS    += VBOX_WITH_CRHGSMI
    92 VBoxOGLcrutil_LIBS    += $(VBOX_PATH_ADDITIONS_LIB)/VBoxCrHgsmi$(VBOX_SUFF_LIB)
     91VBoxOGLcrutil_DEFS.win.x86    += VBOX_WITH_CRHGSMI
     92VBoxOGLcrutil_LIBS.win.x86    += $(VBOX_PATH_ADDITIONS_LIB)/VBoxCrHgsmi$(VBOX_SUFF_LIB)
    9393endif
    9494VBoxOGLcrutil_CLEAN = \
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