From: Giovanni Mascellani gmascellani@codeweavers.com
Queues can be readded to the blocked queues array, e.g. if they are simultanously blocked and unblocked again by another thread before this one calls d3d12_device_add_blocked_command_queues(). However, it's not a problem to have the same queue twice in the blocked array and flush it more than once (unless the blocked queues array eventually fills up). --- libs/vkd3d/command.c | 2 -- 1 file changed, 2 deletions(-)
diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c index 7d9a9eeb..ec8755d3 100644 --- a/libs/vkd3d/command.c +++ b/libs/vkd3d/command.c @@ -689,8 +689,6 @@ static HRESULT d3d12_device_flush_blocked_queues_once(struct d3d12_device *devic ++i; }
- /* None of these queues could have been re-added during the above loop because - * blocked queues always have a nonzero op count. */ return d3d12_device_add_blocked_command_queues(device, blocked_queues, blocked_queue_count); }