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