Allow to push all dependency types to CsrDependencies helper

Change-Id: I0ef5dd0f77ade7f02a03c787618d55a4fcfba17c
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
Related-To: NEO-3020
This commit is contained in:
Dunajski, Bartosz
2019-06-12 11:07:37 +02:00
committed by sys_ocldev
parent 875c9b7dcc
commit cf78aab248
3 changed files with 36 additions and 2 deletions

View File

@ -29,8 +29,11 @@ void CsrDependencies::fillFromEventsRequestAndMakeResident(const EventsRequest &
timestampPacketContainer->makeResident(currentCsr);
auto sameCsr = (&event->getCommandQueue()->getCommandStreamReceiver() == &currentCsr);
bool pushDependency = (DependenciesType::OnCsr == depsType && sameCsr) ||
(DependenciesType::OutOfCsr == depsType && !sameCsr) ||
(DependenciesType::All == depsType);
if (depsType == (sameCsr ? DependenciesType::OnCsr : DependenciesType::OutOfCsr)) {
if (pushDependency) {
this->push_back(timestampPacketContainer);
}
}