图形 INF 要求
与 WDDM 2.0 或以前的驱动程序相比,WDDM 2.1 图形驱动程序对 INF 的要求不尽相同:
-
WDDM 2.1 必须具有与 WDDM 2.0 图形驱动程序 (D1) 相同的功能分数。
-
WDDM 2.1 图形驱动程序必须使用不同的 OS INF 安装部分。
-
WDDM 2.1 图形驱动程序 INF 更改用于“驱动程序存储”安装。
32 位和 64 位驱动程序文件都将保留在驱动程序存储中,并从驱动程序存储中加载。 WoW64 文件系统重定向不适用于驱动程序存储。 如果需要,IHV 可以使用标准 INF 语法指定子文件夹,例如在唯一的驱动程序存储文件夹下创建 WoW64 文件夹。
以下示例显示了从驱动程序存储运行的 INF 支持与以前的行为有何不同。
WINDOWS 10 ANNIVERSARY EDITION APPROACH: RUNNING DRIVERS FROM THE DRIVER STORE
[DestinationDirs]
KMDCopyFiles = 13
UMDCopyFiles = 13
UMDWoW64CopyFiles = 13[DDInstall]
CopyFiles=KMDCopyFiles
CopyFiles=UMDCopyFiles
CopyFiles=UMDWoW64CopyFile[KMDCopyFiles]
myKMD.sys[UMDCopyFiles]
myUMD64.dll
myOpenCL64.dll
myOpenGL64.dll[UMDWow64CopyFiles]
myUMD32.dll
myOpenCL32.dll
myOpenGL32.dll[DDInstall.Services]
AddService = serviceName, 0x00000002, serviceName_Service_Inst[serviceName_Service_Inst]
ServiceBinary = %13%\serviceName.sys[regAdd]
HKR,,UserModeDriverName,%REG_MULTI_SZ%,%13%\myUMD64.dll, %13%\myUMD64.dll, %13%\myUMD64.dll, %13%\myUMD64.dll
HKR,,UserModeDriverNameWoW,%REG_MULTI_SZ%, %13%\myUMD32.dll, %13%\myUMD32.dll, %13%\myUMD32.dll, %13%\myUMD32.dll
HKLM,"Software\Khronos\OpenCL\Vendors",%13%\myOpenCL64.dll,%REG_DWORD%,0x00000000
HKLM,"Software\Wow6432Node\Khronos\OpenCL\Vendors",%13%\ myOpenCL32.dll,%REG_DWORD%,0x00000000
HKR,,OpenGLDriverName,%REG_MULTI_SZ%,%13%\myOpenGL64.dll
HKR,,OpenGLDriverNameWoW,%REG_MULTI_SZ%,%13%\myOpenGL32.dll
要指定子文件夹,驱动程序可以使用如下示例所示的语法:
...
[DestinationDirs]
...
UMDWoW64CopyFiles = 13,WoW64
...
[regAdd]
...
HRK,, UserModeDriverNameWoW,%REG_MULTI_SZ%, %13%\WoW64\myUMD.dll, %13%\WoW64\myUMD.dll, %13%\The manufacturer install section decoration for Windows 10 Anniversary edition WDDM 2.1 drivers is as follows:
...
[Manufacturer]
%Grfx_Manf% = IHVGfx, NTamd64.10.0…14310
...
[IHVGfx.NTamd64.10.0…14310]
; HW ID list
[list of HW IDs]