]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
CV64/3D uses original Virge, not Virge/DX chip.
authorToni Wilen <twilen@winuae.net>
Sun, 11 Oct 2020 17:18:52 +0000 (20:18 +0300)
committerToni Wilen <twilen@winuae.net>
Sun, 11 Oct 2020 17:18:52 +0000 (20:18 +0300)
gfxboard.cpp
pcem/vid_s3_virge.cpp

index 7a4728fc3ec9e839f4a9af4e08b7158ec01d94a8..0ef76557a7c67f8a7810556b39f9b8abfb3127e1 100644 (file)
@@ -180,14 +180,14 @@ static const struct gfxboard boards[] =
                _T("CyberVision 64/3D Zorro II"), _T("Phase 5"), _T("CV643D_Z2"),
                8512, 67, 0,
                0x00000000, 0x00400000, 0x00400000, 0x00400000, 0, 2, 2, false,
-               0, 0, NULL, &s3_virge_375_device
+               0, 0, NULL, &s3_virge_device
        },
        {
                GFXBOARD_ID_CV643D_Z3,
                _T("CyberVision 64/3D Zorro III"), _T("Phase 5"), _T("CV643D_Z3"),
                8512, 67, 0,
                0x00000000, 0x00400000, 0x00400000, 0x10000000, 0, 3, 2, false,
-               0, 0, NULL, &s3_virge_375_device
+               0, 0, NULL, &s3_virge_device
        },
        {
                GFXBOARD_ID_PICASSO2,
@@ -2416,7 +2416,7 @@ static void REGPARAM2 gfxboard_wput_mem_autoconfig (uaecptr addr, uae_u32 b)
                gb->gfxboard_bank_memory.wput = gfxboard_wput_mem;
                if (gb->board->pcemdev) {
                        if (boardnum == GFXBOARD_ID_CV643D_Z3) {
-                               gb->gfxboardmem_start += 0x4800000;
+                               gb->gfxboardmem_start += 0x4000000;
                        }
                }
                init_board(gb);
index f7031c5914943eae5966dd3a3be92be98084719c..b029b991562c9d9d8296227b25e6be4c65fddc35 100644 (file)
@@ -3912,6 +3912,7 @@ static void *s3_virge_init()
                    s3_virge_in, s3_virge_out,
                    s3_virge_hwcursor_draw,
                    s3_virge_overlay_draw);
+        virge->svga.vblank_start = s3_virge_vblank_start;
 
         rom_init(&virge->bios_rom, "s3virge.bin", 0xc0000, 0x8000, 0x7fff, 0, MEM_MAPPING_EXTERNAL);
         if (PCI)
@@ -4216,7 +4217,6 @@ static device_config_t s3_virge_config[] =
 };
 #endif
 
-#ifndef UAE
 device_t s3_virge_device =
 {
         "Diamond Stealth 3D 2000 (S3 ViRGE)",
@@ -4227,10 +4227,12 @@ device_t s3_virge_device =
         s3_virge_speed_changed,
         s3_virge_force_redraw,
         s3_virge_add_status_info,
+#ifndef UAE
         s3_virge_config
-};
 #endif
+};
 
+#ifndef UAE
 device_t s3_virge_375_device =
 {
         "S3 ViRGE/DX",
@@ -4241,7 +4243,6 @@ device_t s3_virge_375_device =
         s3_virge_speed_changed,
         s3_virge_force_redraw,
         s3_virge_add_status_info,
-#ifndef UAE
         s3_virge_config
-#endif
 };
+#endif