Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1542790
  • 博文数量: 596
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 173
  • 用 户 组: 普通用户
  • 注册时间: 2016-07-06 15:50
个人简介

在线笔记

文章分类

全部博文(596)

文章存档

2016年(1)

2015年(104)

2014年(228)

2013年(226)

2012年(26)

2011年(11)

分类: Windows平台

2014-05-22 18:34:21

%28v=vs.85%29.aspx
  1. Migrating to the Windows Display Driver Model (WDDM)) requires driver writers to write completely different display and video miniport drivers. Similar to the Windows 2000 display driver model (XDDM), WDDM requires a paired display driver and display miniport driver. However, in WDDM, the display driver runs in user mode. Also, the model does not use services of the Windows Graphics Device Interface (GDI) engine; the model uses services of the Microsoft Direct3D runtime and Microsoft DirectX graphics kernel subsystem (Dxgkrnl.sys).
  2. 1. WDDM和XPDM是完全不一样的。
  3. 2. WDDM也需要显示驱动和小端口驱动。
  4. 显示驱动运行在用户模式,不使用GDI引擎(Eng*),使用D3D或者DX

  5. WDDM supports display and video miniport drivers written according to XDDM. However, new drivers should be written as WDDM drivers, whenever possible, to take advantage of software and hardware features available starting with Windows Vista.

  6. Although driver writers can reuse low-level hardware-dependent code in their WDDM drivers, they should rewrite new device driver interface (DDI)-related code. When writing WDDMdrivers, consider these points:

  7.     The display miniport driver must implement a revised set of entry-point functions to interact with the operating system and the DirectX graphics kernel subsystem. For more information, see DriverEntry of Display Miniport Driver. The display miniport driver can call any documented kernel function.
  8. 1. 显示小端口驱动实现与操作系统和DirectX图形内核子系统的接口。
  9. 2. 更多信息请看显示小端口驱动的DriverEntry函数,
  1.     The display miniport driver dynamically loads the appropriate DirectX graphics kernel subsystem. The display miniport driver and the DirectX graphics kernel subsystem call each other through interfaces.
  2.     The display miniport driver is no longer required to process most video I/O control codes (IOCTL). In XDDM, the kernel-mode display driver uses these codes to communicate with the video miniport driver. In WDDM, the user-mode display driver communicates with the Direct3D runtime; the WDDM graphics kernel subsystem, in turn, communicates with the display miniport driver.
  3. 1.显示小端口驱动动态加载DirectX图形内核子系统。二者通过接口相互调用。
  4.     Note The following IOCTLs are still used in WDDM, and the display miniport driver must process them:

  5.     IOCTL_VIDEO_QUERY_COLOR_CAPABILITIES
  6.     IOCTL_VIDEO_HANDLE_VIDEOPARAMETERS

  7.     The user-mode display driver must implement and export an OpenAdapter function, which opens an instance of the graphics adapter. The user-mode display driver must also implement a CreateDevice function, which creates representations of display devices that handle collections of rendering state.
  8. 1. 用户模式显示驱动必须实现和导出OpenAdapter函数,该函数打开图形适配器的实例。
  9. 2. 用户模式显示驱动必须实现CreateDevice函数,创建代表显示设备收集渲染状态

  10.     The user-mode display driver's CreateResource function, along with the display miniport driver's DxgkDdiCreateAllocation function, replace the DdCanCreateSurface, DdCreateSurface, and D3dCreateSurfaceEx functions in XDDM.
  11.     Most of the remaining user-mode display driver functions implement the same functionality that the kernel-mode display driver for XDDM implemented in the following:
  12.         The D3dDrawPrimitives2 function and DP2 operation codes
  13.         The motion compensation callback functions and DirectX Video Acceleration structures

阅读(1591) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~