mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 17:41:26 +08:00
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:
committed by
sys_ocldev
parent
e599d1503b
commit
0e0a280803
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user