Commit aa2c2e80 authored by Ben Skeggs's avatar Ben Skeggs

drm/nv50: fix compute object class

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 23c45e8e
...@@ -425,8 +425,6 @@ nv50_graph_register(struct drm_device *dev) ...@@ -425,8 +425,6 @@ nv50_graph_register(struct drm_device *dev)
NVOBJ_CLASS(dev, 0x0030, GR); /* null */ NVOBJ_CLASS(dev, 0x0030, GR); /* null */
NVOBJ_CLASS(dev, 0x5039, GR); /* m2mf */ NVOBJ_CLASS(dev, 0x5039, GR); /* m2mf */
NVOBJ_CLASS(dev, 0x502d, GR); /* 2d */ NVOBJ_CLASS(dev, 0x502d, GR); /* 2d */
NVOBJ_CLASS(dev, 0x50c0, GR); /* compute */
NVOBJ_CLASS(dev, 0x85c0, GR); /* compute (nva3, nva5, nva8) */
/* tesla */ /* tesla */
if (dev_priv->chipset == 0x50) if (dev_priv->chipset == 0x50)
...@@ -452,6 +450,14 @@ nv50_graph_register(struct drm_device *dev) ...@@ -452,6 +450,14 @@ nv50_graph_register(struct drm_device *dev)
} }
} }
/* compute */
if (dev_priv->chipset <= 0xa0 ||
dev_priv->chipset == 0xaa ||
dev_priv->chipset == 0xac)
NVOBJ_CLASS(dev, 0x50c0, GR);
else
NVOBJ_CLASS(dev, 0x85c0, GR);
dev_priv->engine.graph.registered = true; dev_priv->engine.graph.registered = true;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment