mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
hwcontext_vulkan: expose the amount of queues for each queue family
This, along with the next patch, are the last missing pieces to being interoperable with libplacebo.
This commit is contained in:
parent
2e08b39444
commit
01c7539f30
2 changed files with 15 additions and 2 deletions
|
|
@ -679,16 +679,19 @@ static int search_queue_families(AVHWDeviceContext *ctx, VkDeviceCreateInfo *cd)
|
|||
hwctx->queue_family_index = graph_index;
|
||||
hwctx->queue_family_comp_index = graph_index;
|
||||
hwctx->queue_family_tx_index = graph_index;
|
||||
hwctx->nb_graphics_queues = qs[graph_index].queueCount;
|
||||
|
||||
if (comp_index != -1) {
|
||||
ADD_QUEUE(comp_index, 0, 1, tx_index < 0)
|
||||
hwctx->queue_family_tx_index = comp_index;
|
||||
hwctx->queue_family_comp_index = comp_index;
|
||||
hwctx->nb_comp_queues = qs[comp_index].queueCount;
|
||||
}
|
||||
|
||||
if (tx_index != -1) {
|
||||
ADD_QUEUE(tx_index, 0, 0, 1)
|
||||
hwctx->queue_family_tx_index = tx_index;
|
||||
hwctx->nb_tx_queues = qs[tx_index].queueCount;
|
||||
}
|
||||
|
||||
#undef ADD_QUEUE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue