DXGKCB_NOTIFY_DPC fonction de rappel (d3dkmddi.h)

Un pilote miniport d’affichage en mode noyau appelle DXGKCB_NOTIFY_DPC pour informer le planificateur d’unité de traitement graphique (GPU) d’une mise à jour matérielle graphique à l’heure de l’appel de procédure différée (DPC).

Syntaxe

DXGKCB_NOTIFY_DPC DxgkcbNotifyDpc;

void DxgkcbNotifyDpc(
  [in] IN_CONST_HANDLE hAdapter
)
{...}

Paramètres

[in] hAdapter

Handle de l’objet adaptateur pour le GPU. Le pilote reçoit le handle du membre DeviceHandle de la structure DXGKRNL_INTERFACE dans un appel à sa fonction DxgkDdiStartDevice .

Valeur de retour

None

Remarques

La routine de rappel DPC du pilote miniport d’affichage appelle DXGKCB_NOTIFY_DPC pour informer le planificateur GPU d’une mise à jour d’une clôture par le biais d’un flux d’accès direct à la mémoire (DMA) vers le matériel graphique.

DXGKCB_XXX fonctions sont implémentées par Dxgkrnl. Pour utiliser cette fonction de rappel, appelez DxgkCbNotifyDpc via le DXGKRNL_INTERFACE.

Exemples

L’exemple de code suivant montre comment informer le planificateur GPU de l’interruption DMA ou V-Sync.

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);
}

Configuration requise

Condition requise Valeur
Client minimal pris en charge Windows Vista (WDDM 1.0)
Plateforme cible Desktop (Expérience utilisateur)
En-tête d3dkmddi.h (include D3dkmddi.h)
IRQL DISPATCH_LEVEL

Voir aussi

DXGKRNL_INTERFACE

DXGKCB_NOTIFY_INTERRUPT

DxgkCbQueueDpc

DxgkDdiStartDevice