SWDEV-301667 - Cleanup unused paths

- Refactor code and cleanup logic for callback saving for event records

Change-Id: I5c56aa8e9c968a5bca70fb07ad1796da318e9e89


[ROCm/clr commit: 1338ff37e8]
This commit is contained in:
Saleel Kudchadker committed 2023-11-02 11:43:41 -04:00
1 parent efbe1365b9
commit 1d4bd084b8
7 files changed
+7 -50

No files matched your search

@@ -40,8 +40,7 @@ HostQueue::HostQueue(Context& context, Device& device, cl_command_queue_properti
lastEnqueueCommand_(nullptr),
head_(nullptr),
tail_(nullptr),
isActive_(false),
markerTsCount_(0) {
isActive_(false) {
if (GPU_FORCE_QUEUE_PROFILING) {
properties().set(CL_QUEUE_PROFILING_ENABLE);
}
@@ -132,8 +131,7 @@ void HostQueue::finish(bool cpu_wait) {
(command->NotifyEvent() != nullptr) ? command->NotifyEvent()->HwEvent() : command->HwEvent();
force_marker = (hw_event == nullptr);
}
if (nullptr == command || force_marker ||
vdev()->isHandlerPending() || vdev()->isFenceDirty()) {
if (nullptr == command || force_marker || vdev()->isFenceDirty()) {
if (nullptr != command) {
command->release();
}