diff options
author | Lynne <dev@lynne.ee> | 2021-11-13 14:21:36 +0100 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2021-11-13 14:21:36 +0100 |
commit | 6a23a5597cd77506210cb14265e94e012a942abd (patch) | |
tree | a99a6bf6d1aa84a44e9618037dfdaaa87ca10e28 | |
parent | c96d1ee401189188de881f6cd005f9ab45b65834 (diff) | |
download | ffmpeg-6a23a5597cd77506210cb14265e94e012a942abd.tar.gz |
hwcontext_vulkan: print error information on queue submission failure
Makes it clearer what went wrong.
-rw-r--r-- | libavutil/hwcontext_vulkan.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c index fd9d4d481f..31c7dc2aa5 100644 --- a/libavutil/hwcontext_vulkan.c +++ b/libavutil/hwcontext_vulkan.c @@ -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; } |