Enable eviction only when needed flag in wddm

Related-To: NEO-7179

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2022-07-14 22:29:14 +00:00
committed by Compute-Runtime-Automation
parent 02e4ddbdfa
commit aced55243c
2 changed files with 3 additions and 1 deletions

View File

@@ -366,6 +366,7 @@ bool Wddm::evict(const D3DKMT_HANDLE *handleList, uint32_t numOfHandles, uint64_
evict.hDevice = device;
evict.NumAllocations = numOfHandles;
evict.NumBytesToTrim = 0;
evict.Flags.EvictOnlyIfNecessary = 1;
status = getGdi()->evict(&evict);