Permalink
Browse files

add graph support for d9

  • Loading branch information...
1 parent 134d63e commit df317bc3c871644fb8b40ac60d315d996e631361 @mlankhorst mlankhorst committed Apr 11, 2012
Showing with 161 additions and 186 deletions.
  1. +2 −1 pscnv/nouveau_state.c
  2. +4 −0 pscnv/nvc0_graph.c
  3. +1 −0 pscnv/nvc0_graph.h
  4. +50 −185 pscnv/nvc0_grctx.c
  5. +59 −0 pscnv/nvc0_grgpc.fuc
  6. +45 −0 pscnv/nvc0_grhub.fuc
View
@@ -307,13 +307,14 @@ nouveau_card_init(struct drm_device *dev)
nv50_graph_init(dev);
}
break;
+ case NV_D0:
case NV_C0:
/* PFIFO */
ret = nvc0_fifo_init(dev);
if (!ret) {
/* PGRAPH */
ret = nvc0_graph_init(dev);
- if (!ret) {
+ if (!ret && dev_priv->card_type == NV_C0) {
/* PCOPY0 */
nvc0_copy_init(dev, 0);
/* PCOPY1 */
View
@@ -1,4 +1,5 @@
/*
+ * Copyright 2010 Red Hat Inc.
* Copyright (C) 2010 Christoph Bumiller.
* All Rights Reserved.
*
@@ -650,6 +651,9 @@ nvc0_graph_init(struct drm_device *dev)
case 0xcf: /* 4/0/0/0, 3 */
res->magic_val = 0x03;
break;
+ case 0xd9: /* 1/0/0/0, 1 */
+ priv->magic_val = 0x01;
+ break;
}
if (!res->magic_val) {
View
@@ -65,6 +65,7 @@ nvc0_graph_class(struct drm_device *dev)
case 0xc1:
return 0x9197;
case 0xc8:
+ case 0xd9:
return 0x9297;
default:
return 0;
Oops, something went wrong.

0 comments on commit df317bc

Please sign in to comment.