From 34df6bd82fe4a32b1a4b1d878297976a999aabe4 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sat, 10 Nov 2018 20:11:48 +0100 Subject: vo_gpu: vulkan: only rotate the queues on swap Makes performance slightly better when using multiple queues by avoiding unnecessary semaphores due to bad queue selection. Also remove an aeons-old workaround for an nvidia bug that only ever existed in the earliest beta vulkan drivers anyway. --- video/out/vulkan/utils.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'video/out/vulkan/utils.c') diff --git a/video/out/vulkan/utils.c b/video/out/vulkan/utils.c index e4bf58f514..62ac3e87f9 100644 --- a/video/out/vulkan/utils.c +++ b/video/out/vulkan/utils.c @@ -796,12 +796,6 @@ error: vk->num_cmds_queued = 0; - // Rotate the queues to ensure good parallelism across frames - for (int i = 0; i < vk->num_pools; i++) { - struct vk_cmdpool *pool = vk->pools[i]; - pool->idx_queues = (pool->idx_queues + 1) % pool->num_queues; - } - return ret; } -- cgit v1.2.3