DMA Buffer Model(MSDN翻译)"/>
Using the Guaranteed Contract DMA Buffer Model(MSDN翻译)
Using the Guaranteed Contract DMA Buffer Model
Windows Vista的显示驱动模型会保障(Guarantee)用于渲染设备的DMA Buffer和patch-location list的大小。
在受保障的contract模型中,UMD能知道DMA Buffer和patch-location list的大小,当UMD填充Command buffer并且调用pfnRenderCb提交给KMD时会使用这些信息进行command的翻译操作。在每次调用pfnRenderCb之后UMD会收到DMA Buffer和patch-location list的大小,这些信息会用于接下里的翻译操作(即之后又会调用pfnRenderCb)。
VMM保证了在下一次翻译过程完成之前DMA buffer和patch-location list 不会被 trim。KMD必须能够将一个Command buffer中的内容翻译到一个DMA buffer和一个Patch-location list中。如果该翻译不能进行,则该UMD buffer被认为无效。在进行翻译操作时KMD不能返回DMA buffer和patch-location list空间不足的状态,否则VMM会使系统BSOD,因为这样破坏了受保障Contract模型的基本需求(也就是在UMD进行提交时,肯定能够保证DMA的大小足够放下翻译之后的内容。应该这也就是Guaranteed Contract的核心)。
更多推荐
Using the Guaranteed Contract DMA Buffer Model(MSDN翻译)
发布评论