summaryrefslogtreecommitdiff
path: root/shared-core/nouveau_state.c
diff options
context:
space:
mode:
authorMatthieu Castet <mat@mat-pc.(none)>2007-01-13 23:19:41 +0100
committerMatthieu Castet <mat@mat-pc.(none)>2007-01-13 23:19:41 +0100
commitf04347f371c6c9c3a47550c6b7d26b7bd5629c85 (patch)
tree29f7425600add81fbffceecb1d6787b7f224cd65 /shared-core/nouveau_state.c
parentcd5f543b2f3d6dd4c45f676c6fb9848b4d8a1c33 (diff)
nouveau: nv20 graph ctx switch.
Untested...
Diffstat (limited to 'shared-core/nouveau_state.c')
-rw-r--r--shared-core/nouveau_state.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/shared-core/nouveau_state.c b/shared-core/nouveau_state.c
index 6448512c..f324c5ff 100644
--- a/shared-core/nouveau_state.c
+++ b/shared-core/nouveau_state.c
@@ -96,7 +96,11 @@ int nouveau_firstopen(struct drm_device *dev)
/* FIXME: doesn't belong here, and have no idea what it's for.. */
if (dev_priv->card_type >= NV_40)
nv40_graph_init(dev);
- else if (dev_priv->card_type == NV_10)
+ else if (dev_priv->card_type >= NV_30) {
+ }
+ else if (dev_priv->card_type >= NV_20)
+ nv20_graph_init(dev);
+ else if (dev_priv->card_type >= NV_10)
nv10_graph_init(dev);
return 0;