mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 22:43:00 +08:00
performance: don't call evict with empty handle list
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
e55aa958b7
commit
974e8ae63f
@@ -493,6 +493,9 @@ std::vector<std::unique_ptr<HwDeviceId>> Wddm::discoverDevices(ExecutionEnvironm
|
||||
}
|
||||
|
||||
bool Wddm::evict(const D3DKMT_HANDLE *handleList, uint32_t numOfHandles, uint64_t &sizeToTrim, bool evictNeeded) {
|
||||
if (numOfHandles == 0) {
|
||||
return true;
|
||||
}
|
||||
NTSTATUS status = STATUS_SUCCESS;
|
||||
D3DKMT_EVICT evict = {};
|
||||
evict.AllocationList = handleList;
|
||||
|
||||
Reference in New Issue
Block a user