mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Capability to set low scheduling priority for Wddm context
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
5507633d15
commit
c4fcd7ed9b
@ -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;
|
||||
|
Reference in New Issue
Block a user