DXGKDDI_VALIDATESUBMITCOMMAND - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// d3dkmddi.h

DXGKDDI_VALIDATESUBMITCOMMAND DxgkddiValidatesubmitcommand;

NTSTATUS DxgkddiValidatesubmitcommand(
  IN_CONST_HANDLE hContext,
  INOUT_PDXGKARG_VALIDATESUBMITCOMMAND pArgs
)
{...}
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-d3dkmddi-dxgkddi_validatesubmitcommand)

DXGKDDI_VALIDATESUBMITCOMMAND callback function

Description

The kernel-mode display miniport's (KMD's) DXGKDDI_VALIDATESUBMITCOMMAND function validates private driver data that the user-mode driver (UMD) passes in calls to D3DKMTSubmitCommand or D3DKMTSubmitCommandToHwQueue.

Parameters

hContext

[in] A handle to the miniport device context, which the KMD returned from DxgkDdiAddDevice.

pArgs

[in/out] Pointer to a DXGKARG_VALIDATESUBMITCOMMAND structure containing information needed to validate the submit command.

Return value

DXGKDDI_VALIDATESUBMITCOMMAND returns an NTSTATUS value such as one of the following:

Remarks

When the KMD implements this callback, the KMD always validates private data passed in calls to:

This callback is called only when the private driver size (DmaBufferPrivateDataSize) in D3DKMTSubmitCommand is not zero.

It is called once per D3DKMTSubmitCommand or D3DKMTSubmitCommandToHwQueue.

The KMD should not assume that this callback is called in the context of the process that called D3DKMTSubmitCommand. Therefore, the UMD should not pass any user-mode pointers or handles in its private data.

This callback is called before the command is submitted to the GPU scheduler software queue for execution.

See also

DXGKARG_VALIDATESUBMITCOMMAND