re-enable fifo set_barrier
This commit is contained in:
parent
4b393e78ef
commit
2aaedfee89
2 changed files with 4 additions and 5 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -31,3 +31,5 @@ compile_flags.txt
|
|||
*.finf
|
||||
*.gdb
|
||||
|
||||
flamegraph.svg
|
||||
perf.*
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@ void MwLLWaylandFramebufferSetup(struct _MwLLWayland* wayland) {
|
|||
memset(wayland->framebuffer.buf_back, 0, wayland->framebuffer.buf_size);
|
||||
if(wayland->configured)
|
||||
wl_surface_attach(wayland->framebuffer.surface, wayland->framebuffer.shm_buffer, 0, 0);
|
||||
// if(wayland->framebuffer.fifo)
|
||||
// wp_fifo_v1_set_barrier(wayland->framebuffer.fifo);
|
||||
if(wayland->framebuffer.fifo)
|
||||
wp_fifo_v1_set_barrier(wayland->framebuffer.fifo);
|
||||
|
||||
wl_surface_commit(wayland->framebuffer.surface);
|
||||
|
||||
|
|
@ -123,9 +123,6 @@ void MwLLWaylandBufferUpdate(MwLL self, struct _MwLLWaylandShmBuffer* buffer) {
|
|||
if(self->wayland.configured) {
|
||||
memcpy(buffer->buf, buffer->buf_back, buffer->buf_size);
|
||||
if(buffer->surface) {
|
||||
if(self->wayland.framebuffer.fifo) {
|
||||
// wp_fifo_v1_wait_barrier(self->wayland.framebuffer.fifo);
|
||||
}
|
||||
// Yes this is needed every time, it's how we fix weston.
|
||||
if(self->wayland.configured) {
|
||||
wl_surface_attach(buffer->surface, buffer->shm_buffer, 0, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue