aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorDave Airlie <airlied@starflyer.(none)>2005-10-22 01:24:35 -0400
committerDave Airlie <airlied@linux.ie>2005-10-22 01:24:35 -0400
commit23bfc1a339e98510f2ce25a2764a0cfe195faa9e (patch)
tree51652ad15f85d9d1367ae6f9b8641dfe46b4c501 /drivers/char
parent312f5726055534be1dc9dd369be13aabd2943fcb (diff)
parent63172cb3d5ef762dcb60a292bc7f016b85cf6e1f (diff)
merge linus head to drm-mm branch
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/drm/mga_drv.h2
-rw-r--r--drivers/char/drm/mga_state.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/drm/mga_drv.h b/drivers/char/drm/mga_drv.h
index 474853deecfa..461728e6a58a 100644
--- a/drivers/char/drm/mga_drv.h
+++ b/drivers/char/drm/mga_drv.h
@@ -228,7 +228,7 @@ static inline u32 _MGA_READ(u32 * addr)
228#define MGA_EMIT_STATE( dev_priv, dirty ) \ 228#define MGA_EMIT_STATE( dev_priv, dirty ) \
229do { \ 229do { \
230 if ( (dirty) & ~MGA_UPLOAD_CLIPRECTS ) { \ 230 if ( (dirty) & ~MGA_UPLOAD_CLIPRECTS ) { \
231 if ( dev_priv->chipset == MGA_CARD_TYPE_G400 ) { \ 231 if ( dev_priv->chipset >= MGA_CARD_TYPE_G400 ) { \
232 mga_g400_emit_state( dev_priv ); \ 232 mga_g400_emit_state( dev_priv ); \
233 } else { \ 233 } else { \
234 mga_g200_emit_state( dev_priv ); \ 234 mga_g200_emit_state( dev_priv ); \
diff --git a/drivers/char/drm/mga_state.c b/drivers/char/drm/mga_state.c
index ee77685069d0..47f54b5ae956 100644
--- a/drivers/char/drm/mga_state.c
+++ b/drivers/char/drm/mga_state.c
@@ -53,7 +53,7 @@ static void mga_emit_clip_rect(drm_mga_private_t * dev_priv,
53 53
54 /* Force reset of DWGCTL on G400 (eliminates clip disable bit). 54 /* Force reset of DWGCTL on G400 (eliminates clip disable bit).
55 */ 55 */
56 if (dev_priv->chipset == MGA_CARD_TYPE_G400) { 56 if (dev_priv->chipset >= MGA_CARD_TYPE_G400) {
57 DMA_BLOCK(MGA_DWGCTL, ctx->dwgctl, 57 DMA_BLOCK(MGA_DWGCTL, ctx->dwgctl,
58 MGA_LEN + MGA_EXEC, 0x80000000, 58 MGA_LEN + MGA_EXEC, 0x80000000,
59 MGA_DWGCTL, ctx->dwgctl, 59 MGA_DWGCTL, ctx->dwgctl,