hwcontext_vulkan: print error information on queue submission failure

Makes it clearer what went wrong.
This commit is contained in:
Lynne 2021-11-13 14:21:36 +01:00
parent c96d1ee401
commit 6a23a5597c
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464

View File

@ -1108,6 +1108,8 @@ static int submit_exec_ctx(AVHWFramesContext *hwfc, VulkanExecCtx *cmd,
ret = vk->QueueSubmit(q->queue, 1, s_info, q->fence);
if (ret != VK_SUCCESS) {
av_log(hwfc, AV_LOG_ERROR, "Queue submission failure: %s\n",
vk_ret2str(ret));
unref_exec_ctx_deps(hwfc, cmd);
return AVERROR_EXTERNAL;
}