re-enable fifo set_barrier

This commit is contained in:
IoIxD 2026-09-16 12:44:03 -07:00
commit 2aaedfee89
2 changed files with 4 additions and 5 deletions

2
.gitignore vendored
View file

@ -31,3 +31,5 @@ compile_flags.txt
*.finf
*.gdb
flamegraph.svg
perf.*

View file

@ -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);