Skip to content
Snippets Groups Projects
Commit 01c9bf99 authored by Axel Davy's avatar Axel Davy Committed by Emil Velikov
Browse files

nine: Implement threadpool


DRI_PRIME setups have different issues due the lack of dma-buf fences
support in the drivers. For DRI3 DRI_PRIME, a race can appear, making
tearings visible, or worse showing older content than expected. Until
dma-buf fences are well supported (and by all drivers), an alternative
is to send the buffers to the server only when rendering has finished.
Since waiting the rendering has finished in the main thread has a
performance impact, this patch uses an additional thread to offload the
wait and the sending of the buffers to the server.

Acked-by: default avatarJose Fonseca <jfonseca@vmware.com>
Reviewed-by: David Heidelberg's avatarDavid Heidelberg <david@ixit.cz>
Signed-off-by: default avatarAxel Davy <axel.davy@ens.fr>
(cherry picked from commit 7f565845)
parent df63e76c
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment