From 01a1b5f30d3022ccf4c0639178ec14b510495fa3 Mon Sep 17 00:00:00 2001 From: OBattler Date: Mon, 15 Dec 2025 22:05:18 +0100 Subject: [PATCH] S3 ViRGE: Get rid of atomics on x86. --- src/video/vid_s3_virge.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/video/vid_s3_virge.c b/src/video/vid_s3_virge.c index 7862c25ac..5fa84e555 100644 --- a/src/video/vid_s3_virge.c +++ b/src/video/vid_s3_virge.c @@ -290,9 +290,9 @@ typedef struct virge_t { s3d_t s3d_tri; s3d_t s3d_buffer[RB_SIZE]; - atomic_int s3d_read_idx; - atomic_int s3d_write_idx; - atomic_int s3d_busy; + ATOMIC_INT s3d_read_idx; + ATOMIC_INT s3d_write_idx; + ATOMIC_INT s3d_busy; struct { uint32_t pri_ctrl; @@ -332,15 +332,15 @@ typedef struct virge_t { } streams; fifo_entry_t fifo[FIFO_SIZE]; - atomic_int fifo_read_idx, fifo_write_idx; - atomic_int fifo_thread_run, render_thread_run; + ATOMIC_INT fifo_read_idx, fifo_write_idx; + ATOMIC_INT fifo_thread_run, render_thread_run; thread_t *fifo_thread; event_t *wake_fifo_thread; event_t *fifo_not_full_event; - atomic_int virge_busy; - atomic_uint irq_pending; + ATOMIC_INT virge_busy; + ATOMIC_UINT irq_pending; uint8_t subsys_stat; uint8_t subsys_cntl;