// d3dkmddi.h
DXGKDDI_VALIDATESUBMITCOMMAND DxgkddiValidatesubmitcommand;
NTSTATUS DxgkddiValidatesubmitcommand(
IN_CONST_HANDLE hContext,
INOUT_PDXGKARG_VALIDATESUBMITCOMMAND pArgs
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
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.
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.
DXGKDDI_VALIDATESUBMITCOMMAND returns an NTSTATUS value such as one of the following:
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.