From e130b388b95c3cb8709c37af996f3f3711d78357 Mon Sep 17 00:00:00 2001 From: win2kgamer <47463859+win2kgamer@users.noreply.github.com> Date: Thu, 26 Feb 2026 22:38:59 -0600 Subject: [PATCH] Onboard video memory config overhaul part 3: ATi Mach32 and Trident --- src/video/vid_ati_mach8.c | 36 +++++++++++++++++++++++++++++++++++- src/video/vid_tgui9440.c | 2 +- 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/src/video/vid_ati_mach8.c b/src/video/vid_ati_mach8.c index 58a54fb48..d4c98294b 100644 --- a/src/video/vid_ati_mach8.c +++ b/src/video/vid_ati_mach8.c @@ -7744,6 +7744,40 @@ static const device_config_t mach32_pci_config[] = { }, { .name = "", .description = "", .type = CONFIG_END } }; + +static const device_config_t mach32_pci_onboard_config[] = { + { + .name = "ramdac", + .description = "RAMDAC type", + .type = CONFIG_SELECTION, + .default_string = NULL, + .default_int = ATI_68860, + .file_filter = NULL, + .spinner = { 0 }, + .selection = { + { .description = "ATI 68860", .value = ATI_68860 }, + { .description = "ATI 68875", .value = ATI_68875 }, + { .description = "" } + }, + .bios = { { 0 } } + }, + { + .name = "memory", + .description = "Memory size", + .type = CONFIG_SELECTION, + .default_string = NULL, + .default_int = 2048, + .file_filter = NULL, + .spinner = { 0 }, + .selection = { + { .description = "1 MB", .value = 1024 }, + { .description = "2 MB", .value = 2048 }, + { .description = "" } + }, + .bios = { { 0 } } + }, + { .name = "", .description = "", .type = CONFIG_END } +}; // clang-format on const device_t mach8_vga_isa_device = { @@ -7827,5 +7861,5 @@ const device_t mach32_onboard_pci_device = { .available = NULL, .speed_changed = mach_speed_changed, .force_redraw = mach_force_redraw, - .config = mach32_pci_config + .config = mach32_pci_onboard_config }; diff --git a/src/video/vid_tgui9440.c b/src/video/vid_tgui9440.c index f91fc3f96..426474a76 100644 --- a/src/video/vid_tgui9440.c +++ b/src/video/vid_tgui9440.c @@ -4294,7 +4294,7 @@ const device_t tgui9660_onboard_pci_device = { .available = NULL, .speed_changed = tgui_speed_changed, .force_redraw = tgui_force_redraw, - .config = tgui96xx_config + .config = tgui9440_config }; const device_t tgui9680_pci_device = {