Changeset 94584 in vbox for trunk/src/VBox
- Timestamp:
- Apr 13, 2022 10:34:30 AM (3 years ago)
- Location:
- trunk/src/VBox/Additions
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/3D/Config.kmk
r93115 r94584 37 37 TEMPLATE_VBoxMesa3DGuestR3Dll_DEFS = $(TEMPLATE_NewerVccVBoxGuestR3Dll_DEFS) \ 38 38 VBOX_WITH_MESA3D 39 ifdef VBOX_WITH_VMSVGA 40 TEMPLATE_VBoxMesa3DGuestR3Dll_DEFS += \ 41 VBOX_WITH_VMSVGA 42 endif 39 43 TEMPLATE_VBoxMesa3DGuestR3Dll_SDKS.win = $(TEMPLATE_NewerVccVBoxGuestR3Dll_SDKS) \ 40 44 $(VBOX_WINDDK_GST_W8) -
trunk/src/VBox/Additions/WINNT/Graphics/Video/common/wddm/VBoxMPIf.h
r94524 r94584 290 290 uint64_t u64UmInfo; 291 291 } vbox; 292 #ifdef VBOX_WITH_ MESA3D292 #ifdef VBOX_WITH_VMSVGA 293 293 struct 294 294 { … … 430 430 } VBOXDISPIFESCAPE_SETALLOCHOSTID, *PVBOXDISPIFESCAPE_SETALLOCHOSTID; 431 431 432 #ifdef VBOX_WITH_ MESA3D432 #ifdef VBOX_WITH_VMSVGA 433 433 434 434 #define VBOXWDDM_F_GA_CONTEXT_EXTENDED 0x00000001 … … 566 566 } VBOXDISPIFESCAPE_GAFENCEUNREF; 567 567 568 #endif /* VBOX_WITH_MESA3D */569 570 #if defined(VBOX_WITH_MESA3D) || defined(VBOX_WITH_VMSVGA3D_DX)571 568 #include <VBoxGaHWInfo.h> 572 569 #endif … … 594 591 uint32_t u32VBox3DCaps; /* CR_VBOX_CAP_* */ 595 592 } vbox; 596 #if defined(VBOX_WITH_ MESA3D) || defined(VBOX_WITH_VMSVGA3D_DX)593 #if defined(VBOX_WITH_VMSVGA) 597 594 struct 598 595 { -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/Makefile.kmk
r94523 r94584 136 136 $(VBOX_PATH_ADDITIONS_LIB)/VBoxWddmUmKmt$(VBOX_SUFF_LIB) 137 137 138 ifdef VBOX_WITH_VMSVGA 139 VBoxDispD3D_DEFS += VBOX_WITH_VMSVGA 140 VBoxDispD3D_INCS += \ 141 $(PATH_ROOT)/src/VBox/Additions/3D/win/include 142 endif 143 138 144 ifdef VBOX_WITH_MESA3D 139 145 VBoxDispD3D_DEFS += VBOX_WITH_MESA3D … … 184 190 DLLS += VBoxDX 185 191 VBoxDX_TEMPLATE = VBoxGuestR3DllMinVista 186 VBoxDX_DEFS = UNICODE _UNICODE VBOX_WITH_VMSVGA 3D_DX192 VBoxDX_DEFS = UNICODE _UNICODE VBOX_WITH_VMSVGA VBOX_WITH_VMSVGA3D_DX 187 193 VBoxDX_DEFS += D3D_UMD_INTERFACE_VERSION=D3D_UMD_INTERFACE_VERSION_WIN8 188 194 VBoxDX_DEFS += DXGKDDI_INTERFACE_VERSION=DXGKDDI_INTERFACE_VERSION_WIN8 -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/Makefile.kmk
r94524 r94584 18 18 SUB_DEPTH = ../../../../../../.. 19 19 include $(KBUILD_PATH)/subheader.kmk 20 21 ifdef VBOX_WITH_MESA3D22 ifndef VBOX_MESA3D_CONFIG_KMK_INCLUDED23 include $(PATH_ROOT)/src/VBox/Additions/3D/Config.kmk24 endif25 endif26 20 27 21 # … … 152 146 $(PATH_SDK_$(VBOX_WINDDK_GST_W8)_LIB)/memcmp.lib 153 147 154 ifdef VBOX_WITH_ MESA3D155 VBoxWddm_DEFS += VBOX_WITH_ MESA3D148 ifdef VBOX_WITH_VMSVGA 149 VBoxWddm_DEFS += VBOX_WITH_VMSVGA 156 150 VBoxWddm_DEFS += __STDC_VERSION__=0 # for mesa include/c99_compat.h 157 151 VBoxWddm_DEFS += WIN9X_COMPAT_SPINLOCK # to avoid multiple KeInitializeSpinLock on amd64 158 152 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 161 155 VBoxWddm_SOURCES += \ 162 156 wddm/gallium/Svga.cpp \ -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/common/VBoxMPDevExt.h
r93115 r94584 44 44 ULONG cbVRAM; 45 45 ULONG ulApertureSize; 46 #ifdef VBOX_WITH_ MESA3D46 #ifdef VBOX_WITH_VMSVGA 47 47 PHYSICAL_ADDRESS phFIFO; 48 48 ULONG cbFIFO; … … 52 52 } VBOXWDDM_HWRESOURCES, *PVBOXWDDM_HWRESOURCES; 53 53 54 #ifdef VBOX_WITH_ MESA3D54 #ifdef VBOX_WITH_VMSVGA 55 55 typedef struct VBOXWDDM_EXT_GA *PVBOXWDDM_EXT_GA; 56 56 #endif … … 219 219 #endif 220 220 221 #ifdef VBOX_WITH_ MESA3D221 #ifdef VBOX_WITH_VMSVGA 222 222 PVBOXWDDM_EXT_GA pGa; /* Pointer to Gallium backend data. */ 223 223 #endif -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPTypes.h
r93115 r94584 41 41 #define VBOXWDDM_DEFAULT_REFRESH_RATE 60 42 42 43 #ifndef VBOX_WITH_ MESA3D43 #ifndef VBOX_WITH_VMSVGA 44 44 /* one page size */ 45 45 #define VBOXWDDM_C_DMA_BUFFER_SIZE 0x1000 … … 52 52 #define VBOXWDDM_C_PATH_LOCATION_LIST_SIZE 0xc00 53 53 54 #ifndef VBOX_WITH_ MESA3D54 #ifndef VBOX_WITH_VMSVGA 55 55 #define VBOXWDDM_C_POINTER_MAX_WIDTH 64 56 56 #define VBOXWDDM_C_POINTER_MAX_HEIGHT 64 … … 246 246 VBOXVIDEOCM_CTX CmContext; 247 247 VBOXVIDEOCM_ALLOC_CONTEXT AllocContext; 248 #ifdef VBOX_WITH_ MESA3D248 #ifdef VBOX_WITH_VMSVGA 249 249 uint32_t u32Cid; /* SVGA context id of this context. */ 250 250 #endif -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.cpp
r94524 r94584 39 39 #include <VBox/Version.h> 40 40 41 #ifdef VBOX_WITH_ MESA3D41 #ifdef VBOX_WITH_VMSVGA 42 42 #include "gallium/VBoxMPGaWddm.h" 43 43 #endif … … 662 662 { 663 663 case CmResourceTypePort: 664 #ifdef VBOX_WITH_ MESA3D664 #ifdef VBOX_WITH_VMSVGA 665 665 AssertBreak(pHwResources->phIO.QuadPart == 0); 666 666 pHwResources->phIO = pPRc->u.Port.Start; … … 671 671 break; 672 672 case CmResourceTypeMemory: 673 #ifdef VBOX_WITH_ MESA3D673 #ifdef VBOX_WITH_VMSVGA 674 674 if (pHwResources->phVRAM.QuadPart) 675 675 { … … 1025 1025 pDevExt->f3DEnabled = FALSE; 1026 1026 } 1027 #ifdef VBOX_WITH_ MESA3D1027 #ifdef VBOX_WITH_VMSVGA 1028 1028 else if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VMSVGA) 1029 1029 { … … 1036 1036 } 1037 1037 } 1038 #endif /* VBOX_WITH_ MESA3D*/1038 #endif /* VBOX_WITH_VMSVGA */ 1039 1039 else 1040 1040 { … … 1191 1191 VBoxWddmVModesInit(pDevExt); 1192 1192 1193 #ifdef VBOX_WITH_ MESA3D1193 #ifdef VBOX_WITH_VMSVGA 1194 1194 if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VMSVGA) 1195 1195 { … … 1251 1251 NTSTATUS Status = STATUS_SUCCESS; 1252 1252 1253 #ifdef VBOX_WITH_ MESA3D1253 #ifdef VBOX_WITH_VMSVGA 1254 1254 if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VMSVGA) 1255 1255 { … … 1623 1623 pCaps->MaxPointerWidth = VBOXWDDM_C_POINTER_MAX_WIDTH; 1624 1624 pCaps->MaxPointerHeight = VBOXWDDM_C_POINTER_MAX_HEIGHT; 1625 #ifdef VBOX_WITH_ MESA3D1625 #ifdef VBOX_WITH_VMSVGA 1626 1626 if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VBOX) 1627 1627 { … … 1666 1666 /** @todo this correlates with pCaps->SchedulingCaps.MultiEngineAware */ 1667 1667 pCaps->GpuEngineTopology.NbAsymetricProcessingNodes = VBOXWDDM_NUM_NODES; 1668 #ifdef VBOX_WITH_ MESA3D1668 #ifdef VBOX_WITH_VMSVGA 1669 1669 if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VMSVGA) 1670 1670 { … … 1777 1777 pQAI->u.vbox.u32VBox3DCaps = 0; 1778 1778 } 1779 #ifdef VBOX_WITH_ MESA3D1779 #ifdef VBOX_WITH_VMSVGA 1780 1780 else if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VMSVGA) 1781 1781 GaQueryInfo(pDevExt->pGa, pDevExt->enmHwType, &pQAI->u.vmsvga.HWInfo); … … 1849 1849 pCreateDevice->pInfo = NULL; 1850 1850 1851 #ifdef VBOX_WITH_ MESA3D1851 #ifdef VBOX_WITH_VMSVGA 1852 1852 if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VMSVGA) 1853 1853 { … … 2886 2886 bool vboxWddmUpdatePointerShape(PVBOXMP_DEVEXT pDevExt, PVIDEO_POINTER_ATTRIBUTES pAttrs, uint32_t cbLength) 2887 2887 { 2888 #ifdef VBOX_WITH_ MESA3D2888 #ifdef VBOX_WITH_VMSVGA 2889 2889 if (pDevExt->enmHwType != VBOXVIDEO_HWTYPE_VBOX) 2890 2890 { … … 3477 3477 for (int i = 0; i < VBoxCommonFromDeviceExt(pDevExt)->cDisplays; ++i) 3478 3478 { 3479 #ifdef VBOX_WITH_ MESA3D3479 #ifdef VBOX_WITH_VMSVGA 3480 3480 if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VMSVGA) 3481 3481 { … … 3491 3491 } 3492 3492 default: 3493 #ifdef VBOX_WITH_ MESA3D3493 #ifdef VBOX_WITH_VMSVGA 3494 3494 Status = GaDxgkDdiEscape(hAdapter, pEscape); 3495 3495 if (NT_SUCCESS(Status) || Status != STATUS_NOT_SUPPORTED) … … 3648 3648 } 3649 3649 3650 #ifdef VBOX_WITH_ MESA3D3650 #ifdef VBOX_WITH_VMSVGA 3651 3651 if (pDevExt->enmHwType != VBOXVIDEO_HWTYPE_VMSVGA) 3652 3652 #endif … … 3696 3696 * Report the source. 3697 3697 */ 3698 #ifdef VBOX_WITH_ MESA3D3698 #ifdef VBOX_WITH_VMSVGA 3699 3699 if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VMSVGA) 3700 3700 { … … 3736 3736 } 3737 3737 3738 #ifdef VBOX_WITH_ MESA3D3738 #ifdef VBOX_WITH_VMSVGA 3739 3739 if (pDevExt->enmHwType != VBOXVIDEO_HWTYPE_VMSVGA) 3740 3740 #endif … … 3760 3760 } 3761 3761 3762 #ifdef VBOX_WITH_ MESA3D3762 #ifdef VBOX_WITH_VMSVGA 3763 3763 if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VMSVGA) 3764 3764 { … … 3853 3853 VBoxDumpSourceTargetArrays(paSources, paTargets, VBoxCommonFromDeviceExt(pDevExt)->cDisplays); 3854 3854 3855 #ifdef VBOX_WITH_ MESA3D3855 #ifdef VBOX_WITH_VMSVGA 3856 3856 if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VMSVGA) 3857 3857 { … … 4091 4091 vboxVDbgBreakFv(); 4092 4092 4093 #ifdef VBOX_WITH_ MESA3D4093 #ifdef VBOX_WITH_VMSVGA 4094 4094 PVBOXWDDM_DEVICE pDevice = (PVBOXWDDM_DEVICE)hDevice; 4095 4095 PVBOXMP_DEVEXT pDevExt = pDevice->pAdapter; … … 4441 4441 break; 4442 4442 } 4443 #ifdef VBOX_WITH_ MESA3D4443 #ifdef VBOX_WITH_VMSVGA 4444 4444 case VBOXWDDM_CONTEXT_TYPE_GA_3D: 4445 4445 { … … 4529 4529 break; 4530 4530 } 4531 #ifdef VBOX_WITH_ MESA3D4531 #ifdef VBOX_WITH_VMSVGA 4532 4532 case VBOXWDDM_CONTEXT_TYPE_GA_3D: 4533 4533 { … … 4632 4632 4633 4633 PVBOXMP_DEVEXT pDevExt = (PVBOXMP_DEVEXT)hAdapter; 4634 #ifdef VBOX_WITH_ MESA3D4634 #ifdef VBOX_WITH_VMSVGA 4635 4635 if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VMSVGA) 4636 4636 { … … 4828 4828 ULONG MessageNumber) 4829 4829 { 4830 #ifdef VBOX_WITH_ MESA3D4830 #ifdef VBOX_WITH_VMSVGA 4831 4831 BOOLEAN const fVMSVGA = GaDxgkDdiInterruptRoutine(MiniportDeviceContext, MessageNumber); 4832 4832 #else … … 4842 4842 PVBOXMP_DEVEXT pDevExt = (PVBOXMP_DEVEXT)MiniportDeviceContext; 4843 4843 4844 #ifdef VBOX_WITH_ MESA3D4844 #ifdef VBOX_WITH_VMSVGA 4845 4845 GaDxgkDdiDpcRoutine(MiniportDeviceContext); 4846 4846 #endif … … 4930 4930 DriverInitializationData.DxgkDdiDpcRoutine = DxgkDdiDpcRoutine; 4931 4931 4932 #ifdef VBOX_WITH_ MESA3D4932 #ifdef VBOX_WITH_VMSVGA 4933 4933 if (enmHwType == VBOXVIDEO_HWTYPE_VMSVGA) 4934 4934 {
Note:
See TracChangeset
for help on using the changeset viewer.