mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-20 13:11:34 +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
@ -34,9 +34,9 @@ FlushStamp CommandStreamReceiverWithAUBDump<BaseCSR>::flush(BatchBuffer &batchBu
|
||||
|
||||
template <typename BaseCSR>
|
||||
void CommandStreamReceiverWithAUBDump<BaseCSR>::makeNonResident(GraphicsAllocation &gfxAllocation) {
|
||||
int residencyTaskCount = gfxAllocation.residencyTaskCount[this->deviceIndex];
|
||||
int residencyTaskCount = gfxAllocation.getResidencyTaskCount(this->deviceIndex);
|
||||
BaseCSR::makeNonResident(gfxAllocation);
|
||||
gfxAllocation.residencyTaskCount[this->deviceIndex] = residencyTaskCount;
|
||||
gfxAllocation.updateResidencyTaskCount(residencyTaskCount, this->deviceIndex);
|
||||
if (aubCSR) {
|
||||
aubCSR->makeNonResident(gfxAllocation);
|
||||
}
|
||||
|
Reference in New Issue
Block a user