DxgkCbNotifyDpc routine

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 APIENTRY DxgkCbNotifyDpc(
  _In_  const HANDLE hAdapter
)
{ ... }

Parameters

hAdapter [in]

[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

Version

Available in Windows Vista and later versions of the Windows operating systems.

Header

D3dkmddi.h (include D3dkmddi.h)

IRQL

DISPATCH_LEVEL

See also

DxgkCbQueueDpc
DxgkCbNotifyInterrupt
DxgkDdiStartDevice
DXGKRNL_INTERFACE

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft. All rights reserved.