mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 04:48:08 +08:00
Add new debug flag allowing to not register trim callback.
Change-Id: I615be3edc9d843fb7b37cf32f2abd5e2839d6ada
This commit is contained in:
committed by
sys_ocldev
parent
a2ed6861d8
commit
f5a2b38fa4
@@ -826,6 +826,9 @@ uint64_t Wddm::getHeap32Size() {
|
||||
}
|
||||
|
||||
void Wddm::registerTrimCallback(PFND3DKMT_TRIMNOTIFICATIONCALLBACK callback, WddmMemoryManager *memoryManager) {
|
||||
if (DebugManager.flags.DoNotRegisterTrimCallback.get()) {
|
||||
return;
|
||||
}
|
||||
D3DKMT_REGISTERTRIMNOTIFICATION registerTrimNotification;
|
||||
registerTrimNotification.Callback = callback;
|
||||
registerTrimNotification.AdapterLuid = this->adapterLuid;
|
||||
|
||||
Reference in New Issue
Block a user