DXGKCB_NOTIFY_DPC callback function

The DxgkCbNotifyDpc function informs the graphics processing unit (GPU) scheduler about a graphics hardware update at deferred-procedure-call (DPC) time.

Syntax

DXGKCB_NOTIFY_DPC DxgkcbNotifyDpc;

void DxgkcbNotifyDpc(
  IN_CONST_HANDLE hAdapter
)
{...}

Parameters

hAdapter

[in] A handle to the adapter object for the GPU. The driver receives the handle from the DeviceHandle member of the DXGKRNL_INTERFACE structure in a call to its DxgkDdiStartDevice function.

Return Value

None

Remarks

The display miniport driver's DPC callback routine calls the DxgkCbNotifyDpc function to inform the GPU scheduler about an update to a fence through a direct memory access (DMA) stream to the graphics hardware.

Examples

The following code example shows how to notify the GPU scheduler about the DMA or V-Sync interrupt.

NTSTATUS
D3DDDINotifyDPC(
    HW_DEVICE_EXTENSION  *pAdapter)
{
    DXGKRNL_INTERFACE  *pCallback;
    DXGKCB_NOTIFY_DPC  DxgkCbNotifyDpc;

    pCallback = &(pAdapter->ddiCallback);

    if (! pAdapter->pVidSchDPCCB) {
        return (STATUS_SUCCESS);
    }

    DxgkCbNotifyDpc = (DXGKCB_NOTIFY_DPC)pAdapter->pVidSchDPCCB;

    DxgkCbNotifyDpc(pAdapter->DeviceHandle);

    return (STATUS_SUCCESS);
}

Requirements

   
Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Target Platform Desktop
Header d3dkmddi.h (include D3dkmddi.h)
IRQL DISPATCH_LEVEL

See Also

DXGKRNL_INTERFACE

DxgkCbNotifyInterrupt

DxgkCbQueueDpc

DxgkDdiStartDevice