Bewerken

Delen via


DXGKDDI_RESETFROMTIMEOUT callback function (d3dkmddi.h)

The DxgkDdiResetFromTimeout function resets the graphics processing unit (GPU) after a hardware timeout occurs and guarantees that the GPU is not writing or reading any memory by the time that DxgkDdiResetFromTimeout returns.

Syntax

DXGKDDI_RESETFROMTIMEOUT DxgkddiResetfromtimeout;

NTSTATUS DxgkddiResetfromtimeout(
  [in] IN_CONST_HANDLE hAdapter
)
{...}

Parameters

[in] hAdapter

A handle to a context block that is associated with a display adapter. The display miniport driver previously provided this handle to the Microsoft DirectX graphics kernel subsystem in the MiniportDeviceContext output parameter of the DxgkDdiAddDevice function.

Return value

DxgkDdiResetFromTimeout returns STATUS_SUCCESS to indicate that the driver handled the call successfully; otherwise, the operating system bug checks and causes a restart.

Remarks

The GPU scheduler calls DxgkDdiResetFromTimeout when it detects that a hardware time-out occurred. The time-out is typically a delayed response to a preempt request. DxgkDdiResetFromTimeout should reset the GPU.

For more information about time-outs in this situation, see Thread Synchronization and TDR.

DxgkDdiResetFromTimeout should be made pageable.

Requirements

Requirement Value
Minimum supported client Windows Vista
Target Platform Desktop
Header d3dkmddi.h
IRQL PASSIVE_LEVEL

See also

DxgkDdiAddDevice

DxgkDdiReleaseSwizzlingRange

DxgkDdiRestartFromTimeout