Skip to content
Snippets Groups Projects
Commit 340f9e82 authored by Olivier Fourdan's avatar Olivier Fourdan :tools:
Browse files

compositor: Finer fence control


Basically, we want the fence to prevent GL from accessing the pixmap
buffer until its update is complete.

However, depending on the code path, we may update the buffer more than
once, so to prevent any flickering, we need a finer grain control over
the fence operations.

Split the fence support into different actions as we need them, i.e.
create, destroy, reset, trigger and wait.

Make sure we reset the fence before each time we are to update the
pixmap buffer and wait for the fence just before doing the GL swap.

Also create a different fence for each buffer, so if ever decide to use
multiple buffers with GL, the existing code will be able to support that
and not use the same fence for multiple pixmaps.

Signed-off-by: default avatarOlivier Fourdan <fourdan@xfce.org>
parent c8f624c7
No related branches found
No related tags found
No related merge requests found
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