Create structure UsageInfo for task count and residency task count

Change-Id: I0899c88d9e567a09ba46461ae69cf6c80f713e67
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2018-11-06 11:38:49 +01:00
committed by sys_ocldev
parent e599d1503b
commit 0e0a280803
23 changed files with 115 additions and 154 deletions

View File

@@ -129,7 +129,7 @@ void DrmCommandStreamReceiver<GfxFamily>::makeNonResident(GraphicsAllocation &gf
// Vector is moved to command buffer inside flush.
// If flush wasn't called we need to make all objects non-resident.
// If makeNonResident is called before flush, vector will be cleared.
if (gfxAllocation.residencyTaskCount[this->deviceIndex] != ObjectNotResident) {
if (gfxAllocation.isResident(this->deviceIndex)) {
if (this->residency.size() != 0) {
this->residency.clear();
}
@@ -139,7 +139,7 @@ void DrmCommandStreamReceiver<GfxFamily>::makeNonResident(GraphicsAllocation &gf
}
}
}
gfxAllocation.residencyTaskCount[this->deviceIndex] = ObjectNotResident;
gfxAllocation.resetResidencyTaskCount(this->deviceIndex);
}
template <typename GfxFamily>