From 7e44372b7503211a50ca381c1d5d1f54e18d855c Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Mon, 7 Nov 2022 13:11:36 +0600 Subject: [PATCH] vid_s3_virge: Give FIFO R/W indices the stdatomic.h treatment --- src/video/vid_s3_virge.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/video/vid_s3_virge.c b/src/video/vid_s3_virge.c index d8a440f30..74f301e62 100644 --- a/src/video/vid_s3_virge.c +++ b/src/video/vid_s3_virge.c @@ -22,6 +22,7 @@ #include #include #include +#include #define HAVE_STDARG_H #include <86box/86box.h> #include <86box/io.h> @@ -237,10 +238,9 @@ typedef struct virge_t { s3d_t s3d_tri; - s3d_t s3d_buffer[RB_SIZE]; - int s3d_read_idx, s3d_write_idx; - int s3d_busy; - int render_idx; + s3d_t s3d_buffer[RB_SIZE]; + atomic_int s3d_read_idx, s3d_write_idx; + atomic_int s3d_busy; struct {