summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorMaarten Maathuis <madman2003@gmail.com>2008-06-22 19:31:55 +0200
committerMaarten Maathuis <madman2003@gmail.com>2008-06-22 19:31:55 +0200
commit30f153a7c2a9bc69e615b7fff3fb060af0e3ed83 (patch)
treee8b09d29b7801f33766d1bc1768f765bcea5cb4b /shared-core
parentb0b0f374432ecf84b5115130caa4697d6d1ca789 (diff)
nouveau: disable KMS for pre-NV50 even when specifically enabled
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/nouveau_state.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/shared-core/nouveau_state.c b/shared-core/nouveau_state.c
index 82591c64..9f8fc43d 100644
--- a/shared-core/nouveau_state.c
+++ b/shared-core/nouveau_state.c
@@ -557,6 +557,10 @@ int nouveau_load(struct drm_device *dev, unsigned long flags)
return -EINVAL;
}
+ /* For those who think they want to be funny. */
+ if (dev_priv->card_type < NV_50)
+ dev->driver->driver_features &= ~DRIVER_MODESET;
+
/* Special flags */
if (dev->pci_device == 0x01a0) {
dev_priv->flags |= NV_NFORCE;