From 19d950e61b2b33052e52c33add8e70c29ac9d766 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Fri, 27 Oct 2006 11:48:35 -0700 Subject: Convert tests of pMga->Chipset to tests of single bit flags. Several places in the driver contain if-statements that test Chipset against several different values to determine what functionality to use. Some of these tests, HALCHIPSETS in particular, test as many as 6 different values. This bloats the code size unnecessarilly. Instead we cache the results of some of those tests in single bit flags stored in pMga. These changes are similar to some changes in the pci-rework branch. --- src/mga.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mga.h') diff --git a/src/mga.h b/src/mga.h index 5297076..6b53d87 100644 --- a/src/mga.h +++ b/src/mga.h @@ -391,6 +391,11 @@ typedef struct { xf86AccessRec Access; int Chipset; int ChipRev; + + int is_Gx50:1; + int is_G200SE:1; + int is_HAL_chipset:1; + Bool Primary; Bool Interleave; int HwBpp; -- cgit v1.2.3 From 1dd6e6995d7a37338dce6ee5b1aa4ee9dd848e1d Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Fri, 27 Oct 2006 11:53:40 -0700 Subject: Bump version to 1.4.4. --- src/mga.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mga.h') diff --git a/src/mga.h b/src/mga.h index 6b53d87..04624a9 100644 --- a/src/mga.h +++ b/src/mga.h @@ -156,7 +156,7 @@ void MGAdbg_outreg32(ScrnInfoPtr, int,int, char*); #define MGA_DRIVER_NAME "mga" #define MGA_MAJOR_VERSION 1 #define MGA_MINOR_VERSION 4 -#define MGA_PATCHLEVEL 1 +#define MGA_PATCHLEVEL 4 typedef struct { unsigned char ExtVga[6]; -- cgit v1.2.3