VirtualBox

Changeset 94584 in vbox


Ignore:
Timestamp:
Apr 13, 2022 10:34:30 AM (3 years ago)
Author:
vboxsync
Message:

Additions: WDDM miniport does not depend on VBOX_WITH_MESA3D, this define is for gallium based user mode driver; WDDM miniport should use VMSVGA device header files instead of Mesa ones.

Location:
trunk/src/VBox/Additions
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/3D/Config.kmk

    r93115 r94584  
    3737TEMPLATE_VBoxMesa3DGuestR3Dll_DEFS     = $(TEMPLATE_NewerVccVBoxGuestR3Dll_DEFS) \
    3838        VBOX_WITH_MESA3D
     39ifdef VBOX_WITH_VMSVGA
     40TEMPLATE_VBoxMesa3DGuestR3Dll_DEFS    += \
     41        VBOX_WITH_VMSVGA
     42endif
    3943TEMPLATE_VBoxMesa3DGuestR3Dll_SDKS.win = $(TEMPLATE_NewerVccVBoxGuestR3Dll_SDKS) \
    4044        $(VBOX_WINDDK_GST_W8)
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/common/wddm/VBoxMPIf.h

    r94524 r94584  
    290290            uint64_t u64UmInfo;
    291291        } vbox;
    292 #ifdef VBOX_WITH_MESA3D
     292#ifdef VBOX_WITH_VMSVGA
    293293        struct
    294294        {
     
    430430} VBOXDISPIFESCAPE_SETALLOCHOSTID, *PVBOXDISPIFESCAPE_SETALLOCHOSTID;
    431431
    432 #ifdef VBOX_WITH_MESA3D
     432#ifdef VBOX_WITH_VMSVGA
    433433
    434434#define VBOXWDDM_F_GA_CONTEXT_EXTENDED 0x00000001
     
    566566} VBOXDISPIFESCAPE_GAFENCEUNREF;
    567567
    568 #endif /* VBOX_WITH_MESA3D */
    569 
    570 #if defined(VBOX_WITH_MESA3D) || defined(VBOX_WITH_VMSVGA3D_DX)
    571568#include <VBoxGaHWInfo.h>
    572569#endif
     
    594591            uint32_t    u32VBox3DCaps;   /* CR_VBOX_CAP_* */
    595592        } vbox;
    596 #if defined(VBOX_WITH_MESA3D) || defined(VBOX_WITH_VMSVGA3D_DX)
     593#if defined(VBOX_WITH_VMSVGA)
    597594        struct
    598595        {
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/Makefile.kmk

    r94523 r94584  
    136136        $(VBOX_PATH_ADDITIONS_LIB)/VBoxWddmUmKmt$(VBOX_SUFF_LIB)
    137137
     138ifdef VBOX_WITH_VMSVGA
     139VBoxDispD3D_DEFS     += VBOX_WITH_VMSVGA
     140VBoxDispD3D_INCS     += \
     141        $(PATH_ROOT)/src/VBox/Additions/3D/win/include
     142endif
     143
    138144ifdef VBOX_WITH_MESA3D
    139145VBoxDispD3D_DEFS     += VBOX_WITH_MESA3D
     
    184190DLLS += VBoxDX
    185191VBoxDX_TEMPLATE = VBoxGuestR3DllMinVista
    186 VBoxDX_DEFS     = UNICODE _UNICODE VBOX_WITH_VMSVGA3D_DX
     192VBoxDX_DEFS     = UNICODE _UNICODE VBOX_WITH_VMSVGA VBOX_WITH_VMSVGA3D_DX
    187193VBoxDX_DEFS    += D3D_UMD_INTERFACE_VERSION=D3D_UMD_INTERFACE_VERSION_WIN8
    188194VBoxDX_DEFS    += DXGKDDI_INTERFACE_VERSION=DXGKDDI_INTERFACE_VERSION_WIN8
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/Makefile.kmk

    r94524 r94584  
    1818SUB_DEPTH = ../../../../../../..
    1919include $(KBUILD_PATH)/subheader.kmk
    20 
    21 ifdef VBOX_WITH_MESA3D
    22  ifndef VBOX_MESA3D_CONFIG_KMK_INCLUDED
    23   include $(PATH_ROOT)/src/VBox/Additions/3D/Config.kmk
    24  endif
    25 endif
    2620
    2721#
     
    152146        $(PATH_SDK_$(VBOX_WINDDK_GST_W8)_LIB)/memcmp.lib
    153147
    154  ifdef VBOX_WITH_MESA3D
    155   VBoxWddm_DEFS           += VBOX_WITH_MESA3D
     148 ifdef VBOX_WITH_VMSVGA
     149  VBoxWddm_DEFS           += VBOX_WITH_VMSVGA
    156150  VBoxWddm_DEFS           += __STDC_VERSION__=0    # for mesa include/c99_compat.h
    157151  VBoxWddm_DEFS           += WIN9X_COMPAT_SPINLOCK # to avoid multiple KeInitializeSpinLock on amd64
    158152  VBoxWddm_INCS           += \
    159         $(VBOX_PATH_3D)/win/include \
    160         $(VBOX_PATH_VMSVGA_INC)
     153        $(PATH_ROOT)/src/VBox/Additions/3D/win/include \
     154        $(PATH_ROOT)/src/VBox/Devices/Graphics/vmsvga_include
    161155  VBoxWddm_SOURCES        += \
    162156        wddm/gallium/Svga.cpp \
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/common/VBoxMPDevExt.h

    r93115 r94584  
    4444    ULONG cbVRAM;
    4545    ULONG ulApertureSize;
    46 #ifdef VBOX_WITH_MESA3D
     46#ifdef VBOX_WITH_VMSVGA
    4747    PHYSICAL_ADDRESS phFIFO;
    4848    ULONG cbFIFO;
     
    5252} VBOXWDDM_HWRESOURCES, *PVBOXWDDM_HWRESOURCES;
    5353
    54 #ifdef VBOX_WITH_MESA3D
     54#ifdef VBOX_WITH_VMSVGA
    5555typedef struct VBOXWDDM_EXT_GA *PVBOXWDDM_EXT_GA;
    5656#endif
     
    219219#endif
    220220
    221 #ifdef VBOX_WITH_MESA3D
     221#ifdef VBOX_WITH_VMSVGA
    222222   PVBOXWDDM_EXT_GA pGa;                       /* Pointer to Gallium backend data. */
    223223#endif
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPTypes.h

    r93115 r94584  
    4141#define VBOXWDDM_DEFAULT_REFRESH_RATE 60
    4242
    43 #ifndef VBOX_WITH_MESA3D
     43#ifndef VBOX_WITH_VMSVGA
    4444/* one page size */
    4545#define VBOXWDDM_C_DMA_BUFFER_SIZE         0x1000
     
    5252#define VBOXWDDM_C_PATH_LOCATION_LIST_SIZE 0xc00
    5353
    54 #ifndef VBOX_WITH_MESA3D
     54#ifndef VBOX_WITH_VMSVGA
    5555#define VBOXWDDM_C_POINTER_MAX_WIDTH  64
    5656#define VBOXWDDM_C_POINTER_MAX_HEIGHT 64
     
    246246    VBOXVIDEOCM_CTX CmContext;
    247247    VBOXVIDEOCM_ALLOC_CONTEXT AllocContext;
    248 #ifdef VBOX_WITH_MESA3D
     248#ifdef VBOX_WITH_VMSVGA
    249249    uint32_t u32Cid;               /* SVGA context id of this context. */
    250250#endif
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.cpp

    r94524 r94584  
    3939#include <VBox/Version.h>
    4040
    41 #ifdef VBOX_WITH_MESA3D
     41#ifdef VBOX_WITH_VMSVGA
    4242#include "gallium/VBoxMPGaWddm.h"
    4343#endif
     
    662662                   {
    663663                       case CmResourceTypePort:
    664 #ifdef VBOX_WITH_MESA3D
     664#ifdef VBOX_WITH_VMSVGA
    665665                           AssertBreak(pHwResources->phIO.QuadPart == 0);
    666666                           pHwResources->phIO = pPRc->u.Port.Start;
     
    671671                           break;
    672672                       case CmResourceTypeMemory:
    673 #ifdef VBOX_WITH_MESA3D
     673#ifdef VBOX_WITH_VMSVGA
    674674                           if (pHwResources->phVRAM.QuadPart)
    675675                           {
     
    10251025                    pDevExt->f3DEnabled = FALSE;
    10261026                }
    1027 #ifdef VBOX_WITH_MESA3D
     1027#ifdef VBOX_WITH_VMSVGA
    10281028                else if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VMSVGA)
    10291029                {
     
    10361036                    }
    10371037                }
    1038 #endif /* VBOX_WITH_MESA3D */
     1038#endif /* VBOX_WITH_VMSVGA */
    10391039                else
    10401040                {
     
    11911191                    VBoxWddmVModesInit(pDevExt);
    11921192
    1193 #ifdef VBOX_WITH_MESA3D
     1193#ifdef VBOX_WITH_VMSVGA
    11941194                    if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VMSVGA)
    11951195                    {
     
    12511251    NTSTATUS Status = STATUS_SUCCESS;
    12521252
    1253 #ifdef VBOX_WITH_MESA3D
     1253#ifdef VBOX_WITH_VMSVGA
    12541254     if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VMSVGA)
    12551255     {
     
    16231623            pCaps->MaxPointerWidth  = VBOXWDDM_C_POINTER_MAX_WIDTH;
    16241624            pCaps->MaxPointerHeight = VBOXWDDM_C_POINTER_MAX_HEIGHT;
    1625 #ifdef VBOX_WITH_MESA3D
     1625#ifdef VBOX_WITH_VMSVGA
    16261626            if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VBOX)
    16271627            {
     
    16661666                /** @todo this correlates with pCaps->SchedulingCaps.MultiEngineAware */
    16671667                pCaps->GpuEngineTopology.NbAsymetricProcessingNodes = VBOXWDDM_NUM_NODES;
    1668 #ifdef VBOX_WITH_MESA3D
     1668#ifdef VBOX_WITH_VMSVGA
    16691669                if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VMSVGA)
    16701670                {
     
    17771777                        pQAI->u.vbox.u32VBox3DCaps = 0;
    17781778                    }
    1779 #ifdef VBOX_WITH_MESA3D
     1779#ifdef VBOX_WITH_VMSVGA
    17801780                    else if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VMSVGA)
    17811781                        GaQueryInfo(pDevExt->pGa, pDevExt->enmHwType, &pQAI->u.vmsvga.HWInfo);
     
    18491849    pCreateDevice->pInfo = NULL;
    18501850
    1851 #ifdef VBOX_WITH_MESA3D
     1851#ifdef VBOX_WITH_VMSVGA
    18521852     if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VMSVGA)
    18531853     {
     
    28862886bool vboxWddmUpdatePointerShape(PVBOXMP_DEVEXT pDevExt, PVIDEO_POINTER_ATTRIBUTES pAttrs, uint32_t cbLength)
    28872887{
    2888 #ifdef VBOX_WITH_MESA3D
     2888#ifdef VBOX_WITH_VMSVGA
    28892889    if (pDevExt->enmHwType != VBOXVIDEO_HWTYPE_VBOX)
    28902890    {
     
    34773477                for (int i = 0; i < VBoxCommonFromDeviceExt(pDevExt)->cDisplays; ++i)
    34783478                {
    3479 #ifdef VBOX_WITH_MESA3D
     3479#ifdef VBOX_WITH_VMSVGA
    34803480                    if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VMSVGA)
    34813481                    {
     
    34913491            }
    34923492            default:
    3493 #ifdef VBOX_WITH_MESA3D
     3493#ifdef VBOX_WITH_VMSVGA
    34943494                Status = GaDxgkDdiEscape(hAdapter, pEscape);
    34953495                if (NT_SUCCESS(Status) || Status != STATUS_NOT_SUPPORTED)
     
    36483648    }
    36493649
    3650 #ifdef VBOX_WITH_MESA3D
     3650#ifdef VBOX_WITH_VMSVGA
    36513651    if (pDevExt->enmHwType != VBOXVIDEO_HWTYPE_VMSVGA)
    36523652#endif
     
    36963696     * Report the source.
    36973697     */
    3698 #ifdef VBOX_WITH_MESA3D
     3698#ifdef VBOX_WITH_VMSVGA
    36993699    if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VMSVGA)
    37003700    {
     
    37363736    }
    37373737
    3738 #ifdef VBOX_WITH_MESA3D
     3738#ifdef VBOX_WITH_VMSVGA
    37393739    if (pDevExt->enmHwType != VBOXVIDEO_HWTYPE_VMSVGA)
    37403740#endif
     
    37603760    }
    37613761
    3762 #ifdef VBOX_WITH_MESA3D
     3762#ifdef VBOX_WITH_VMSVGA
    37633763    if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VMSVGA)
    37643764    {
     
    38533853        VBoxDumpSourceTargetArrays(paSources, paTargets, VBoxCommonFromDeviceExt(pDevExt)->cDisplays);
    38543854
    3855 #ifdef VBOX_WITH_MESA3D
     3855#ifdef VBOX_WITH_VMSVGA
    38563856        if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VMSVGA)
    38573857        {
     
    40914091    vboxVDbgBreakFv();
    40924092
    4093 #ifdef VBOX_WITH_MESA3D
     4093#ifdef VBOX_WITH_VMSVGA
    40944094    PVBOXWDDM_DEVICE pDevice = (PVBOXWDDM_DEVICE)hDevice;
    40954095    PVBOXMP_DEVEXT pDevExt = pDevice->pAdapter;
     
    44414441                        break;
    44424442                    }
    4443 #ifdef VBOX_WITH_MESA3D
     4443#ifdef VBOX_WITH_VMSVGA
    44444444                    case VBOXWDDM_CONTEXT_TYPE_GA_3D:
    44454445                    {
     
    45294529            break;
    45304530        }
    4531 #ifdef VBOX_WITH_MESA3D
     4531#ifdef VBOX_WITH_VMSVGA
    45324532        case VBOXWDDM_CONTEXT_TYPE_GA_3D:
    45334533        {
     
    46324632
    46334633    PVBOXMP_DEVEXT pDevExt = (PVBOXMP_DEVEXT)hAdapter;
    4634 #ifdef VBOX_WITH_MESA3D
     4634#ifdef VBOX_WITH_VMSVGA
    46354635    if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VMSVGA)
    46364636    {
     
    48284828                                       ULONG MessageNumber)
    48294829{
    4830 #ifdef VBOX_WITH_MESA3D
     4830#ifdef VBOX_WITH_VMSVGA
    48314831    BOOLEAN const fVMSVGA = GaDxgkDdiInterruptRoutine(MiniportDeviceContext, MessageNumber);
    48324832#else
     
    48424842    PVBOXMP_DEVEXT pDevExt = (PVBOXMP_DEVEXT)MiniportDeviceContext;
    48434843
    4844 #ifdef VBOX_WITH_MESA3D
     4844#ifdef VBOX_WITH_VMSVGA
    48454845    GaDxgkDdiDpcRoutine(MiniportDeviceContext);
    48464846#endif
     
    49304930    DriverInitializationData.DxgkDdiDpcRoutine        = DxgkDdiDpcRoutine;
    49314931
    4932 #ifdef VBOX_WITH_MESA3D
     4932#ifdef VBOX_WITH_VMSVGA
    49334933    if (enmHwType == VBOXVIDEO_HWTYPE_VMSVGA)
    49344934    {
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