Skip to content

Latest commit

 

History

History
91 lines (66 loc) · 2.54 KB

nc-d3dkmddi-dxgkddi_setschedulinglogbuffer.md

File metadata and controls

91 lines (66 loc) · 2.54 KB
UID title description ms.date keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.lib req.dll req.irql req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library targetos tech.root ms.custom f1_keywords topic_type api_type api_location api_name
NC:d3dkmddi.DXGKDDI_SETSCHEDULINGLOGBUFFER
DXGKDDI_SETSCHEDULINGLOGBUFFER (d3dkmddi.h)
Instruct the GPU to use the passed buffer as a scheduling log for a particular GPU node.
10/19/2018
DXGKDDI_SETSCHEDULINGLOGBUFFER callback function
d3dkmddi.h
Windows
display
RS5
DXGKDDI_SETSCHEDULINGLOGBUFFER
d3dkmddi/DXGKDDI_SETSCHEDULINGLOGBUFFER
apiref
UserDefined
d3dkmddi.h
DXGKDDI_SETSCHEDULINGLOGBUFFER

DXGKDDI_SETSCHEDULINGLOGBUFFER callback function

-description

Instruct the GPU to use the passed buffer as a scheduling log for a particular GPU node.

-parameters

-param hAdapter

Identifies the logical adapter.

-param pSetSchedulingLogBuffer

Pointer to a DXGKARG_SETSCHEDULINGLOGBUFFER structure that contains information to set scheduling log buffer.

-returns

Return STATUS_SUCCESS if the operation succeeds. Otherwise, return an appropriate NTSTATUS Values error code.

-prototype

//Declaration

DXGKDDI_SETSCHEDULINGLOGBUFFER DxgkddiSetschedulinglogbuffer;

// Definition

NTSTATUS DxgkddiSetschedulinglogbuffer
(
	IN_CONST_HANDLE hAdapter
	IN_CONST_PDXGKARG_SETSCHEDULINGLOGBUFFER pSetSchedulingLogBuffer
)
{...}

DXGKDDI_SETSCHEDULINGLOGBUFFER *PDXGKDDI_SETSCHEDULINGLOGBUFFER

-remarks

Register your implementation of this callback function by setting the appropriate member of DXGKARG_SETSCHEDULINGLOGBUFFER and then calling DxgkddiSetSchedulingLogBuffer.

DxgkDdiSetSchedulingLogBuffer is a synchronous call. Upon the return from DxgkDdiSetSchedulingLogBuffer, the GPU is not allowed to write any more entries to the previous log. All new entries will be written to the log buffer passed by the latest DxgkDdiSetSchedulingLogBuffer call.

The log buffer passed by the OS has FirstFreeEntryIndex and WraparondCount set to zero, and NumberOfEntries set to the number of allocated log entries. The rest of the buffer is uninitialized. In particular, the GPU cannot assume the individual entries in the log entry buffer are zero initialized.

-see-also