DXGKARG_SUSPENDCONTEXT structure (d3dkmddi.h)

Arguments used in the DxgkddiSuspendContext callback function.

Syntax

typedef struct _DXGKARG_SUSPENDCONTEXT {
  HANDLE hContext;
  UINT64 contextSuspendFence;
} DXGKARG_SUSPENDCONTEXT;

Members

hContext

The hardware context to be preempted and marked as suspended. This type of preemption request does not have a grace period, and is expected to be honored by the GPU as soon as possible.

contextSuspendFence

A monotonically increasing per-context value that will be reported by the GPU context suspended interrupt once the preemption request is completed. Until the fence is signaled, the OS cannot assume GPU is suspended.

Remarks

The context suspend fence value is necessary to handle cases when the OS suspends a context, doesn’t wait for the suspend fence acknowledgment, resumes, and suspends a context again. The suspend fence value will allow the OS to distinguish between the previous suspend acknowledgement and the latest one.

Requirements

   
Header d3dkmddi.h