aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nv40_graph.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2011-03-31 23:10:45 -0400
committerBen Skeggs <bskeggs@redhat.com>2011-05-15 20:48:33 -0400
commit96c50082904c7cefa3b01356f62268ee6d9e9f38 (patch)
treea735093f5a7a9f4489bae195bd0809e714ba70a2 /drivers/gpu/drm/nouveau/nv40_graph.c
parent4976986bd4f51368890f57b964176ec532972543 (diff)
drm/nouveau: move set_tile_region to nouveau_exec_engine
In the very least VPE (PMPEG and friends) also has this style of tile region regs, lets make them just work if/when they get added. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv40_graph.c')
-rw-r--r--drivers/gpu/drm/nouveau/nv40_graph.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nv40_graph.c b/drivers/gpu/drm/nouveau/nv40_graph.c
index f0c6a64275aa..638c8878e529 100644
--- a/drivers/gpu/drm/nouveau/nv40_graph.c
+++ b/drivers/gpu/drm/nouveau/nv40_graph.c
@@ -207,7 +207,7 @@ nv40_graph_object_new(struct nouveau_channel *chan, int engine,
207 return ret; 207 return ret;
208} 208}
209 209
210void 210static void
211nv40_graph_set_tile_region(struct drm_device *dev, int i) 211nv40_graph_set_tile_region(struct drm_device *dev, int i)
212{ 212{
213 struct drm_nouveau_private *dev_priv = dev->dev_private; 213 struct drm_nouveau_private *dev_priv = dev->dev_private;
@@ -525,6 +525,7 @@ nv40_graph_create(struct drm_device *dev)
525 pgraph->base.context_new = nv40_graph_context_new; 525 pgraph->base.context_new = nv40_graph_context_new;
526 pgraph->base.context_del = nv40_graph_context_del; 526 pgraph->base.context_del = nv40_graph_context_del;
527 pgraph->base.object_new = nv40_graph_object_new; 527 pgraph->base.object_new = nv40_graph_object_new;
528 pgraph->base.set_tile_region = nv40_graph_set_tile_region;
528 529
529 NVOBJ_ENGINE_ADD(dev, GR, &pgraph->base); 530 NVOBJ_ENGINE_ADD(dev, GR, &pgraph->base);
530 nouveau_irq_register(dev, 12, nv40_graph_isr); 531 nouveau_irq_register(dev, 12, nv40_graph_isr);