lib: correctly initialize FIFO tail

Otherwise we are doing a full wrap-around
of garbage data before we catch up
with the head.
This commit is contained in:
Steve Markgraf 2024-12-26 00:20:08 +01:00
parent 560ce9a6a1
commit d9e7813ccf

View file

@ -72,7 +72,7 @@ uint16_t idle_line_buf[MODE_H_ACTIVE_PIXELS];
uint32_t info_p[64];
uint32_t info_len;
int fifo_tail = 0;
int fifo_tail = RBUF_SLICES-1;
int fifo_head = 0;
static uint32_t vblank_line_vsync_off[] = {