VirtualBox

Changeset 94485 in vbox


Ignore:
Timestamp:
Apr 6, 2022 7:00:56 AM (3 years ago)
Author:
vboxsync
Message:

WDDM: added VBOX_WITH_WDDM_DX (not enabled yet) to include the new driver into the additions installer. bugref:9845

Location:
trunk/src/VBox/Additions/WINNT
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/Makefile.kmk

    r94160 r94485  
    7979
    8080 VBOXWDDM_EDIT_INF_DISPD3D_FN_ARG = $(if $(VBOXWDDM_WITH_DISPD3D),-e 's/^;dispd3d  *//', -e '/^;dispd3d /d')
     81 VBOXWDDM_EDIT_INF_DISPDX_FN_ARG = $(if $(VBOX_WITH_WDDM_DX),-e 's/^;dispdx  *//', -e '/^;dispdx /d')
    8182 VBOXWDDM_EDIT_INF_MESA3D_FN_ARG = $(if $(VBOX_WITH_MESA3D),-e 's/^;mesa3d  *//', -e '/^;mesa3d /d')
    8283
     
    8485                $(PATH_SUB_CURRENT)/mp/wddm/VBoxWddm.inf $(MAKEFILE_CURRENT) | $$(dir $$@)
    8586        $(call MSG_GENERATE,VBoxWddm-inf,$@,$<)
    86         $(call VBOX_EDIT_INF_FN,$<,$@ $(VBOXWDDM_EDIT_INF_DISPD3D_FN_ARG) $(VBOXWDDM_EDIT_INF_MESA3D_FN_ARG))
     87        $(call VBOX_EDIT_INF_FN,$<,$@ $(VBOXWDDM_EDIT_INF_DISPD3D_FN_ARG) $(VBOXWDDM_EDIT_INF_DISPDX_FN_ARG) $(VBOXWDDM_EDIT_INF_MESA3D_FN_ARG))
    8788
    8889 if defined(VBOX_SIGNING_MODE) && defined(VBOX_SIGN_ADDITIONS)
     
    9899        $(PATH_TARGET)/VBoxWddmCat.dir/VBoxDispD3D-x86.dll
    99100  endif # VBOXWDDM_WITH_DISPD3D
     101
     102  ifdef VBOX_WITH_WDDM_DX
     103   VBoxWddm-inf_SOURCES += \
     104       $(PATH_TARGET)/VBoxWddmCat.dir/VBoxDX.dll
     105   VBoxWddm-inf_SOURCES.amd64 += \
     106       $(PATH_TARGET)/VBoxWddmCat.dir/VBoxDX-x86.dll
     107  endif
    100108
    101109  ifdef VBOX_WITH_MESA3D
     
    124132   endif
    125133  endif # VBOXWDDM_WITH_DISPD3D
     134
     135  ifdef VBOX_WITH_WDDM_DX
     136   $(PATH_TARGET)/VBoxWddmCat.dir/VBoxDX.dll: $$(VBoxDX_1_TARGET) | $$(dir $$@)
     137        $(INSTALL) -m 644 $< $(@D)
     138
     139   ifeq ($(KBUILD_TARGET_ARCH),amd64)
     140    $(PATH_TARGET)/VBoxWddmCat.dir/VBoxDX-x86.dll: $$(VBoxDX-x86_1_TARGET) | $$(dir $$@)
     141        $(INSTALL) -m 644 $< $(@D)
     142   endif
     143  endif
    126144
    127145  ifdef VBOX_WITH_MESA3D
     
    158176                $(if $(VBOXWDDM_WITH_DISPD3D), $(PATH_TARGET)/VBoxWddmCat.dir/VBoxDispD3D.dll, ) \
    159177                $(if $(VBOXWDDM_WITH_DISPD3D), $(if-expr "$(KBUILD_TARGET_ARCH)" == "amd64", $(PATH_TARGET)/VBoxWddmCat.dir/VBoxDispD3D-x86.dll, ), ) \
     178                $(if $(VBOX_WITH_WDDM_DX), $(PATH_TARGET)/VBoxWddmCat.dir/VBoxDX.dll, ) \
     179                $(if $(VBOX_WITH_WDDM_DX), $(if-expr "$(KBUILD_TARGET_ARCH)" == "amd64", $(PATH_TARGET)/VBoxWddmCat.dir/VBoxDX-x86.dll, ), ) \
    160180                $(if $(VBOX_WITH_MESA3D), \
    161181                        $(PATH_TARGET)/VBoxWddmCat.dir/VBoxNine.dll \
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/Makefile.kmk

    r93265 r94485  
    9393  VBoxDispD3D_INSTTYPE       = none
    9494  VBoxDispD3D_DEBUG_INSTTYPE = both
     95  ifdef VBOX_WITH_WDDM_DX
     96   VBoxDX_INSTTYPE           = none
     97   VBoxDX_DEBUG_INSTTYPE     = both
     98  endif
    9599 endif
    96100endif
     
    174178VBoxDispD3D-x86_DEFS = $(VBoxDispD3D_DEFS) VBOX_WDDM_WOW64
    175179
     180#
     181# VGPU10 driver VBoxDX
     182#
     183 ifdef VBOX_WITH_VMSVGA3D_DX
     184DLLS += VBoxDX
     185VBoxDX_TEMPLATE = VBoxGuestR3DllMinVista
     186VBoxDX_DEFS     = UNICODE _UNICODE VBOX_WITH_VMSVGA3D_DX
     187VBoxDX_DEFS    += D3D_UMD_INTERFACE_VERSION=D3D_UMD_INTERFACE_VERSION_WIN8
     188VBoxDX_DEFS    += DXGKDDI_INTERFACE_VERSION=DXGKDDI_INTERFACE_VERSION_WIN8
     189VBoxDX_INCS     = \
     190        $(PATH_ROOT)/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/shared \
     191        $(PATH_ROOT)/src/VBox/Additions/WINNT/Graphics/Video/common/wddm \
     192        $(PATH_ROOT)/src/VBox/Additions/3D/win/include \
     193        $(PATH_ROOT)/src/VBox/Additions/3D/mesa/mesa-17.3.9/src/gallium/drivers/svga/include \
     194        $(VBOX_GRAPHICS_INCS)
     195VBoxDX_SOURCES  = \
     196        wddm/dx/VBoxDXDDI.cpp \
     197        wddm/dx/VBoxDX.rc \
     198        wddm/dx/VBoxDX.def
     199VBoxDX_LIBS     = \
     200        $(VBOX_LIB_IPRT_GUEST_R3) \
     201        Psapi.lib \
     202        $(VBOX_PATH_ADDITIONS_LIB)/VBoxDispMpLogger$(VBOX_SUFF_LIB) \
     203        $(VBOX_PATH_ADDITIONS_LIB)/VBoxWddmUmKmt$(VBOX_SUFF_LIB)
     204
     205# 64-bit systems need a 32-bit version of VBoxDX
     206DLLS.amd64 += VBoxDX-x86
     207VBoxDX-x86_EXTENDS = VBoxDX
     208VBoxDX-x86_BLD_TRG_ARCH = x86
     209VBoxDX-x86_LIBS = \
     210        $(VBOX_LIB_IPRT_GUEST_R3_X86) \
     211        $(VBOX_LIB_VBGL_R3_X86) \
     212        Psapi.lib \
     213        $(VBOX_PATH_ADDITIONS_LIB)/VBoxDispMpLogger-x86$(VBOX_SUFF_LIB) \
     214        $(VBOX_PATH_ADDITIONS_LIB)/VBoxWddmUmKmt-x86$(VBOX_SUFF_LIB)
     215VBoxDX-x86_DEFS = $(VBoxDX_DEFS) VBOX_WDDM_WOW64
     216 endif # VBOX_WITH_VMSVGA3D_DX
     217
    176218include $(PATH_SUB_CURRENT)/wddm/shared/Makefile.kmk
    177219
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxWddm.inf

    r93115 r94485  
    5353[VBoxVideo.Display]
    5454;dispd3d VBoxDispD3D.dll,,,0x00004000  ; COPYFLG_IN_USE_TRY_RENAME
     55;dispdx VBoxDX.dll,,,0x00004000       ; COPYFLG_IN_USE_TRY_RENAME
    5556;mesa3d VBoxNine.dll,,,0x00004000     ; COPYFLG_IN_USE_TRY_RENAME
    5657;mesa3d VBoxSVGA.dll,,,0x00004000     ; COPYFLG_IN_USE_TRY_RENAME
     
    6061;amd64 [VBoxVideo.Display_wow64]
    6162;amd64 ;dispd3d VBoxDispD3D-x86.dll,,,0x00004000  ; COPYFLG_IN_USE_TRY_RENAME
     63;amd64 ;dispdx VBoxDX-x86.dll,,,0x00004000       ; COPYFLG_IN_USE_TRY_RENAME
    6264;amd64 ;mesa3d VBoxNine-x86.dll,,,0x00004000     ; COPYFLG_IN_USE_TRY_RENAME
    6365;amd64 ;mesa3d VBoxSVGA-x86.dll,,,0x00004000     ; COPYFLG_IN_USE_TRY_RENAME
     
    6971;dispd3d        HKR,, UserModeDriverName,      %REG_MULTI_SZ%, VBoxDispD3D.dll
    7072;amd64 ;dispd3d HKR,, UserModeDriverNameWow,   %REG_MULTI_SZ%, VBoxDispD3D-x86.dll
     73;dispdx         HKR,, InstalledDisplayDrivers, %REG_MULTI_SZ%, VBoxDispD3D, VBoxDX, VBoxDX
     74;dispdx         HKR,, UserModeDriverName,      %REG_MULTI_SZ%, VBoxDispD3D.dll, VBoxDX.dll, VBoxDX.dll
     75;amd64 ;dispdx  HKR,, UserModeDriverNameWow,   %REG_MULTI_SZ%, VBoxDispD3D-x86.dll, VBoxDX-x86.dll, VBoxDX-x86.dll
    7176;mesa3d         HKR,, OpenGLDriverName,    %REG_MULTI_SZ%, VBoxICD
    7277;amd64 ;mesa3d  HKR,, OpenGLDriverNameWoW, %REG_MULTI_SZ%, VBoxICD-x86
     
    103108VBoxWddm.sys = 1
    104109;amd64 ;dispd3d VBoxDispD3D-x86.dll = 1
     110;amd64 ;dispdx VBoxDX-x86.dll = 1
    105111;amd64 ;mesa3d VBoxNine-x86.dll = 1
    106112;amd64 ;mesa3d VBoxSVGA-x86.dll = 1
     
    108114;amd64 ;mesa3d VBoxGL-x86.dll = 1
    109115;dispd3d VBoxDispD3D.dll = 1
     116;dispdx  VBoxDX.dll = 1
    110117;mesa3d VBoxNine.dll = 1
    111118;mesa3d VBoxSVGA.dll = 1
  • trunk/src/VBox/Additions/WINNT/Installer/Makefile.kmk

    r94160 r94485  
    113113        $(PATH_STAGE_BIN)/additions/VBoxWddm.inf \
    114114        $(PATH_STAGE_BIN)/additions/VBoxDispD3D.dll
     115 ifdef VBOX_WITH_WDDM_DX
     116DRIVER_FILES += \
     117        $(PATH_STAGE_BIN)/additions/VBoxDX.dll
     118 endif
    115119 ifdef VBOX_WITH_MESA3D
    116120DRIVER_FILES += \
     
    128132DRIVER_FILES += \
    129133        $(PATH_STAGE_BIN)/additions/VBoxDispD3D-x86.dll
     134  ifdef VBOX_WITH_WDDM_DX
     135DRIVER_FILES += \
     136        $(PATH_STAGE_BIN)/additions/VBoxDX-x86.dll
     137  endif
    130138  ifdef VBOX_WITH_MESA3D
    131139DRIVER_FILES += \
     
    166174        -E 'VBOX_WITH_LICENSE_INSTALL_RTF=$(if $(VBOX_BRAND_LICENSE_RTF),1,0)' \
    167175        -E 'VBOX_WITH_WDDM=$(if $(VBOX_WITH_WDDM),1,0)' \
     176        -E 'VBOX_WITH_WDDM_DX=$(if $(VBOX_WITH_WDDM_DX),1,0)' \
    168177        -E 'VBOX_WITH_MESA3D=$(if $(VBOX_WITH_MESA3D),1,0)' \
    169178        -E 'VBOX_BRAND_WIN_ADD_INST_DLGBMP=$(subst /,\,$(VBOX_BRAND_WIN_ADD_INST_DLGBMP))' \
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsCommon.nsh

    r94160 r94485  
    8484  FILE "$%PATH_OUT%\bin\additions\VBoxWddm.inf"
    8585  FILE "$%PATH_OUT%\bin\additions\VBoxDispD3D.dll"
     86  !if $%VBOX_WITH_WDDM_DX% == "1"
     87    FILE "$%PATH_OUT%\bin\additions\VBoxDX.dll"
     88  !endif
    8689  !if $%VBOX_WITH_MESA3D% == "1"
    8790    FILE "$%PATH_OUT%\bin\additions\VBoxNine.dll"
     
    9396  !if $%KBUILD_TARGET_ARCH% == "amd64"
    9497    FILE "$%PATH_OUT%\bin\additions\VBoxDispD3D-x86.dll"
     98    !if $%VBOX_WITH_WDDM_DX% == "1"
     99      FILE "$%PATH_OUT%\bin\additions\VBoxDX-x86.dll"
     100    !endif
    95101    !if $%VBOX_WITH_MESA3D% == "1"
    96102      FILE "$%PATH_OUT%\bin\additions\VBoxNine-x86.dll"
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsW2KXP.nsh

    r94160 r94485  
    256256
    257257    FILE "$%PATH_OUT%\bin\additions\VBoxDispD3D.dll"
     258    !if $%VBOX_WITH_WDDM_DX% == "1"
     259      FILE "$%PATH_OUT%\bin\additions\VBoxDX.dll"
     260    !endif
    258261    !if $%VBOX_WITH_MESA3D% == "1"
    259262      FILE "$%PATH_OUT%\bin\additions\VBoxNine.dll"
     
    265268    !if $%KBUILD_TARGET_ARCH% == "amd64"
    266269      FILE "$%PATH_OUT%\bin\additions\VBoxDispD3D-x86.dll"
     270      !if $%VBOX_WITH_WDDM_DX% == "1"
     271        FILE "$%PATH_OUT%\bin\additions\VBoxDX-x86.dll"
     272      !endif
    267273      !if $%VBOX_WITH_MESA3D% == "1"
    268274        FILE "$%PATH_OUT%\bin\additions\VBoxNine-x86.dll"
     
    475481  ; Obsolete files end
    476482  Delete /REBOOTOK "$INSTDIR\VBoxDispD3D.dll"
     483  !if $%VBOX_WITH_WDDM_DX% == "1"
     484    Delete /REBOOTOK "$INSTDIR\VBoxDX.dll"
     485  !endif
    477486  !if $%VBOX_WITH_MESA3D% == "1"
    478487    Delete /REBOOTOK "$INSTDIR\VBoxNine.dll"
     
    489498  !if $%KBUILD_TARGET_ARCH% == "amd64"
    490499    Delete /REBOOTOK "$INSTDIR\VBoxDispD3D-x86.dll"
     500    !if $%VBOX_WITH_WDDM_DX% == "1"
     501      Delete /REBOOTOK "$INSTDIR\VBoxDX-x86.dll"
     502    !endif
    491503    !if $%VBOX_WITH_MESA3D% == "1"
    492504      Delete /REBOOTOK "$INSTDIR\VBoxNine-x86.dll"
     
    557569  !if $%KBUILD_TARGET_ARCH% == "amd64"
    558570    Delete /REBOOTOK "$g_strSysWow64\VBoxDispD3D-x86.dll"
     571  !endif
     572
     573  !if $%VBOX_WITH_WDDM_DX% == "1"
     574    Delete /REBOOTOK "$g_strSystemDir\VBoxDX.dll"
     575    !if $%KBUILD_TARGET_ARCH% == "amd64"
     576      Delete /REBOOTOK "$g_strSysWow64\VBoxDX-x86.dll"
     577    !endif
    559578  !endif
    560579
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