SWDEV-301667 - Cleanup unused paths

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

Change-Id: I5c56aa8e9c968a5bca70fb07ad1796da318e9e89
Этот коммит содержится в:
Saleel Kudchadker
2023-11-01 05:22:47 +00:00
родитель 6d6465cb96
Коммит 1338ff37e8
7 изменённых файлов: 7 добавлений и 50 удалений
+2 -4
Просмотреть файл
@@ -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();
}