SWDEV-301667 - Remove resetFenceDirty
Dont track the status of fence_dirty_ flag on the host, instead clear it
when we submit a barrier on the respective stream.
Change-Id: I4d98dbf20c81379c9c5da9f5b67629a8f9f6dfcd
[ROCm/clr commit: 0b0df605d4]
This commit is contained in:
@@ -254,15 +254,6 @@ void iHipWaitActiveStreams(hip::Stream* blocking_stream, bool wait_null_stream)
|
||||
command->enqueue();
|
||||
command->release();
|
||||
}
|
||||
|
||||
//Reset the dirty flag for all streams now that the marker is submitted
|
||||
amd::ScopedLock lock(streamSetLock);
|
||||
for (const auto& stream : streamSet) {
|
||||
amd::HostQueue* active_queue = stream->asHostQueue();
|
||||
if (active_queue->vdev()->isFenceDirty()) {
|
||||
active_queue->vdev()->resetFenceDirty();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Release all active commands. It's safe after the marker was enqueued
|
||||
|
||||
Reference in New Issue
Block a user