DXGKDDI_SETTRACKEDWORKLOADPOWERLEVEL callback function (d3dkmddi.h)

Called by the workload tracker to modify the power level on a context.

Syntax

DXGKDDI_SETTRACKEDWORKLOADPOWERLEVEL DxgkddiSettrackedworkloadpowerlevel;

NTSTATUS DxgkddiSettrackedworkloadpowerlevel(
  IN_CONST_HANDLE hContext,
  INOUT_PDXGKARG_SETTRACKEDWORKLOADPOWERLEVEL pTrackedWorkloadPowerLevel
)
{...}

Parameters

hContext

A handle to the hardware context.

pTrackedWorkloadPowerLevel

Pointer to a DXGKARG_SETTRACKEDWORKLOADPOWERLEVEL structure.

Return value

Returns NTSTATUS.

Remarks

If the next packet submission for this context takes place, then the new frequency/configuration parameters for the GPU should be effective. The OS will just call the DDI to set the ratio if it changes significantly from the previously computed level. Whenever we switch to this context, the driver needs to make sure the correct GPU configuration including the appropriate frequencies is applied to any subsequent packets execution.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1809
Header d3dkmddi.h