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:
Saleel Kudchadker committed 2024-01-15 15:43:14 -05:00
1 parent 3c5da3e666
commit 34fd1b7fe5
3 files changed
-13

No files matched your search

-9
View File
@@ -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