DXGKDDI_GETROOTPAGETABLESIZE callback function (d3dkmddi.h)

DxgkDdiGetRootPageTableSize returns the minimum root page table size, in bytes, that is needed to hold the given number of page table entries. The actual number of entries in the page table could be greater than the given value.

DxgkDdiGetRootPageTableSize is called only when DXGK_GPUMMUCAPS::PageTableLevelCount is two.

Syntax

DXGKDDI_GETROOTPAGETABLESIZE DxgkddiGetrootpagetablesize;

SIZE_T DxgkddiGetrootpagetablesize(
  IN_CONST_HANDLE hAdapter,
  INOUT_PDXGKARG_GETROOTPAGETABLESIZE pArgs
)
{...}

Parameters

hAdapter

A handle to the display adapter.

pArgs

The DXGKARG_GETROOTPAGETABLESIZE structure that describes the operation.

Return value

The page table size in bytes. The size must be a multiple of the page size of the GPU memory segment where page table is located.

Requirements

Requirement Value
Minimum supported client Windows 10
Minimum supported server Windows Server 2016
Target Platform Desktop
Header d3dkmddi.h