Wait for taskCount in downloadAllocations

Change-Id: Ie235f83753bfdaa6a67a082f24fa55a61b370545
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2020-05-27 12:11:20 +02:00
committed by sys_ocldev
parent 83a387f578
commit 09e5465248

View File

@@ -521,7 +521,9 @@ void TbxCommandStreamReceiverHw<GfxFamily>::downloadAllocation(GraphicsAllocatio
template <typename GfxFamily>
void TbxCommandStreamReceiverHw<GfxFamily>::downloadAllocations() {
downloadAllocation(*this->getTagAllocation());
while (*this->getTagAddress() < this->latestFlushedTaskCount) {
downloadAllocation(*this->getTagAllocation());
}
for (GraphicsAllocation *graphicsAllocation : this->allocationsForDownload) {
downloadAllocation(*graphicsAllocation);
}