mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-03 14:32:16 +02:00
vulkan: return current queue index from ff_vk_qf_rotate()
This commit is contained in:
parent
b15104ed97
commit
721b71da4a
@ -240,9 +240,10 @@ int ff_vk_qf_init(FFVulkanContext *s, FFVkQueueFamilyCtx *qf,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ff_vk_qf_rotate(FFVkQueueFamilyCtx *qf)
|
int ff_vk_qf_rotate(FFVkQueueFamilyCtx *qf)
|
||||||
{
|
{
|
||||||
qf->cur_queue = (qf->cur_queue + 1) % qf->nb_queues;
|
qf->cur_queue = (qf->cur_queue + 1) % qf->nb_queues;
|
||||||
|
return qf->cur_queue;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ff_vk_alloc_mem(FFVulkanContext *s, VkMemoryRequirements *req,
|
int ff_vk_alloc_mem(FFVulkanContext *s, VkMemoryRequirements *req,
|
||||||
|
@ -306,7 +306,7 @@ int ff_vk_qf_init(FFVulkanContext *s, FFVkQueueFamilyCtx *qf,
|
|||||||
/**
|
/**
|
||||||
* Rotate through the queues in a queue family.
|
* Rotate through the queues in a queue family.
|
||||||
*/
|
*/
|
||||||
void ff_vk_qf_rotate(FFVkQueueFamilyCtx *qf);
|
int ff_vk_qf_rotate(FFVkQueueFamilyCtx *qf);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a Vulkan sampler, will be auto-freed in ff_vk_filter_uninit()
|
* Create a Vulkan sampler, will be auto-freed in ff_vk_filter_uninit()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user