mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
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:

committed by
sys_ocldev

parent
875c9b7dcc
commit
cf78aab248
@ -29,8 +29,11 @@ void CsrDependencies::fillFromEventsRequestAndMakeResident(const EventsRequest &
|
||||
|
||||
timestampPacketContainer->makeResident(currentCsr);
|
||||
auto sameCsr = (&event->getCommandQueue()->getCommandStreamReceiver() == ¤tCsr);
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user