From 15281b22b639f3fbce4e92f5229ec268e4de2f41 Mon Sep 17 00:00:00 2001 From: OBattler Date: Tue, 22 Aug 2023 21:41:08 +0200 Subject: [PATCH] Some S3 ViRGE fixes. --- src/video/vid_s3_virge.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/video/vid_s3_virge.c b/src/video/vid_s3_virge.c index 5dc29e5da..9f986108b 100644 --- a/src/video/vid_s3_virge.c +++ b/src/video/vid_s3_virge.c @@ -1495,10 +1495,10 @@ s3_virge_mmio_read(uint32_t addr, void *priv) ret = virge->advfunc_cntl & 0x3f; ret |= virge->fifo_slots_num << 6; ret &= 0xff; - break; + return ret; case 0x850d: ret = virge->fifo_slots_num >> 2; - break; + return ret; case 0x83b0: case 0x83b1: @@ -1585,7 +1585,7 @@ s3_virge_mmio_read_w(uint32_t addr, void *priv) case 0x850c: ret = virge->advfunc_cntl & 0x3f; ret |= virge->fifo_slots_num << 6; - break; + return ret; case 0x859c: return virge->cmd_dma;