Changeset 35319 in vbox for trunk/src/VBox/Additions/WINNT
- Timestamp:
- Dec 24, 2010 3:42:36 PM (14 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT
- Files:
-
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Display/Makefile.kmk
r34987 r35319 119 119 DLLS.amd64 += VBoxDispD3D-x86 120 120 VBoxDispD3D-x86_EXTENDS = VBoxDispD3D 121 VBoxDispD3D-x86_NAME = VBoxDispD3D32122 121 VBoxDispD3D-x86_BLD_TRG_ARCH = x86 123 122 VBoxDispD3D-x86_LIBS = \ 124 123 $(VBOX_LIB_IPRT_GUEST_R3_X86) \ 125 124 $(VBOX_LIB_VBGL_R3_X86) 126 125 VBoxDispD3D-x86_DEFS = $(VBoxDispD3D_DEFS) VBOX_WDDM_WOW64 127 126 ifdef VBOX_WITH_CRHGSMI 128 127 # 129 # VBoxCrHgsmi 128 # VBoxCrHgsmi - Chromium HGSMI API library 130 129 # 131 130 LIBRARIES += VBoxCrHgsmi … … 136 135 wddm/VBoxUhgsmiKmt.cpp 137 136 VBoxCrHgsmi_SDKS = WINDDKWLH 137 138 LIBRARIES.amd64 += VBoxCrHgsmi-x86 139 VBoxCrHgsmi-x86_EXTENDS = VBoxCrHgsmi 140 VBoxCrHgsmi-x86_BLD_TRG_ARCH = x86 141 VBoxCrHgsmi-x86_DEFS = $(VBoxCrHgsmi_DEFS) VBOX_WDDM_WOW64 138 142 endif 139 143 endif -
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3D.cpp
r35121 r35319 5522 5522 pAllocInfo->enmType = VBOXWDDM_ALLOC_TYPE_UMD_RC_GENERIC; 5523 5523 pAllocInfo->fFlags = pResource->Flags; 5524 pAllocInfo->hSharedHandle = pAllocation->hSharedHandle;5524 pAllocInfo->hSharedHandle = (uint64_t)pAllocation->hSharedHandle; 5525 5525 pAllocInfo->SurfDesc.width = pSurf->Width; 5526 5526 pAllocInfo->SurfDesc.height = pSurf->Height; … … 7484 7484 pAllocation->hAllocation = pOAI->hAllocation; 7485 7485 pAllocation->enmType = pAllocInfo->enmType; 7486 pAllocation->hSharedHandle = pAllocInfo->hSharedHandle;7486 pAllocation->hSharedHandle = (HANDLE)pAllocInfo->hSharedHandle; 7487 7487 pAllocation->SurfDesc = pAllocInfo->SurfDesc; 7488 7488 Assert(pAllocation->hSharedHandle); -
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3D.def
r33116 r35319 15 15 ; */ 16 16 17 LIBRARY VBoxDispD3D18 19 17 EXPORTS 20 18 OpenAdapter -
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3D.rc
r34987 r35319 49 49 VALUE "InternalName", "VBoxDispD3D\0" 50 50 VALUE "LegalCopyright", VBOX_RC_LEGAL_COPYRIGHT 51 #ifdef VBOX_WDDM_WOW64 52 VALUE "OriginalFilename", "VBoxDispD3D-x86.dll\0" 53 #else 51 54 VALUE "OriginalFilename", "VBoxDispD3D.dll\0" 55 #endif 52 56 VALUE "ProductName", VBOX_PRODUCT " Guest Additions\0" 53 57 VALUE "ProductVersion", VBOX_VERSION_MAJOR "." VBOX_VERSION_MINOR "." VBOX_VERSION_BUILD ".r" VBOX_SVN_REV "\0" -
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3DIf.cpp
r33836 r35319 27 27 HRESULT VBoxDispD3DOpen(VBOXDISPD3D *pD3D) 28 28 { 29 #ifdef VBOX_WDDM_WOW64 30 pD3D->hD3DLib = LoadLibraryW(L"VBoxD3D9wddm-x86.dll"); 31 #else 29 32 pD3D->hD3DLib = LoadLibraryW(L"VBoxD3D9wddm.dll"); 33 #endif 30 34 Assert(pD3D->hD3DLib); 31 35 if (pD3D->hD3DLib) -
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxUhgsmiKmt.cpp
r34987 r35319 143 143 Buf.AllocInfo.enmType = VBOXWDDM_ALLOC_TYPE_UMD_HGSMI_BUFFER; 144 144 Buf.AllocInfo.cbBuffer = cbBuf; 145 Buf.AllocInfo.hSynch = hSynch;145 Buf.AllocInfo.hSynch = (uint64_t)hSynch; 146 146 Buf.AllocInfo.enmSynchType = enmSynchType; 147 147 … … 226 226 { 227 227 PVBOXUHGSMI_BUFFER_PRIVATE_KMT_ESC pBuffer = VBOXUHGSMIKMTESC_GET_BUFFER(pBuf); 228 *pvLock = pBuffer->Alloc.pvData + offLock;228 *pvLock = (void*)(pBuffer->Alloc.pvData + offLock); 229 229 return VINF_SUCCESS; 230 230 } … … 306 306 Buf.AllocInfo.EscapeHdr.escapeCode = VBOXESC_UHGSMI_ALLOCATE; 307 307 Buf.AllocInfo.Alloc.cbData = cbBuf; 308 Buf.AllocInfo.Alloc.hSynch = hSynch;308 Buf.AllocInfo.Alloc.hSynch = (uint64_t)hSynch; 309 309 Buf.AllocInfo.Alloc.enmSynchType = enmSynchType; 310 310 … … 612 612 { 613 613 DWORD winEr = GetLastError(); 614 #ifdef DEBUG_misha 614 615 Assert(0); 616 #endif 617 Log((__FUNCTION__": EnumDisplayDevices failed, winEr (%d)\n", winEr)); 615 618 hr = HRESULT_FROM_WIN32(winEr); 616 619 Assert(FAILED(hr)); -
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/dbg/VBoxVideoWinDbg.cpp
r31885 r35319 99 99 ULONG64 u64Height; 100 100 ULONG64 u64Bpp = 32; 101 ULONG64 u64NumColors = 3; 101 102 ULONG64 u64Pitch; 102 103 ULONG64 u64DefaultPitch; … … 114 115 if (!GetExpressionEx(pExpr, &u64Height, &pExpr)) { dprintf("error evaluating height\n"); return; } 115 116 if (!u64Height) { dprintf("height value can not be NULL\n"); return; } 117 118 if (pExpr && GetExpressionEx(pExpr, &u64NumColors, &pExpr)) 119 { 120 if (!u64NumColors) { dprintf("Num Colors value can not be NULL\n"); return; } 121 } 116 122 117 123 if (pExpr && GetExpressionEx(pExpr, &u64Bpp, &pExpr)) … … 180 186 if (uRc) 181 187 { 188 switch (u64Bpp) 189 { 190 case 32: 191 case 24: 192 case 16: 193 if (u64NumColors != 3) 194 { 195 dprintf("WARNING: unsupported number colors: (%d)\n", u64NumColors); 196 } 197 break; 198 case 8: 199 { 200 if (u64NumColors == 1) 201 { 202 ULONG64 cbSize32 = u64DefaultPitch * 4 * u64Height; 203 PVOID pvBuf32 = malloc(cbSize32); 204 if (pvBuf32) 205 { 206 byte* pByteBuf32 = (byte*)pvBuf32; 207 byte* pByteBuf = (byte*)pvBuf; 208 memset(pvBuf32, 0, cbSize32); 209 for (UINT i = 0; i < u64Height; ++i) 210 { 211 for (UINT j = 0; j < u64Width; ++j) 212 { 213 pByteBuf32[0] = pByteBuf[0]; 214 pByteBuf32[1] = pByteBuf[0]; 215 pByteBuf32[2] = pByteBuf[0]; 216 pByteBuf32 += 4; 217 pByteBuf += 1; 218 } 219 } 220 free(pvBuf); 221 pvBuf = pvBuf32; 222 u64DefaultPitch *= 4; 223 u64Bpp *= 4; 224 } 225 } 226 else 227 { 228 dprintf("WARNING: unsupported number colors: (%d)\n", u64NumColors); 229 } 230 } 231 break; 232 } 182 233 BITMAP Bmp = {0}; 183 234 HBITMAP hBmp; -
trunk/src/VBox/Additions/WINNT/Graphics/Makefile.kmk
r34987 r35319 65 65 ifdef VBOX_WITH_WDDM 66 66 VBOXWDDM_WITH_DISPD3D = 1 67 ifeq ($(KBUILD_TARGET_ARCH), x86) 68 VBOXWDDM_WITH_GL = 169 endif67 ifdef VBOX_WITH_CROGL 68 VBOXWDDM_WITH_GL = 1 69 endif 70 70 71 71 # … … 88 88 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxDispD3D.dll 89 89 VBoxVideoWddm-inf_SOURCES.amd64 += \ 90 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxDispD3D 32.dll90 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxDispD3D-x86.dll 91 91 endif 92 92 … … 96 96 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxD3D9wddm.dll \ 97 97 $(PATH_TARGET)/VBoxVideoWddmCat.dir/wined3dwddm.dll \ 98 $(PATH_TARGET)/VBoxVideoWddmCat.dir/libWine.dll \99 98 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLarrayspu.dll \ 100 99 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLcrutil.dll \ … … 104 103 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpassthroughspu.dll 105 104 VBoxVideoWddm-inf_SOURCES.amd64 += \ 106 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGL32.dll \ 107 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxD3D9wddm32.dll \ 108 $(PATH_TARGET)/VBoxVideoWddmCat.dir/wined3dwddm32.dll \ 109 $(PATH_TARGET)/VBoxVideoWddmCat.dir/libWine32.dll \ 110 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLarrayspu32.dll \ 111 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLcrutil32.dll \ 112 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLerrorspu32.dll \ 113 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLfeedbackspu32.dll \ 114 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpackspu32.dll \ 115 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpassthroughspu32.dll 105 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGL-x86.dll \ 106 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxD3D9wddm-x86.dll \ 107 $(PATH_TARGET)/VBoxVideoWddmCat.dir/wined3dwddm-x86.dll \ 108 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLarrayspu-x86.dll \ 109 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLcrutil-x86.dll \ 110 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLerrorspu-x86.dll \ 111 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLfeedbackspu-x86.dll \ 112 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpackspu-x86.dll \ 113 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpassthroughspu-x86.dll 116 114 endif 117 115 … … 136 134 137 135 ifeq ($(KBUILD_TARGET_ARCH),amd64) 138 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxDispD3D 32.dll: $$(TARGET_VBoxDispD3D-x86) | $$(call DIRDEP,$$(@D))136 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxDispD3D-x86.dll: $$(TARGET_VBoxDispD3D-x86) | $$(call DIRDEP,$$(@D)) 139 137 $(INSTALL) -m 644 $< $(@D) 140 138 endif … … 151 149 $(INSTALL) -m 644 $< $(@D) 152 150 153 $(PATH_TARGET)/VBoxVideoWddmCat.dir/libWine.dll: $$(TARGET_libWine) | $$(call DIRDEP,$$(@D))154 $(INSTALL) -m 644 $< $(@D)155 156 151 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLarrayspu.dll: $$(TARGET_VBoxOGLarrayspu) | $$(call DIRDEP,$$(@D)) 157 152 $(INSTALL) -m 644 $< $(@D) … … 173 168 174 169 ifeq ($(KBUILD_TARGET_ARCH), amd64) 175 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGL64.dll: $$(TARGET_VBoxOGL64) | $$(call DIRDEP,$$(@D)) 176 $(INSTALL) -m 644 $< $(@D) 177 178 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxD3D964.dll: $$(TARGET_VBoxD3D964) | $$(call DIRDEP,$$(@D)) 179 $(INSTALL) -m 644 $< $(@D) 180 181 $(PATH_TARGET)/VBoxVideoWddmCat.dir/wined3dwddm32.dll: $$(TARGET_wined3dwddm32) | $$(call DIRDEP,$$(@D)) 182 $(INSTALL) -m 644 $< $(@D) 183 184 $(PATH_TARGET)/VBoxVideoWddmCat.dir/libWine64.dll: $$(TARGET_libWine64) | $$(call DIRDEP,$$(@D)) 185 $(INSTALL) -m 644 $< $(@D) 186 187 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLarrayspu64.dll: $$(TARGET_VBoxOGLarrayspu64) | $$(call DIRDEP,$$(@D)) 188 $(INSTALL) -m 644 $< $(@D) 189 190 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLcrutil64.dll: $$(TARGET_VBoxOGLcrutil64) | $$(call DIRDEP,$$(@D)) 191 $(INSTALL) -m 644 $< $(@D) 192 193 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLerrorspu64.dll: $$(TARGET_VBoxOGLerrorspu64) | $$(call DIRDEP,$$(@D)) 194 $(INSTALL) -m 644 $< $(@D) 195 196 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLfeedbackspu64.dll: $$(TARGET_VBoxOGLfeedbackspu64) | $$(call DIRDEP,$$(@D)) 197 $(INSTALL) -m 644 $< $(@D) 198 199 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpackspu64.dll: $$(TARGET_VBoxOGLpackspu64) | $$(call DIRDEP,$$(@D)) 200 $(INSTALL) -m 644 $< $(@D) 201 202 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpassthroughspu64.dll: $$(TARGET_VBoxOGLpassthroughspu64) | $$(call DIRDEP,$$(@D)) 170 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGL-x86.dll: $$(TARGET_VBoxOGL-x86) | $$(call DIRDEP,$$(@D)) 171 $(INSTALL) -m 644 $< $(@D) 172 173 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxD3D9wddm-x86.dll: $$(TARGET_VBoxD3D9wddm-x86) | $$(call DIRDEP,$$(@D)) 174 $(INSTALL) -m 644 $< $(@D) 175 176 $(PATH_TARGET)/VBoxVideoWddmCat.dir/wined3dwddm-x86.dll: $$(TARGET_wined3dwddm-x86) | $$(call DIRDEP,$$(@D)) 177 $(INSTALL) -m 644 $< $(@D) 178 179 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLarrayspu-x86.dll: $$(TARGET_VBoxOGLarrayspu-x86) | $$(call DIRDEP,$$(@D)) 180 $(INSTALL) -m 644 $< $(@D) 181 182 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLcrutil-x86.dll: $$(TARGET_VBoxOGLcrutil-x86) | $$(call DIRDEP,$$(@D)) 183 $(INSTALL) -m 644 $< $(@D) 184 185 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLerrorspu-x86.dll: $$(TARGET_VBoxOGLerrorspu-x86) | $$(call DIRDEP,$$(@D)) 186 $(INSTALL) -m 644 $< $(@D) 187 188 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLfeedbackspu-x86.dll: $$(TARGET_VBoxOGLfeedbackspu-x86) | $$(call DIRDEP,$$(@D)) 189 $(INSTALL) -m 644 $< $(@D) 190 191 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpackspu-x86.dll: $$(TARGET_VBoxOGLpackspu-x86) | $$(call DIRDEP,$$(@D)) 192 $(INSTALL) -m 644 $< $(@D) 193 194 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpassthroughspu-x86.dll: $$(TARGET_VBoxOGLpassthroughspu-x86) | $$(call DIRDEP,$$(@D)) 203 195 $(INSTALL) -m 644 $< $(@D) 204 196 endif … … 209 201 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxVideoWddm.sys \ 210 202 $(if $(VBOXWDDM_WITH_DISPD3D), $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxDispD3D.dll, ) \ 211 $(if $(VBOXWDDM_WITH_DISPD3D), $(if-expr "$(KBUILD_TARGET_ARCH)" == "amd64", $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxDispD3D 32.dll, ), ) \203 $(if $(VBOXWDDM_WITH_DISPD3D), $(if-expr "$(KBUILD_TARGET_ARCH)" == "amd64", $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxDispD3D-x86.dll, ), ) \ 212 204 $(if $(VBOXWDDM_WITH_GL), $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGL.dll \ 213 205 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxD3D9wddm.dll \ 214 206 $(PATH_TARGET)/VBoxVideoWddmCat.dir/wined3dwddm.dll \ 215 $(PATH_TARGET)/VBoxVideoWddmCat.dir/libWine.dll \216 207 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLarrayspu.dll \ 217 208 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLcrutil.dll \ … … 221 212 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpassthroughspu.dll, ) \ 222 213 $(if $(VBOXWDDM_WITH_GL), $(if-expr "$(KBUILD_TARGET_ARCH)" == "amd64", \ 223 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGL32.dll \ 224 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxD3D9wddm32.dll \ 225 $(PATH_TARGET)/VBoxVideoWddmCat.dir/wined3dwddm32.dll \ 226 $(PATH_TARGET)/VBoxVideoWddmCat.dir/libWine32.dll \ 227 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLarrayspu32.dll \ 228 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLcrutil32.dll \ 229 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLerrorspu32.dll \ 230 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLfeedbackspu32.dll \ 231 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpackspu32.dll \ 232 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpassthroughspu32.dll, ), ) 214 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGL-x86.dll \ 215 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxD3D9wddm-x86.dll \ 216 $(PATH_TARGET)/VBoxVideoWddmCat.dir/wined3dwddm-x86.dll \ 217 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLarrayspu-x86.dll \ 218 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLcrutil-x86.dll \ 219 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLerrorspu-x86.dll \ 220 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLfeedbackspu-x86.dll \ 221 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpackspu-x86.dll \ 222 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpassthroughspu-x86.dll, ), ) 233 223 $(call MSG_TOOL,Inf2Cat,VBoxVideoWddm-inf,$@,$<) 234 224 $(call VBOX_MAKE_CAT_FN, $(@D),$@) -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoIf.h
r34345 r35319 30 30 31 31 /* One would increase this whenever definitions in this file are changed */ 32 #define VBOXVIDEOIF_VERSION 832 #define VBOXVIDEOIF_VERSION 9 33 33 34 34 /* create allocation func */ … … 76 76 { 77 77 D3DDDI_RESOURCEFLAGS fFlags; 78 HANDLEhSharedHandle;78 uint64_t hSharedHandle; 79 79 VBOXWDDM_SURFACE_DESC SurfDesc; 80 80 }; … … 83 83 { 84 84 uint32_t cbBuffer; 85 HANDLEhSynch;85 uint64_t hSynch; 86 86 VBOXUHGSMI_SYNCHOBJECT_TYPE enmSynchType; 87 87 }; … … 231 231 } VBOXWDDM_CREATECONTEXT_INFO, *PVBOXWDDM_CREATECONTEXT_INFO; 232 232 233 typedef void *VBOXDISP_UMHANDLE;233 typedef uint64_t VBOXDISP_UMHANDLE; 234 234 typedef uint32_t VBOXDISP_KMHANDLE; 235 235 … … 355 355 VBOXDISP_KMHANDLE hAlloc; 356 356 uint32_t cbData; 357 uint 8_t *pvData;358 HANDLEhSynch;357 uint64_t pvData; 358 uint64_t hSynch; 359 359 VBOXUHGSMI_SYNCHOBJECT_TYPE enmSynchType; 360 360 } VBOXVIDEOCM_UM_ALLOC, *PVBOXVIDEOCM_UM_ALLOC; -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoMisc.cpp
r34345 r35319 965 965 { 966 966 case VBOXUHGSMI_SYNCHOBJECT_TYPE_EVENT: 967 Status = ObReferenceObjectByHandle( pUmAlloc->hSynch, EVENT_MODIFY_STATE, *ExEventObjectType, UserMode,967 Status = ObReferenceObjectByHandle((HANDLE)pUmAlloc->hSynch, EVENT_MODIFY_STATE, *ExEventObjectType, UserMode, 968 968 (PVOID*)&pSynchEvent, 969 969 NULL); … … 971 971 break; 972 972 case VBOXUHGSMI_SYNCHOBJECT_TYPE_SEMAPHORE: 973 Status = ObReferenceObjectByHandle( pUmAlloc->hSynch, EVENT_MODIFY_STATE, *ExSemaphoreObjectType, UserMode,973 Status = ObReferenceObjectByHandle((HANDLE)pUmAlloc->hSynch, EVENT_MODIFY_STATE, *ExSemaphoreObjectType, UserMode, 974 974 (PVOID*)&pSynchSemaphore, 975 975 NULL); … … 1025 1025 pUmAlloc->hAlloc = pAllocRef->hSessionHandle; 1026 1026 pUmAlloc->cbData = pAlloc->cbData; 1027 pUmAlloc->pvData = (uint 8_t*)pvUm;1027 pUmAlloc->pvData = (uint64_t)pvUm; 1028 1028 return STATUS_SUCCESS; 1029 1029 } … … 1139 1139 } 1140 1140 1141 #ifdef VBOX_WITH_ VDMA1141 #ifdef VBOX_WITH_CRHGSMI 1142 1142 static DECLCALLBACK(VOID) vboxVideoAMgrAllocSubmitCompletion(PDEVICE_EXTENSION pDevExt, PVBOXVDMADDI_CMD pCmd, PVOID pvContext) 1143 1143 { -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoMisc.h
r33531 r35319 141 141 NTSTATUS vboxVideoAMgrCtxAllocDestroy(PVBOXVIDEOCM_ALLOC_CONTEXT pContext, VBOXDISP_KMHANDLE hSesionHandle); 142 142 143 #ifdef VBOX_WITH_ VDMA143 #ifdef VBOX_WITH_CRHGSMI 144 144 NTSTATUS vboxVideoAMgrCtxAllocSubmit(PDEVICE_EXTENSION pDevExt, PVBOXVIDEOCM_ALLOC_CONTEXT pContext, UINT cBuffers, VBOXWDDM_UHGSMI_BUFFER_UI_INFO_ESCAPE *paBuffers); 145 145 #endif -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoWddm.cpp
r34987 r35319 1647 1647 { 1648 1648 case VBOXUHGSMI_SYNCHOBJECT_TYPE_EVENT: 1649 Status = ObReferenceObjectByHandle( pAllocInfo->hSynch, EVENT_MODIFY_STATE, *ExEventObjectType, UserMode,1649 Status = ObReferenceObjectByHandle((HANDLE)pAllocInfo->hSynch, EVENT_MODIFY_STATE, *ExEventObjectType, UserMode, 1650 1650 (PVOID*)&pAllocation->pSynchEvent, 1651 1651 NULL); … … 1653 1653 break; 1654 1654 case VBOXUHGSMI_SYNCHOBJECT_TYPE_SEMAPHORE: 1655 Status = ObReferenceObjectByHandle( pAllocInfo->hSynch, EVENT_MODIFY_STATE, *ExSemaphoreObjectType, UserMode,1655 Status = ObReferenceObjectByHandle((HANDLE)pAllocInfo->hSynch, EVENT_MODIFY_STATE, *ExSemaphoreObjectType, UserMode, 1656 1656 (PVOID*)&pAllocation->pSynchSemaphore, 1657 1657 NULL); … … 2225 2225 } 2226 2226 2227 #ifdef VBOX_WITH_ VDMA2227 #ifdef VBOX_WITH_CRHGSMI 2228 2228 DECLCALLBACK(VOID) vboxWddmDmaCompleteChromiumCmd(PDEVICE_EXTENSION pDevExt, PVBOXVDMADDI_CMD pCmd, PVOID pvContext) 2229 2229 { … … 2443 2443 case VBOXVDMACMD_TYPE_CHROMIUM_CMD: 2444 2444 { 2445 #ifdef VBOX_WITH_ VDMA2445 #ifdef VBOX_WITH_CRHGSMI 2446 2446 VBOXWDDM_DMA_PRIVATEDATA_CHROMIUM_CMD *pChromiumCmd = (VBOXWDDM_DMA_PRIVATEDATA_CHROMIUM_CMD*)pPrivateDataBase; 2447 2447 UINT cbCmd = VBOXVDMACMD_SIZE_FROMBODYSIZE(RT_OFFSETOF(VBOXVDMACMD_CHROMIUM_CMD, aBuffers[pChromiumCmd->Base.u32CmdReserved])); … … 2797 2797 else 2798 2798 { 2799 UINT index = pBuildPagingBuffer->Transfer.MdlOffset + ( cbTransfered>>12);2799 UINT index = pBuildPagingBuffer->Transfer.MdlOffset + (UINT)(cbTransfered>>12); 2800 2800 pBody->Src.phBuf = MmGetMdlPfnArray(pBuildPagingBuffer->Transfer.Source.pMdl)[index] << 12; 2801 2801 PFN_NUMBER num = MmGetMdlPfnArray(pBuildPagingBuffer->Transfer.Source.pMdl)[index]; … … 2821 2821 else 2822 2822 { 2823 UINT index = pBuildPagingBuffer->Transfer.MdlOffset + ( cbTransfered>>12);2823 UINT index = pBuildPagingBuffer->Transfer.MdlOffset + (UINT)(cbTransfered>>12); 2824 2824 pBody->Dst.phBuf = MmGetMdlPfnArray(pBuildPagingBuffer->Transfer.Destination.pMdl)[index] << 12; 2825 2825 PFN_NUMBER num = MmGetMdlPfnArray(pBuildPagingBuffer->Transfer.Destination.pMdl)[index]; … … 2840 2840 cbCurTransfer = RT_MIN(cbCurTransfer, cDstPages << 12); 2841 2841 2842 pBody->cbTransferSize = cbCurTransfer;2842 pBody->cbTransferSize = (UINT)cbCurTransfer; 2843 2843 Assert(!(cbCurTransfer & 0xfff)); 2844 2844 … … 3277 3277 switch (pEscapeHdr->escapeCode) 3278 3278 { 3279 #ifdef VBOX_WITH_ VDMA3279 #ifdef VBOX_WITH_CRHGSMI 3280 3280 case VBOXESC_UHGSMI_SUBMIT: 3281 3281 { -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoWddm.inf
r34987 r35319 41 41 Include = msdv.inf 42 42 ;x86 CopyFiles = VBoxVideo.Miniport, VBoxVideo.Display, VBoxVideo.GL 43 ;amd64 CopyFiles = VBoxVideo.Miniport, VBoxVideo.Display, VBoxVideo.Display_wow64, VBoxVideo.GL, VBoxVideo.GL_wow64 43 ;amd64 CopyFiles = VBoxVideo.Miniport, VBoxVideo.Display, VBoxVideo.Display_wow64, VBoxVideo.GL, VBoxVideo.GL_wow64 44 44 AddReg = VBoxVideo_SoftwareDeviceSettings 45 45 ;todo: clear XPDM driver settings: DelReg = VBoxVideo_RemoveDeviceSettings … … 53 53 54 54 ;amd64 [VBoxVideo.Display_wow64] 55 ;amd64 ;dispd3d VBoxDispD3D 32.dll,,,0x00004000 ; COPYFLG_IN_USE_TRY_RENAME55 ;amd64 ;dispd3d VBoxDispD3D-x86.dll,,,0x00004000 ; COPYFLG_IN_USE_TRY_RENAME 56 56 57 57 [VBoxVideo.GL] … … 59 59 ;gl VBoxD3D9wddm.dll,,,0x00004000 ; COPYFLG_IN_USE_TRY_RENAME 60 60 ;gl wined3dwddm.dll,,,0x00004000 ; COPYFLG_IN_USE_TRY_RENAME 61 ;gl libWine.dll,,,0x00004000 ; COPYFLG_IN_USE_TRY_RENAME62 61 ;gl VBoxOGLarrayspu.dll,,,0x00004000 ; COPYFLG_IN_USE_TRY_RENAME 63 62 ;gl VBoxOGLcrutil.dll,,,0x00004000 ; COPYFLG_IN_USE_TRY_RENAME … … 68 67 69 68 ;amd64 [VBoxVideo.GL_wow64] 70 ;amd64 ;gl VBoxOGL32.dll,,,0x00004000 ; COPYFLG_IN_USE_TRY_RENAME 71 ;amd64 ;gl VBoxD3D9wddm32.dll,,,0x00004000 ; COPYFLG_IN_USE_TRY_RENAME 72 ;amd64 ;gl wined3dwddm32.dll,,,0x00004000 ; COPYFLG_IN_USE_TRY_RENAME 73 ;amd64 ;gl libWine32.dll,,,0x00004000 ; COPYFLG_IN_USE_TRY_RENAME 74 ;amd64 ;gl VBoxOGLarrayspu32.dll,,,0x00004000 ; COPYFLG_IN_USE_TRY_RENAME 75 ;amd64 ;gl VBoxOGLcrutil32.dll,,,0x00004000 ; COPYFLG_IN_USE_TRY_RENAME 76 ;amd64 ;gl VBoxOGLerrorspu32.dll,,,0x00004000 ; COPYFLG_IN_USE_TRY_RENAME 77 ;amd64 ;gl VBoxOGLfeedbackspu32.dll,,,0x00004000 ; COPYFLG_IN_USE_TRY_RENAME 78 ;amd64 ;gl VBoxOGLpackspu32.dll,,,0x00004000 ; COPYFLG_IN_USE_TRY_RENAME 79 ;amd64 ;gl VBoxOGLpassthroughspu32.dll,,,0x00004000 ; COPYFLG_IN_USE_TRY_RENAME 69 ;amd64 ;gl VBoxOGL-x86.dll,,,0x00004000 ; COPYFLG_IN_USE_TRY_RENAME 70 ;amd64 ;gl VBoxD3D9wddm-x86.dll,,,0x00004000 ; COPYFLG_IN_USE_TRY_RENAME 71 ;amd64 ;gl wined3dwddm-x86.dll,,,0x00004000 ; COPYFLG_IN_USE_TRY_RENAME 72 ;amd64 ;gl VBoxOGLarrayspu-x86.dll,,,0x00004000 ; COPYFLG_IN_USE_TRY_RENAME 73 ;amd64 ;gl VBoxOGLcrutil-x86.dll,,,0x00004000 ; COPYFLG_IN_USE_TRY_RENAME 74 ;amd64 ;gl VBoxOGLerrorspu-x86.dll,,,0x00004000 ; COPYFLG_IN_USE_TRY_RENAME 75 ;amd64 ;gl VBoxOGLfeedbackspu-x86.dll,,,0x00004000 ; COPYFLG_IN_USE_TRY_RENAME 76 ;amd64 ;gl VBoxOGLpackspu-x86.dll,,,0x00004000 ; COPYFLG_IN_USE_TRY_RENAME 77 ;amd64 ;gl VBoxOGLpassthroughspu-x86.dll,,,0x00004000 ; COPYFLG_IN_USE_TRY_RENAME 80 78 81 79 [VBoxVideo_SoftwareDeviceSettings] 82 80 ;dispd3d HKR,, InstalledDisplayDrivers, %REG_MULTI_SZ%, VBoxDispD3D 83 81 ;dispd3d HKR,, UserModeDriverName, %REG_MULTI_SZ%, VBoxDispD3D.dll 84 ;amd64 ;dispd3d HKR,, UserModeDriverNameWow, %REG_MULTI_SZ%, VBoxDispD3D 32.dll82 ;amd64 ;dispd3d HKR,, UserModeDriverNameWow, %REG_MULTI_SZ%, VBoxDispD3D-x86.dll 85 83 ;gl HKR,, OpenGLDriverName, %REG_MULTI_SZ%, VBoxOGL.dll 86 ;amd64 ;gl HKR,, OpenGLDriverNameWoW, %REG_MULTI_SZ%, VBoxOGL 32.dll84 ;amd64 ;gl HKR,, OpenGLDriverNameWoW, %REG_MULTI_SZ%, VBoxOGL-x86.dll 87 85 ;gl HKR,, OpenGLFlags, %REG_DWORD%, 0x00000001 88 86 ;amd64 ;gl HKR,, OpenGLFlagsWoW, %REG_DWORD%, 0x00000001 … … 93 91 [VBoxVideo_RegisterDlls] 94 92 ;dispd3d 11,,VBoxDispD3D.dll,1 95 ;amd64 ;dispd3d 11,,VBoxDispD3D 32.dll,196 ;amd64 ;gl 11,,VBoxOGL 32.dll,193 ;amd64 ;dispd3d 11,,VBoxDispD3D-x86.dll,1 94 ;amd64 ;gl 11,,VBoxOGL-x86.dll,1 97 95 ;gl 11,,VBoxOGL.dll,1 98 ;amd64 ;gl 11,,VBoxD3D9wddm 32.dll,196 ;amd64 ;gl 11,,VBoxD3D9wddm-x86.dll,1 99 97 ;gl 11,,VBoxD3D9wddm.dll,1 100 ;amd64 ;gl 11,,wined3dwddm 32.dll,198 ;amd64 ;gl 11,,wined3dwddm-x86.dll,1 101 99 ;gl 11,,wined3dwddm.dll,1 102 ;amd64 ;gl 11,,libWine32.dll,1 103 ;gl 11,,libWine.dll,1 104 ;amd64 ;gl 11,,VBoxOGLarrayspu32.dll,1 100 ;amd64 ;gl 11,,VBoxOGLarrayspu-x86.dll,1 105 101 ;gl 11,,VBoxOGLarrayspu.dll,1 106 ;amd64 ;gl 11,,VBoxOGLcrutil 32.dll,1102 ;amd64 ;gl 11,,VBoxOGLcrutil-x86.dll,1 107 103 ;gl 11,,VBoxOGLcrutil.dll,1 108 ;amd64 ;gl 11,,VBoxOGLerrorspu 32.dll,1104 ;amd64 ;gl 11,,VBoxOGLerrorspu-x86.dll,1 109 105 ;gl 11,,VBoxOGLerrorspu.dll,1 110 ;amd64 ;gl 11,,VBoxOGLfeedbackspu 32.dll,1106 ;amd64 ;gl 11,,VBoxOGLfeedbackspu-x86.dll,1 111 107 ;gl 11,,VBoxOGLfeedbackspu.dll,1 112 ;amd64 ;gl 11,,VBoxOGLpackspu 32.dll,1108 ;amd64 ;gl 11,,VBoxOGLpackspu-x86.dll,1 113 109 ;gl 11,,VBoxOGLpackspu.dll,1 114 ;amd64 ;gl 11,,VBoxOGLpassthroughspu 32.dll,1110 ;amd64 ;gl 11,,VBoxOGLpassthroughspu-x86.dll,1 115 111 ;gl 11,,VBoxOGLpassthroughspu.dll,1 116 112 … … 138 134 [SourceDisksFiles] 139 135 VBoxVideoWddm.sys = 1 140 ;amd64 ;dispd3d VBoxDispD3D 32.dll = 1136 ;amd64 ;dispd3d VBoxDispD3D-x86.dll = 1 141 137 ;dispd3d VBoxDispD3D.dll = 1 142 ;amd64 ;gl VBoxOGL 32.dll = 1138 ;amd64 ;gl VBoxOGL-x86.dll = 1 143 139 ;gl VBoxOGL.dll = 1 144 ;amd64 ;gl VBoxD3D9wddm 32.dll = 1140 ;amd64 ;gl VBoxD3D9wddm-x86.dll = 1 145 141 ;gl VBoxD3D9wddm.dll = 1 146 ;amd64 ;gl wined3dwddm 32.dll = 1142 ;amd64 ;gl wined3dwddm-x86.dll = 1 147 143 ;gl wined3dwddm.dll = 1 148 ;amd64 ;gl libWine32.dll = 1 149 ;gl libWine.dll = 1 150 ;amd64 ;gl VBoxOGLarrayspu32.dll = 1 144 ;amd64 ;gl VBoxOGLarrayspu-x86.dll = 1 151 145 ;gl VBoxOGLarrayspu.dll = 1 152 ;amd64 ;gl VBoxOGLcrutil 32.dll = 1146 ;amd64 ;gl VBoxOGLcrutil-x86.dll = 1 153 147 ;gl VBoxOGLcrutil.dll = 1 154 ;amd64 ;gl VBoxOGLerrorspu 32.dll = 1148 ;amd64 ;gl VBoxOGLerrorspu-x86.dll = 1 155 149 ;gl VBoxOGLerrorspu.dll = 1 156 ;amd64 ;gl VBoxOGLfeedbackspu 32.dll = 1150 ;amd64 ;gl VBoxOGLfeedbackspu-x86.dll = 1 157 151 ;gl VBoxOGLfeedbackspu.dll = 1 158 ;amd64 ;gl VBoxOGLpackspu 32.dll = 1152 ;amd64 ;gl VBoxOGLpackspu-x86.dll = 1 159 153 ;gl VBoxOGLpackspu.dll = 1 160 ;amd64 ;gl VBoxOGLpassthroughspu 32.dll = 1154 ;amd64 ;gl VBoxOGLpassthroughspu-x86.dll = 1 161 155 ;gl VBoxOGLpassthroughspu.dll = 1 162 156 -
trunk/src/VBox/Additions/WINNT/Graphics/Wine/Makefile.kmk
r34987 r35319 23 23 24 24 libWine_TEMPLATE = VBOXGUESTR3NPDLL 25 if defined(VBOX_SIGNING_MODE) && defined(VBOX_WITH_WDDM)26 libWine_NOINST.win.x86 = true27 endif28 25 libWine_DEFS = __WINESRC__ WINE_UNICODE_API="" _REENTRANT WINE_NOWINSOCK USE_WIN32_OPENGL __i386__ \ 29 26 DLLDIR=\"\" \ … … 176 173 wined3dwddm_EXTENDS = wined3d 177 174 if defined(VBOX_SIGNING_MODE) && defined(VBOX_WITH_WDDM) 178 wined3dwddm_NOINST.win .x86= true175 wined3dwddm_NOINST.win = true 179 176 endif 180 177 wined3dwddm_INCS = vbox/libWineStub/include … … 187 184 DLLS.amd64 += wined3dwddm-x86 188 185 wined3dwddm-x86_EXTENDS = wined3dwddm 189 wined3dwddm-x86_NAME = wined3dwddm32190 186 wined3dwddm-x86_BLD_TRG_ARCH = x86 191 187 #wined3dwddm-x86_LIBS = \ 192 188 $(VBOX_LIB_IPRT_GUEST_R3_X86) \ 193 189 $(VBOX_LIB_VBGL_R3_X86) 190 wined3dwddm-x86_DEFS = $(wined3dwddm_DEFS) VBOX_WDDM_WOW64 194 191 endif 195 192 … … 272 269 VBoxD3D9wddm_EXTENDS = VBoxD3D9 273 270 if defined(VBOX_SIGNING_MODE) && defined(VBOX_WITH_WDDM) 274 VBoxD3D9wddm_NOINST.win .x86= true271 VBoxD3D9wddm_NOINST.win = true 275 272 endif 276 273 … … 285 282 DLLS.amd64 += VBoxD3D9wddm-x86 286 283 VBoxD3D9wddm-x86_EXTENDS = VBoxD3D9wddm 287 VBoxD3D9wddm-x86_NAME = VBoxD3D9wddm32288 284 VBoxD3D9wddm-x86_BLD_TRG_ARCH = x86 289 VBoxD3D9wddm-x86_LIBS = $(PATH_LIB)/wined3dwddm 32$(VBOX_SUFF_LIB)285 VBoxD3D9wddm-x86_LIBS = $(PATH_LIB)/wined3dwddm-x86$(VBOX_SUFF_LIB) 290 286 #VBoxD3D9wddm-x86_LIBS += \ 291 287 $(VBOX_LIB_IPRT_GUEST_R3_X86) \ 292 288 $(VBOX_LIB_VBGL_R3_X86) 289 VBoxD3D9wddm-x86_DEFS = $(VBoxD3D9wddm_DEFS) VBOX_WDDM_WOW64 293 290 endif 294 291 -
trunk/src/VBox/Additions/WINNT/Graphics/Wine/d3d9/d3d9wddm.def
r33836 r35319 1 LIBRARY VBoxD3D9wddm.dll2 1 3 2 EXPORTS 4 Direct3DShaderValidatorCreate9 @0=Direct3DShaderValidatorCreate95 D3DPERF_BeginEvent @8=D3DPERF_BeginEvent6 D3DPERF_EndEvent @0=D3DPERF_EndEvent7 D3DPERF_GetStatus @0=D3DPERF_GetStatus8 D3DPERF_QueryRepeatFrame @0=D3DPERF_QueryRepeatFrame9 D3DPERF_SetMarker @8=D3DPERF_SetMarker10 D3DPERF_SetOptions @4=D3DPERF_SetOptions11 D3DPERF_SetRegion @8=D3DPERF_SetRegion12 DebugSetMute @0=DebugSetMute13 Direct3DCreate9 @4=Direct3DCreate914 Direct3DCreate9Ex @8=Direct3DCreate9Ex3 Direct3DShaderValidatorCreate9 4 D3DPERF_BeginEvent 5 D3DPERF_EndEvent 6 D3DPERF_GetStatus 7 D3DPERF_QueryRepeatFrame 8 D3DPERF_SetMarker 9 D3DPERF_SetOptions 10 D3DPERF_SetRegion 11 DebugSetMute 12 Direct3DCreate9 13 Direct3DCreate9Ex 15 14 VBoxWineExD3DDev9Flush 16 15 VBoxWineExD3DDev9CreateTexture -
trunk/src/VBox/Additions/WINNT/Graphics/Wine/switcher/d3d9_main.c
r28800 r35319 50 50 } D3D9Export; 51 51 52 #ifdef VBOX_WDDM_WOW64 53 static D3D9Export g_swd3d9 = {0, "VBoxD3D9-x86.dll", "MSD3D9.dll",}; 54 #else 52 55 static D3D9Export g_swd3d9 = {0, "VBoxD3D9.dll", "MSD3D9.dll",}; 56 #endif 53 57 54 58 void FillD3DExports(HANDLE hDLL) -
trunk/src/VBox/Additions/WINNT/Graphics/Wine/switcher/sw_common.c
r28800 r35319 29 29 BOOL result = FALSE; 30 30 31 #ifdef VBOX_WDDM_WOW64 32 hDLL = LoadLibrary("VBoxOGL-x86.dll"); 33 #else 31 34 hDLL = LoadLibrary("VBoxOGL.dll"); 35 #endif 32 36 33 37 /* note: this isn't really needed as our library will refuse to load if it can't connect to host. -
trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/directx.c
r33656 r35319 5103 5103 #ifdef VBOX_WITH_WDDM 5104 5104 BOOL (APIENTRY *pDrvValidateVersion)(DWORD) DECLSPEC_HIDDEN; 5105 #ifdef VBOX_WDDM_WOW64 5106 mod_gl = LoadLibraryA("VBoxOGL-x86.dll"); 5107 #else 5105 5108 mod_gl = LoadLibraryA("VBoxOGL.dll"); 5109 #endif 5106 5110 #else 5107 5111 mod_gl = LoadLibraryA("opengl32.dll"); -
trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/wined3dwddm.def
r32305 r35319 1 ; File generated automatically from ../../../dlls/wined3d/wined3d.spec; do not edit!2 3 LIBRARY wined3dwddm.dll4 1 5 2 EXPORTS -
trunk/src/VBox/Additions/WINNT/Installer/Makefile.kmk
r34677 r35319 133 133 endif 134 134 endif 135 if 0 #def VBOX_WITH_WDDM 136 ifeq ($(KBUILD_TARGET_ARCH),x86) 135 ifdef VBOX_WITH_WDDM_ENABLED 137 136 DRIVER_FILES += \ 138 137 $(PATH_BIN)/additions/VBoxVideoWddm.sys \ 139 138 $(PATH_BIN)/additions/VBoxVideoWddm.inf \ 140 $(PATH_BIN)/additions/VBoxDispD3D.dll \ 139 $(PATH_BIN)/additions/VBoxDispD3D.dll 140 ifdef VBOX_WITH_CROGL 141 DRIVER_FILES += \ 141 142 $(PATH_BIN)/additions/wined3dwddm.dll \ 142 143 $(PATH_BIN)/additions/VBoxD3D9wddm.dll 143 ifdef VBOX_SIGN_ADDITIONS 144 endif 145 ifdef VBOX_SIGN_ADDITIONS 144 146 DRIVER_FILES += \ 145 147 $(PATH_BIN)/additions/VBoxVideoWddm.cat 148 endif 149 ifeq ($(KBUILD_TARGET_ARCH),amd64) 150 DRIVER_FILES += \ 151 $(PATH_BIN)/additions/VBoxDispD3D-x86.dll 152 ifdef VBOX_WITH_CROGL 153 DRIVER_FILES += \ 154 $(PATH_BIN)/additions/wined3dwddm-x86.dll \ 155 $(PATH_BIN)/additions/VBoxD3D9wddm-x86.dll \ 156 $(PATH_BIN)/additions/VBoxOGL-x86.dll \ 157 $(PATH_BIN)/additions/VBoxOGLarrayspu-x86.dll \ 158 $(PATH_BIN)/additions/VBoxOGLcrutil-x86.dll \ 159 $(PATH_BIN)/additions/VBoxOGLerrorspu-x86.dll \ 160 $(PATH_BIN)/additions/VBoxOGLfeedbackspu-x86.dll \ 161 $(PATH_BIN)/additions/VBoxOGLpackspu-x86.dll \ 162 $(PATH_BIN)/additions/VBoxOGLpassthroughspu-x86.dll 146 163 endif 147 164 endif … … 166 183 -E 'VBOX_WITH_CROGL=$(if $(VBOX_WITH_CROGL),1,0)' \ 167 184 -E 'VBOX_WITH_GUEST_INSTALL_HELPER=$(if $(VBOX_WITH_GUEST_INSTALL_HELPER),1,0)' \ 168 -E 'VBOX_WITH_WDDM=$(if $(VBOX_WITH_WDDM ),0,0)' \185 -E 'VBOX_WITH_WDDM=$(if $(VBOX_WITH_WDDM_ENABLED),1,0)' \ 169 186 -E 'VBOX_BRAND_WIN_ADD_INST_DLGBMP=$(subst /,\,$(VBOX_BRAND_WIN_ADD_INST_DLGBMP))' \ 170 187 -E 'VBOX_BRAND_LICENSE_RTF=$(subst /,\,$(VBOX_BRAND_LICENSE_RTF))' \ -
trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsCommon.nsh
r34745 r35319 62 62 !endif 63 63 64 !if $%VBOX_WITH_WDDM% == "1" 65 ; WDDM Video driver 66 SetOutPath "$0\VBoxVideoWddm" 67 68 !ifdef VBOX_SIGN_ADDITIONS 69 FILE "$%PATH_OUT%\bin\additions\VBoxVideoWddm.cat" 70 !endif 71 FILE "$%PATH_OUT%\bin\additions\VBoxVideoWddm.sys" 72 FILE "$%PATH_OUT%\bin\additions\VBoxVideoWddm.inf" 73 FILE "$%PATH_OUT%\bin\additions\VBoxDispD3D.dll" 74 75 !if $%VBOX_WITH_CROGL% == "1" 76 FILE "$%PATH_OUT%\bin\additions\VBoxOGLarrayspu.dll" 77 FILE "$%PATH_OUT%\bin\additions\VBoxOGLcrutil.dll" 78 FILE "$%PATH_OUT%\bin\additions\VBoxOGLerrorspu.dll" 79 FILE "$%PATH_OUT%\bin\additions\VBoxOGLpackspu.dll" 80 FILE "$%PATH_OUT%\bin\additions\VBoxOGLpassthroughspu.dll" 81 FILE "$%PATH_OUT%\bin\additions\VBoxOGLfeedbackspu.dll" 82 FILE "$%PATH_OUT%\bin\additions\VBoxOGL.dll" 83 84 FILE "$%PATH_OUT%\bin\additions\VBoxD3D9wddm.dll" 85 FILE "$%PATH_OUT%\bin\additions\wined3dwddm.dll" 86 !endif ; $%VBOX_WITH_CROGL% == "1" 87 88 !if $%BUILD_TARGET_ARCH% == "amd64" 89 FILE "$%PATH_OUT%\bin\additions\VBoxDispD3D-x86.dll" 90 91 !if $%VBOX_WITH_CROGL% == "1" 92 FILE "$%PATH_OUT%\bin\additions\VBoxOGLarrayspu-x86.dll" 93 FILE "$%PATH_OUT%\bin\additions\VBoxOGLcrutil-x86.dll" 94 FILE "$%PATH_OUT%\bin\additions\VBoxOGLerrorspu-x86.dll" 95 FILE "$%PATH_OUT%\bin\additions\VBoxOGLpackspu-x86.dll" 96 FILE "$%PATH_OUT%\bin\additions\VBoxOGLpassthroughspu-x86.dll" 97 FILE "$%PATH_OUT%\bin\additions\VBoxOGLfeedbackspu-x86.dll" 98 FILE "$%PATH_OUT%\bin\additions\VBoxOGL-x86.dll" 99 100 FILE "$%PATH_OUT%\bin\additions\VBoxD3D9wddm-x86.dll" 101 FILE "$%PATH_OUT%\bin\additions\wined3dwddm-x86.dll" 102 !endif ; $%VBOX_WITH_CROGL% == "1" 103 !endif ; $%BUILD_TARGET_ARCH% == "amd64" 104 !endif ; $%VBOX_WITH_WDDM% == "1" 105 64 106 ; Mouse driver 65 107 SetOutPath "$0\VBoxMouse" … … 451 493 452 494 !if $%VBOX_WITH_WDDM% == "1" 453 !if $%BUILD_TARGET_ARCH% == "x86" 454 ; If we're on a 32-bit Windows Vista / 7 we can use the WDDM driver 455 ${If} $g_strWinVersion == "Vista" 456 ${OrIf} $g_strWinVersion == "7" 457 StrCpy $g_bCapWDDM "true" 458 ${EndIf} 459 !endif 495 ; If we're on a 32-bit Windows Vista / 7 we can use the WDDM driver 496 ${If} $g_strWinVersion == "Vista" 497 ${OrIf} $g_strWinVersion == "7" 498 StrCpy $g_bCapWDDM "true" 499 ${EndIf} 460 500 !endif 461 501 -
trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsW2KXP.nsh
r35006 r35319 189 189 FILE "$%PATH_OUT%\bin\additions\VBoxService.exe" ; Only used by W2K and up (for Shared Folders at the moment) 190 190 191 !if $%VBOX_WITH_WDDM% == "1" 192 ${If} $g_bWithWDDM == "true" 193 ; WDDM Video driver 194 SetOutPath "$INSTDIR" 195 196 !ifdef VBOX_SIGN_ADDITIONS 197 FILE "$%PATH_OUT%\bin\additions\VBoxVideoWddm.cat" 198 !endif 199 FILE "$%PATH_OUT%\bin\additions\VBoxVideoWddm.sys" 200 FILE "$%PATH_OUT%\bin\additions\VBoxVideoWddm.inf" 201 FILE "$%PATH_OUT%\bin\additions\VBoxDispD3D.dll" 202 203 !if $%VBOX_WITH_CROGL% == "1" 204 FILE "$%PATH_OUT%\bin\additions\VBoxOGLarrayspu.dll" 205 FILE "$%PATH_OUT%\bin\additions\VBoxOGLcrutil.dll" 206 FILE "$%PATH_OUT%\bin\additions\VBoxOGLerrorspu.dll" 207 FILE "$%PATH_OUT%\bin\additions\VBoxOGLpackspu.dll" 208 FILE "$%PATH_OUT%\bin\additions\VBoxOGLpassthroughspu.dll" 209 FILE "$%PATH_OUT%\bin\additions\VBoxOGLfeedbackspu.dll" 210 FILE "$%PATH_OUT%\bin\additions\VBoxOGL.dll" 211 212 FILE "$%PATH_OUT%\bin\additions\VBoxD3D9wddm.dll" 213 FILE "$%PATH_OUT%\bin\additions\wined3dwddm.dll" 214 !endif ; $%VBOX_WITH_CROGL% == "1" 215 216 !if $%BUILD_TARGET_ARCH% == "amd64" 217 FILE "$%PATH_OUT%\bin\additions\VBoxDispD3D-x86.dll" 218 219 !if $%VBOX_WITH_CROGL% == "1" 220 FILE "$%PATH_OUT%\bin\additions\VBoxOGLarrayspu-x86.dll" 221 FILE "$%PATH_OUT%\bin\additions\VBoxOGLcrutil-x86.dll" 222 FILE "$%PATH_OUT%\bin\additions\VBoxOGLerrorspu-x86.dll" 223 FILE "$%PATH_OUT%\bin\additions\VBoxOGLpackspu-x86.dll" 224 FILE "$%PATH_OUT%\bin\additions\VBoxOGLpassthroughspu-x86.dll" 225 FILE "$%PATH_OUT%\bin\additions\VBoxOGLfeedbackspu-x86.dll" 226 FILE "$%PATH_OUT%\bin\additions\VBoxOGL-x86.dll" 227 228 FILE "$%PATH_OUT%\bin\additions\VBoxD3D9wddm-x86.dll" 229 FILE "$%PATH_OUT%\bin\additions\wined3dwddm-x86.dll" 230 !endif ; $%VBOX_WITH_CROGL% == "1" 231 !endif ; $%BUILD_TARGET_ARCH% == "amd64" 232 233 Goto doneCr 234 ${EndIf} 235 !endif ; $%VBOX_WITH_WDDM% == "1" 236 191 237 !if $%VBOX_WITH_CROGL% == "1" 192 !if $%VBOX_WITH_WDDM% == "1"193 !if $%BUILD_TARGET_ARCH% == "x86"194 ${If} $g_bWithWDDM == "true"195 ; WDDM Video driver196 StrCpy $0 "$TEMP\VBoxGuestAdditions\WDDM"197 CreateDirectory "$0"198 !insertmacro InstallLib DLL NOTSHARED REBOOT_PROTECTED "$%PATH_OUT%\bin\additions\VBoxVideoWddm.sys" "$INSTDIR\VBoxVideoWddm.sys" "$0"199 !insertmacro InstallLib DLL NOTSHARED REBOOT_PROTECTED "$%PATH_OUT%\bin\additions\VBoxVideoWddm.inf" "$INSTDIR\VBoxVideoWddm.inf" "$0"200 !insertmacro InstallLib DLL NOTSHARED REBOOT_PROTECTED "$%PATH_OUT%\bin\additions\VBoxDispD3D.dll" "$INSTDIR\VBoxDispD3D.dll" "$0"201 202 !insertmacro InstallLib DLL NOTSHARED REBOOT_PROTECTED "$%PATH_OUT%\bin\additions\VBoxOGLarrayspu.dll" "$INSTDIR\VBoxOGLarrayspu.dll" "$0"203 !insertmacro InstallLib DLL NOTSHARED REBOOT_PROTECTED "$%PATH_OUT%\bin\additions\VBoxOGLcrutil.dll" "$INSTDIR\VBoxOGLcrutil.dll" "$0"204 !insertmacro InstallLib DLL NOTSHARED REBOOT_PROTECTED "$%PATH_OUT%\bin\additions\VBoxOGLerrorspu.dll" "$INSTDIR\VBoxOGLerrorspu.dll" "$0"205 !insertmacro InstallLib DLL NOTSHARED REBOOT_PROTECTED "$%PATH_OUT%\bin\additions\VBoxOGLpackspu.dll" "$INSTDIR\VBoxOGLpackspu.dll" "$0"206 !insertmacro InstallLib DLL NOTSHARED REBOOT_PROTECTED "$%PATH_OUT%\bin\additions\VBoxOGLpassthroughspu.dll" "$INSTDIR\VBoxOGLpassthroughspu.dll" "$0"207 !insertmacro InstallLib DLL NOTSHARED REBOOT_PROTECTED "$%PATH_OUT%\bin\additions\VBoxOGLfeedbackspu.dll" "$INSTDIR\VBoxOGLfeedbackspu.dll" "$0"208 !insertmacro InstallLib DLL NOTSHARED REBOOT_PROTECTED "$%PATH_OUT%\bin\additions\VBoxOGL.dll" "$INSTDIR\VBoxOGL.dll" "$0"209 210 !insertmacro InstallLib DLL NOTSHARED REBOOT_PROTECTED "$%PATH_OUT%\bin\additions\libWine.dll" "$INSTDIR\libWine.dll" "$0"211 !insertmacro InstallLib DLL NOTSHARED REBOOT_PROTECTED "$%PATH_OUT%\bin\additions\VBoxD3D9wddm.dll" "$INSTDIR\VBoxD3D9wddm.dll" "$0"212 !insertmacro InstallLib DLL NOTSHARED REBOOT_PROTECTED "$%PATH_OUT%\bin\additions\wined3dwddm.dll" "$INSTDIR\wined3dwddm.dll" "$0"213 214 Goto doneCr215 ${EndIf}216 !endif ; $%BUILD_TARGET_ARCH% == "x86"217 !endif ; $%VBOX_WITH_WDDM% == "1"218 238 ; crOpenGL 219 239 !if $%BUILD_TARGET_ARCH% == "amd64" … … 250 270 !endif 251 271 272 !endif ; VBOX_WITH_CROGL 273 252 274 doneCr: 253 254 !endif ; VBOX_WITH_CROGL255 275 256 276 Pop $0 … … 452 472 Delete /REBOOTOK "$INSTDIR\VBoxControl.exe" 453 473 Delete /REBOOTOK "$INSTDIR\VBoxService.exe" ; File from an older installation maybe, not present here anymore 474 475 !if $%VBOX_WITH_WDDM% == "1" 476 Delete /REBOOTOK "$%PATH_OUT%\bin\additions\VBoxVideoWddm.cat" 477 Delete /REBOOTOK "$%PATH_OUT%\bin\additions\VBoxVideoWddm.sys" 478 Delete /REBOOTOK "$%PATH_OUT%\bin\additions\VBoxVideoWddm.inf" 479 Delete /REBOOTOK "$%PATH_OUT%\bin\additions\VBoxDispD3D.dll" 480 481 Delete /REBOOTOK "$%PATH_OUT%\bin\additions\VBoxOGLarrayspu.dll" 482 Delete /REBOOTOK "$%PATH_OUT%\bin\additions\VBoxOGLcrutil.dll" 483 Delete /REBOOTOK "$%PATH_OUT%\bin\additions\VBoxOGLerrorspu.dll" 484 Delete /REBOOTOK "$%PATH_OUT%\bin\additions\VBoxOGLpackspu.dll" 485 Delete /REBOOTOK "$%PATH_OUT%\bin\additions\VBoxOGLpassthroughspu.dll" 486 Delete /REBOOTOK "$%PATH_OUT%\bin\additions\VBoxOGLfeedbackspu.dll" 487 Delete /REBOOTOK "$%PATH_OUT%\bin\additions\VBoxOGL.dll" 488 489 Delete /REBOOTOK "$%PATH_OUT%\bin\additions\VBoxD3D9wddm.dll" 490 Delete /REBOOTOK "$%PATH_OUT%\bin\additions\wined3dwddm.dll" 491 ; try to delete libWine in case it is there from old installation 492 Delete /REBOOTOK "$%PATH_OUT%\bin\additions\libWine.dll" 493 494 !if $%BUILD_TARGET_ARCH% == "amd64" 495 Delete /REBOOTOK "$%PATH_OUT%\bin\additions\VBoxDispD3D-x86.dll" 496 497 Delete /REBOOTOK "$%PATH_OUT%\bin\additions\VBoxOGLarrayspu-x86.dll" 498 Delete /REBOOTOK "$%PATH_OUT%\bin\additions\VBoxOGLcrutil-x86.dll" 499 Delete /REBOOTOK "$%PATH_OUT%\bin\additions\VBoxOGLerrorspu-x86.dll" 500 Delete /REBOOTOK "$%PATH_OUT%\bin\additions\VBoxOGLpackspu-x86.dll" 501 Delete /REBOOTOK "$%PATH_OUT%\bin\additions\VBoxOGLpassthroughspu-x86.dll" 502 Delete /REBOOTOK "$%PATH_OUT%\bin\additions\VBoxOGLfeedbackspu-x86.dll" 503 Delete /REBOOTOK "$%PATH_OUT%\bin\additions\VBoxOGL-x86.dll" 504 505 Delete /REBOOTOK "$%PATH_OUT%\bin\additions\VBoxD3D9wddm-x86.dll" 506 Delete /REBOOTOK "$%PATH_OUT%\bin\additions\wined3dwddm-x86.dll" 507 !endif ; $%BUILD_TARGET_ARCH% == "amd64" 508 !endif ; $%VBOX_WITH_WDDM% == "1" 454 509 455 510 ; WHQL fake … … 471 526 472 527 Push $0 473 !if $%VBOX_WITH_WDDM% == "1"474 ; First check whether WDDM driver is installed475 nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" /matchdrv "PCI\VEN_80EE&DEV_BEEF&SUBSYS_00000000&REV_00" "WDDM"'476 Pop $0 ; Ret value477 ${If} $0 == "0"478 DetailPrint "WDDM display driver is installed"479 StrCpy $g_bWithWDDM "true"480 ${ElseIf} $0 == "4"481 DetailPrint "Non-WDDM display driver is installed"482 ${Else}483 DetailPrint "Error occured"484 ; @todo Add error handling here!485 ${Endif}486 !endif487 528 488 529 ; Remove VirtualBox graphics adapter & PCI base drivers … … 498 539 499 540 ; Remove video driver 500 ${If} $g_bWithWDDM == "true" 501 nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" /delsvc VBoxVideoWddm' 502 Delete /REBOOTOK "$g_strSystemDir\drivers\VBoxVideoWddm.sys" 503 Delete /REBOOTOK "$g_strSystemDir\VBoxDispD3D.dll" 504 ${Else} 505 nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" /delsvc VBoxVideo' 506 Delete /REBOOTOK "$g_strSystemDir\drivers\VBoxVideo.sys" 507 Delete /REBOOTOK "$g_strSystemDir\VBoxDisp.dll" 508 ${Endif} 541 !if $%VBOX_WITH_WDDM% == "1" 542 ; always try to remove both VBoxVideoWddm & VBoxVideo services no matter what is installed currently 543 nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" /delsvc VBoxVideoWddm' 544 ;misha> @todo driver file removal (as well as service removal) should be done as driver package uninstall 545 ; could be done with "VBoxDrvInst.exe /u", e.g. by passing additional arg to it denoting that driver package is to be uninstalled 546 Delete /REBOOTOK "$g_strSystemDir\drivers\VBoxVideoWddm.sys" 547 Delete /REBOOTOK "$g_strSystemDir\VBoxDispD3D.dll" 548 !endif ; $%VBOX_WITH_WDDM% == "1" 549 nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" /delsvc VBoxVideo' 550 Delete /REBOOTOK "$g_strSystemDir\drivers\VBoxVideo.sys" 551 Delete /REBOOTOK "$g_strSystemDir\VBoxDisp.dll" 509 552 510 553 ; Remove mouse driver
Note:
See TracChangeset
for help on using the changeset viewer.