// d3dkmddi.h
DXGKDDI_SETTRACKEDWORKLOADPOWERLEVEL DxgkddiSettrackedworkloadpowerlevel;
NTSTATUS DxgkddiSettrackedworkloadpowerlevel(
IN_CONST_HANDLE hContext,
INOUT_PDXGKARG_SETTRACKEDWORKLOADPOWERLEVEL pTrackedWorkloadPowerLevel
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
Called by the workload tracker to modify the power level on a context.
hContextA handle to the hardware context.
pTrackedWorkloadPowerLevelPointer to a DXGKARG_SETTRACKEDWORKLOADPOWERLEVEL structure.
Returns NTSTATUS.
//Declaration
DXGKDDI_SETTRACKEDWORKLOADPOWERLEVEL DxgkddiSettrackedworkloadpowerlevel;
// Definition
NTSTATUS DxgkddiSettrackedworkloadpowerlevel
(
IN_CONST_HANDLE hContext
INOUT_PDXGKARG_SETTRACKEDWORKLOADPOWERLEVEL pTrackedWorkloadPowerLevel
)
{...}
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.