mirror of
https://github.com/86Box/86Box.git
synced 2026-02-22 01:25:33 -07:00
S3 ViRGE: Get rid of atomics on x86.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user