Merge pull request #3891 from jriwanek-forks/mga-dev

Correct undevbranching of the Matrox Millenium
This commit is contained in:
Miran Grča
2023-12-16 20:40:24 +01:00
committed by GitHub
4 changed files with 7 additions and 3 deletions

View File

@@ -433,7 +433,7 @@ extern const device_t pgc_device;
/* Matrox MGA */
extern const device_t millennium_device;
# if defined(DEV_BRANCH)
# if defined(DEV_BRANCH) && defined(USE_MGA)
extern const device_t mystique_device;
extern const device_t mystique_220_device;
# endif

View File

@@ -28,6 +28,10 @@ add_library(vid OBJECT agpgart.c video.c vid_table.c vid_cga.c vid_cga_comp.c
vid_ibm_rgb528_ramdac.c vid_sdac_ramdac.c vid_ogc.c vid_mga.c vid_nga.c
vid_tvp3026_ramdac.c vid_att2xc498_ramdac.c vid_xga.c)
if(MGA)
target_compile_definitions(vid PRIVATE USE_MGA)
endif()
if(VGAWONDER)
target_compile_definitions(vid PRIVATE USE_VGAWONDER)
endif()

View File

@@ -205,7 +205,7 @@ video_cards[] = {
{ &s3_diamond_stealth_4000_pci_device },
{ &s3_trio3d2x_pci_device },
{ &millennium_device },
#if defined(DEV_BRANCH)
#if defined(DEV_BRANCH) && defined(USE_MGA)
{ &mystique_device },
{ &mystique_220_device },
#endif

View File

@@ -498,7 +498,6 @@ ifeq ($(DEV_BRANCH), y)
ifeq ($(MGA), y)
OPTS += -DUSE_MGA
DEVBROBJ += vid_mga.o
endif
ifeq ($(OPEN_AT), y)
@@ -765,6 +764,7 @@ VIDOBJ := agpgart.o video.o \
vid_s3.o vid_s3_virge.o \
vid_ibm_rgb528_ramdac.o vid_sdac_ramdac.o \
vid_ogc.o \
vid_mga.o \
vid_nga.o \
vid_tvp3026_ramdac.o \
vid_xga.o