// d3dkmthk.h
NTSTATUS D3DKMTUpdateGpuVirtualAddress(
[in] const D3DKMT_UPDATEGPUVIRTUALADDRESS *unnamedParam1
);
View the official Windows Driver Kit DDI referenceNo description available.
D3DKMTUpdateGpuVirtualAddress is a special operation used in the context of tile resources. It allows the driver to specify a number of mapping operations to be applied to the process virtual address space in a single batch of page table updates.
unnamedParam1 [in]A pointer to a D3DKMT_UPDATEGPUVIRTUALADDRESS structure that describes the operation.
| Return code | Description |
|---|---|
| STATUS_SUCCESS | The device context was successfully created. |
| STATUS_INVALID_PARAMETER | Parameters were validated and determined to be incorrect. |
This function might also return other NTSTATUS values.
The range of graphics processing unit (GPU) virtual addresses in all operations (except the source of the copy operations) must belong to a single virtual address range which was obtained by calling ReserveGpuVirtualAddressRange. Similarly, the virtual address ranges of all sources in copy operations must belong to a single virtual address range, which was obtained by calling ReserveGpuVirtualAddressRange.
The page table updates are executed on a paging context, dedicated to the rendering context specified, and executed on the GPU only after the associated rendering context signaled FenceValue for the specified monitored fence object. When the page table updates are finished, the paging context signals the monitored fence object to FenceValue+1, allowing the rendering context to do tight interlocking with the page table updates.
The virtual address ranges in the update operations are allowed to intersect. The operations will be applied in the order they are submitted.
In a single UpdateVirtualAddress call:
Drivers can submit many UpdateGpuVirtualAddress calls, which will be queued behind the rendering fence. When the number of queued update operations exceeds 128, the calling thread will be blocked until the previous operations are processed by the video memory manager.
D3DKMT_UPDATEGPUVIRTUALADDRESS