Capability to set low scheduling priority for Wddm context

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2022-05-10 13:53:48 +00:00
committed by Compute-Runtime-Automation
parent 5507633d15
commit c4fcd7ed9b
12 changed files with 133 additions and 8 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2021 Intel Corporation
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@ -77,6 +77,7 @@ bool Gdi::getAllProcAddresses() {
registerTrimNotification = gdiDll->getProcAddress("D3DKMTRegisterTrimNotification");
unregisterTrimNotification = gdiDll->getProcAddress("D3DKMTUnregisterTrimNotification");
setAllocationPriority = gdiDll->getProcAddress("D3DKMTSetAllocationPriority");
setSchedulingPriority = gdiDll->getProcAddress("D3DKMTSetContextSchedulingPriority");
// For debug purposes
getDeviceState = gdiDll->getProcAddress("D3DKMTGetDeviceState");
@ -93,7 +94,7 @@ bool Gdi::getAllProcAddresses() {
&& signalSynchronizationObjectFromGpu && createPagingQueue && destroyPagingQueue
&& lock2 && unlock2 && mapGpuVirtualAddress && reserveGpuVirtualAddress
&& freeGpuVirtualAddress && updateGpuVirtualAddress &&submitCommand
&& makeResident && evict){
&& makeResident && evict && setSchedulingPriority){
if (NEO::OSInterface::requiresSupportForWddmTrimNotification) {
if(registerTrimNotification && unregisterTrimNotification){
return true;