From d3897b57e846aa29f7dc39fbe9d69346d0dddd33 Mon Sep 17 00:00:00 2001 From: GreaseMonkey Date: Sun, 26 Nov 2023 11:54:01 +1300 Subject: [PATCH] Handle SVGA 8bit RAMDAC for Voodoo Banshee cards --- src/video/vid_voodoo_banshee.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/video/vid_voodoo_banshee.c b/src/video/vid_voodoo_banshee.c index 37c795b59..d0fad5b95 100644 --- a/src/video/vid_voodoo_banshee.c +++ b/src/video/vid_voodoo_banshee.c @@ -211,6 +211,7 @@ enum { Agp_agpGraphicsStride = 0x10, }; +#define VGAINIT0_RAMDAC_8BIT (1 << 2) #define VGAINIT0_EXTENDED_SHIFT_OUT (1 << 12) #define VIDPROCCFG_VIDPROC_ENABLE (1 << 0) @@ -765,6 +766,7 @@ banshee_ext_outl(uint16_t addr, uint32_t val, void *priv) break; case Init_vgaInit0: banshee->vgaInit0 = val; + svga_set_ramdac_type(svga, (val & VGAINIT0_RAMDAC_8BIT ? RAMDAC_8BIT : RAMDAC_6BIT)); break; case Init_vgaInit1: banshee->vgaInit1 = val;