Skip to content

Commit 9df911a

Browse files
committed
vulkan queue break on failure to submit
1 parent 47791fa commit 9df911a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/nbl/video/CVulkanQueue.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,17 @@ bool CVulkanQueue::submit(uint32_t _count, const SSubmitInfo* _submits, IGPUFenc
103103
}
104104

105105
VkFence fence = _fence ? IBackendObject::device_compatibility_cast<CVulkanFence*>(_fence, m_originDevice)->getInternalObject() : VK_NULL_HANDLE;
106-
if (vk->vk.vkQueueSubmit(m_vkQueue, _count, submits, fence) == VK_SUCCESS)
106+
auto vkRes = vk->vk.vkQueueSubmit(m_vkQueue, _count, submits, fence);
107+
if (vkRes == VK_SUCCESS)
107108
{
108109
if(!IGPUQueue::markCommandBuffersAsDone(_count, _submits))
109110
return false;
110111
return true;
111112
}
113+
else
114+
{
115+
_NBL_DEBUG_BREAK_IF(true);
116+
}
112117

113118
return false;
114119
}

0 commit comments

Comments
 (0)