Permalink
Browse files

nvc0: assume 0x9097's presence on all chipsets

This appears to be the case thus far, and is what the 3D driver does.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information...
1 parent 98ee210 commit 7dd8987b8b69f56d04a199207122d2e51b9caa6e @skeggsb committed Jun 17, 2011
Showing with 1 addition and 13 deletions.
  1. +1 −13 src/nvc0_accel.c
View
@@ -87,22 +87,10 @@ NVAccelInit3D_NVC0(ScrnInfoPtr pScrn)
struct nouveau_channel *chan = pNv->chan;
struct nouveau_grobj *fermi, *m2mf;
struct nouveau_bo *bo;
- uint32_t tclClass;
int ret, i;
- switch (pNv->dev->chipset) {
- case 0xc0:
- case 0xc1:
- case 0xc3:
- case 0xc4:
- tclClass = 0x9097;
- break;
- default:
- return FALSE;
- }
-
if (!pNv->Nv3D) {
- ret = nouveau_grobj_alloc(chan, tclClass, tclClass, &pNv->Nv3D);
+ ret = nouveau_grobj_alloc(chan, 0x9097, 0x9097, &pNv->Nv3D);
if (ret)
return FALSE;

0 comments on commit 7dd8987

Please sign in to comment.