You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
vulkan: lock queues before submitting operations
This commit is contained in:
@@ -625,7 +625,14 @@ int ff_vk_submit_exec_queue(FFVulkanContext *s, FFVkExecContext *e)
|
|||||||
return AVERROR_EXTERNAL;
|
return AVERROR_EXTERNAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
s->hwctx->lock_queue((AVHWDeviceContext *)s->device_ref->data,
|
||||||
|
e->qf->queue_family, e->qf->cur_queue % e->qf->actual_queues);
|
||||||
|
|
||||||
ret = vk->QueueSubmit(q->queue, 1, &s_info, q->fence);
|
ret = vk->QueueSubmit(q->queue, 1, &s_info, q->fence);
|
||||||
|
|
||||||
|
s->hwctx->unlock_queue((AVHWDeviceContext *)s->device_ref->data,
|
||||||
|
e->qf->queue_family, e->qf->cur_queue % e->qf->actual_queues);
|
||||||
|
|
||||||
if (ret != VK_SUCCESS) {
|
if (ret != VK_SUCCESS) {
|
||||||
av_log(s, AV_LOG_ERROR, "Unable to submit command buffer: %s\n",
|
av_log(s, AV_LOG_ERROR, "Unable to submit command buffer: %s\n",
|
||||||
ff_vk_ret2str(ret));
|
ff_vk_ret2str(ret));
|
||||||
|
Reference in New Issue
Block a user