summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2005-10-20 22:41:26 +0000
committerDave Airlie <airlied@linux.ie>2005-10-20 22:41:26 +0000
commit6cd0282f6440fac661dd92a6e96e4fd82e4489b4 (patch)
treefcc9cc25963fa15ebaee1b382c7579d31d8d6637 /shared-core
parent419fc9930b5145e61c5b77c6e8f76c40af62fbc4 (diff)
fix G550 cards
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/mga_drv.h2
-rw-r--r--shared-core/mga_state.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/shared-core/mga_drv.h b/shared-core/mga_drv.h
index 2c13acc7..94549874 100644
--- a/shared-core/mga_drv.h
+++ b/shared-core/mga_drv.h
@@ -225,7 +225,7 @@ static inline u32 _MGA_READ(u32 * addr)
#define MGA_EMIT_STATE( dev_priv, dirty ) \
do { \
if ( (dirty) & ~MGA_UPLOAD_CLIPRECTS ) { \
- if ( dev_priv->chipset == MGA_CARD_TYPE_G400 ) { \
+ if ( dev_priv->chipset >= MGA_CARD_TYPE_G400 ) { \
mga_g400_emit_state( dev_priv ); \
} else { \
mga_g200_emit_state( dev_priv ); \
diff --git a/shared-core/mga_state.c b/shared-core/mga_state.c
index e2144ca7..1f7c679a 100644
--- a/shared-core/mga_state.c
+++ b/shared-core/mga_state.c
@@ -53,7 +53,7 @@ static void mga_emit_clip_rect(drm_mga_private_t * dev_priv,
/* Force reset of DWGCTL on G400 (eliminates clip disable bit).
*/
- if (dev_priv->chipset == MGA_CARD_TYPE_G400) {
+ if (dev_priv->chipset >= MGA_CARD_TYPE_G400) {
DMA_BLOCK(MGA_DWGCTL, ctx->dwgctl,
MGA_LEN + MGA_EXEC, 0x80000000,
MGA_DWGCTL, ctx->dwgctl,