VirtualBox

Changeset 89171 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
May 19, 2021 2:10:51 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
144512
Message:

Devices/Graphics: Removed VBOX_VMSVGA3D_WITH_WINE_OPENGL, because it is not used.

Location:
trunk/src/VBox/Devices/Graphics
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-internal.h

    r89163 r89171  
    392392
    393393#endif /* VMSVGA3D_OPENGL */
    394 
    395 #ifdef VMSVGA3D_DIRECT3D
    396 /* Enable to use Wine to convert D3D to opengl */
    397 //#define VBOX_VMSVGA3D_WITH_WINE_OPENGL
    398 #endif
    399394
    400395
     
    802797#ifdef RT_OS_WINDOWS
    803798# ifdef VMSVGA3D_DIRECT3D
    804 #  ifdef VBOX_VMSVGA3D_WITH_WINE_OPENGL
    805     IDirect3DDevice9       *pDevice;
    806 #  else
    807799    IDirect3DDevice9Ex     *pDevice;
    808 #  endif
    809800# else
    810801    /* Device context of the context window. */
     
    10491040#ifdef RT_OS_WINDOWS
    10501041# ifdef VMSVGA3D_DIRECT3D
    1051 #  ifdef VBOX_VMSVGA3D_WITH_WINE_OPENGL
    1052     IDirect3D9             *pD3D9;
    1053 #  else
    10541042    IDirect3D9Ex           *pD3D9;
    1055 #  endif
    10561043    D3DCAPS9                caps;
    10571044    bool                    fSupportedSurfaceINTZ;
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-win.cpp

    r89163 r89171  
    224224        return VINF_SUCCESS;    /* already initialized (load state) */
    225225
    226 #ifdef VBOX_VMSVGA3D_WITH_WINE_OPENGL
    227     pState->pD3D9 = Direct3DCreate9(D3D_SDK_VERSION);
    228     AssertReturn(pState->pD3D9, VERR_INTERNAL_ERROR);
    229 #else
    230226    /* Direct3DCreate9Ex was introduced in Vista, so resolve it dynamically. */
    231227    typedef HRESULT (WINAPI *PFNDIRECT3DCREATE9EX)(UINT, IDirect3D9Ex **);
     
    236232    hr = pfnDirect3dCreate9Ex(D3D_SDK_VERSION, &pState->pD3D9);
    237233    AssertReturn(hr == D3D_OK, VERR_INTERNAL_ERROR);
    238 #endif
     234
    239235    D3DADAPTER_IDENTIFIER9 ai9;
    240236    hr = pState->pD3D9->GetAdapterIdentifier(D3DADAPTER_DEFAULT, 0, &ai9);
     
    13391335{
    13401336    RT_NOREF(pState);
    1341 #ifndef VBOX_VMSVGA3D_WITH_WINE_OPENGL
     1337
    13421338    Assert(pSurface->id != SVGA3D_INVALID_ID);
    13431339
     
    13721368    hr = pSurface->pQuery->Issue(D3DISSUE_END);
    13731369    AssertMsgReturn(hr == D3D_OK, ("vmsvga3dSurfaceTrackUsage: Issue failed with %x\n", hr), VERR_INTERNAL_ERROR);
    1374 #endif /* !VBOX_VMSVGA3D_WITH_WINE_OPENGL */
    13751370
    13761371    return VINF_SUCCESS;
     
    13991394int vmsvga3dSurfaceFlush(PVMSVGA3DSURFACE pSurface)
    14001395{
    1401 #ifndef VBOX_VMSVGA3D_WITH_WINE_OPENGL
    14021396    HRESULT hr;
    14031397
     
    14211415
    14221416    AssertMsgReturn(hr == S_OK, ("vmsvga3dSurfaceFinishDrawing: GetData failed with %x\n", hr), VERR_INTERNAL_ERROR);
    1423 #endif /* !VBOX_VMSVGA3D_WITH_WINE_OPENGL */
    14241417
    14251418    return VINF_SUCCESS;
     
    14441437       pTexture = pSurface->u.pTexture;
    14451438
    1446 #ifndef VBOX_VMSVGA3D_WITH_WINE_OPENGL
    14471439    if (pSurface->idAssociatedContext != pContext->id)
    14481440    {
     
    14691461        }
    14701462    }
    1471 #else
    1472     RT_NOREF(pContext);
    1473 #endif
    14741463
    14751464    if (pSurface->enmD3DResType == VMSVGA3D_D3DRESTYPE_CUBE_TEXTURE)
     
    26702659    hr = Params.hrc;
    26712660
    2672 #elif defined(VBOX_VMSVGA3D_WITH_WINE_OPENGL)
    2673     hr = pState->pD3D9->CreateDevice(D3DADAPTER_DEFAULT,
    2674                                      D3DDEVTYPE_HAL,
    2675                                      pContext->hwnd,
    2676                                      D3DCREATE_MULTITHREADED | D3DCREATE_MIXED_VERTEXPROCESSING, //D3DCREATE_HARDWARE_VERTEXPROCESSING,
    2677                                      &PresParam,
    2678                                      &pContext->pDevice);
    26792661#else
    26802662    /** @todo Docs indicates that we should be using
     
    28642846static int vmsvga3dContextTrackUsage(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext)
    28652847{
    2866 #ifndef VBOX_VMSVGA3D_WITH_WINE_OPENGL
    28672848    PVMSVGA3DSTATE pState = pThisCC->svga.p3dState;
    28682849    AssertReturn(pState, VERR_NO_MEMORY);
     
    28772858        if (pContext->state.aRenderTargets[i] != SVGA3D_INVALID_ID)
    28782859            vmsvga3dSurfaceTrackUsageById(pState, pContext, pContext->state.aRenderTargets[i]);
    2879 #endif
     2860
    28802861    return VINF_SUCCESS;
    28812862}
     
    30433024            PresParam.PresentationInterval          = D3DPRESENT_INTERVAL_IMMEDIATE;;
    30443025
    3045 #ifdef VBOX_VMSVGA3D_WITH_WINE_OPENGL
    3046             hr = pContext->pDevice->Reset(&PresParam);
    3047             AssertMsgReturn(hr == D3D_OK, ("vmsvga3dChangeMode: Reset failed with %x\n", hr), VERR_INTERNAL_ERROR);
    3048 #else
    30493026            /* ResetEx does not trash the device state */
    30503027            hr = pContext->pDevice->ResetEx(&PresParam, NULL);
    30513028            AssertMsgReturn(hr == D3D_OK, ("vmsvga3dChangeMode: Reset failed with %x\n", hr), VERR_INTERNAL_ERROR);
    3052 #endif
     3029
    30533030            Log(("vmsvga3dChangeMode: Backbuffer (%d,%d) count=%d format=%x\n", PresParam.BackBufferWidth, PresParam.BackBufferHeight, PresParam.BackBufferCount, PresParam.BackBufferFormat));
    30543031
     
    44404417                             VERR_INVALID_PARAMETER);
    44414418
    4442 #ifndef VBOX_VMSVGA3D_WITH_WINE_OPENGL
    44434419                if (pSurface->idAssociatedContext != cid)
    44444420                {
     
    44514427                }
    44524428                else
    4453 #endif
    44544429                    hr = pContext->pDevice->SetTexture(d3dSampler, pSurface->u.pTexture);
    44554430
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