Use maxOsContextCount to initialize trimCandidateList for WDDM allocations.

Change-Id: Icc65d19ed45bb1aa1a3dba4de536cf85ab9b906b
This commit is contained in:
Mrozek, Michal
2018-11-19 11:24:16 +01:00
parent ac15e7f3ac
commit c0f6af1df3
2 changed files with 8 additions and 1 deletions

View File

@@ -35,7 +35,7 @@ class WddmAllocation : public GraphicsAllocation {
: GraphicsAllocation(cpuPtrIn, castToUint64(cpuPtrIn), 0llu, sizeIn),
handle(0),
gpuPtr(0),
trimCandidateListPositions(osContextsCount, trimListUnusedPosition) {
trimCandidateListPositions(maxOsContextCount, trimListUnusedPosition) {
reservedAddressSpace = reservedAddr;
this->memoryPool = pool;
}