SWDEV-558849 - keep the lastEnqueueCommand_ when PAL backend is enabled (#2320)

Этот коммит содержится в:
Ioannis Assiouras
2025-12-23 21:24:09 +00:00
коммит произвёл GitHub
родитель c2c4d4c1f5
Коммит 49b8900158
2 изменённых файлов: 1 добавлений и 3 удалений
+1 -1
Просмотреть файл
@@ -220,7 +220,7 @@ void HostQueue::finish(bool cpu_wait) {
// Under Windows runtime can't destroy objects in the callback thread.
// Also runtime should force interrupt before any destroy. Hence, if it was just gpu wait,
// then keep the lastEnqueueCommand_ for the interrupt handling.
if (IS_LINUX || cpu_wait) {
if (IS_LINUX || cpu_wait || GPU_ENABLE_PAL != 0) {
lastEnqueueCommand_->release();
lastEnqueueCommand_ = nullptr;
}