SWDEV-502365 - Track last used command

- This change tries to save extra synchronization packets we may insert
  as we didnt track the completion signals for every command. We track
the current enqueued command until it exits the enqueue stage. We also
record the exit scope to know if we flushed the caches
- Handle correct release scopes and store completion signal as HW events
- Use a new finishCommand implementation to only wait for the command
  passed as the argument

Change-Id: Ie4350c5dd24f5d48dfa6ccbabd892f0544caadcc
这个提交包含在:
Saleel Kudchadker
2024-12-03 23:45:31 +00:00
父节点 cece301fd4
当前提交 e03e4f3b5d
修改 12 个文件,包含 148 行新增92 行删除
+4 -4
查看文件
@@ -42,8 +42,8 @@ Event::Event(HostQueue& queue, bool profilingEnabled)
hw_event_(nullptr),
notify_event_(nullptr),
device_(&queue.device()),
profilingInfo_(profilingEnabled),
event_scope_(Device::kCacheStateInvalid) {
profilingInfo_(profilingEnabled) {
event_entry_scope_.store(Device::kCacheStateInvalid, std::memory_order_relaxed);
notified_.clear();
}
@@ -53,8 +53,8 @@ Event::Event()
status_(CL_SUBMITTED),
hw_event_(nullptr),
notify_event_(nullptr),
device_(nullptr),
event_scope_(Device::kCacheStateInvalid) {
device_(nullptr) {
event_entry_scope_.store(Device::kCacheStateInvalid, std::memory_order_relaxed);
notified_.clear();
}