Rediger

Del via


Paging Video Memory Resources

Unlike the Microsoft Windows 2000 Display Driver Model, the Windows Vista display driver model allows more video memory resources to be created than the total amount of physical video memory available, which are then paged in and out of video memory as necessary. In other words, not all video memory resources are in video memory simultaneously.

The GPU can have multiple DMA buffers in its pipeline. The video memory resources that are referenced by these active DMA buffers must be in video memory. Other idle video memory resources can be paged out to system memory.

Before the GPU scheduler can call the display miniport driver's DxgkDdiSubmitCommand function to submit a DMA buffer to the GPU, the scheduler must ensure that all video memory resources used by the DMA buffer are actually in the video memory. If some resources are not in video memory, they must be paged in from system memory. The GPU scheduler must call upon the video memory manager to find space in video memory to transfer necessary video memory resource data from system memory to video memory. When video memory demand is high, the GPU scheduler must call upon the video memory manager to transfer idle video memory resource data to system memory to make room for the required video memory resource data. The special purpose DMA buffers that contain the commands for transferring data between video and system memory are known as paging buffers. The video memory manager calls the display miniport driver's DxgkDdiBuildPagingBuffer function to create paging buffers to which the driver writes hardware-specific data transfer commands.