aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nv50_crtc.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2011-01-31 19:07:32 -0500
committerBen Skeggs <bskeggs@redhat.com>2011-02-24 15:44:39 -0500
commitef8389a84bbd80daaf6c60a5534461d82ba22c0a (patch)
treea0f97e81eb0b74f48724ff40825b9792bdc8e29d /drivers/gpu/drm/nouveau/nv50_crtc.c
parentd82f8e6c802bb1244ce590d3877f7c66a8fb0ff0 (diff)
drm/nv50-nvc0: move non-sharable display state into private structure
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv50_crtc.c')
-rw-r--r--drivers/gpu/drm/nouveau/nv50_crtc.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/drivers/gpu/drm/nouveau/nv50_crtc.c b/drivers/gpu/drm/nouveau/nv50_crtc.c
index 9023c4dbb44..62a563eedfe 100644
--- a/drivers/gpu/drm/nouveau/nv50_crtc.c
+++ b/drivers/gpu/drm/nouveau/nv50_crtc.c
@@ -65,7 +65,7 @@ nv50_crtc_blank(struct nouveau_crtc *nv_crtc, bool blanked)
65{ 65{
66 struct drm_device *dev = nv_crtc->base.dev; 66 struct drm_device *dev = nv_crtc->base.dev;
67 struct drm_nouveau_private *dev_priv = dev->dev_private; 67 struct drm_nouveau_private *dev_priv = dev->dev_private;
68 struct nouveau_channel *evo = dev_priv->evo; 68 struct nouveau_channel *evo = nv50_display(dev)->evo;
69 int index = nv_crtc->index, ret; 69 int index = nv_crtc->index, ret;
70 70
71 NV_DEBUG_KMS(dev, "index %d\n", nv_crtc->index); 71 NV_DEBUG_KMS(dev, "index %d\n", nv_crtc->index);
@@ -135,8 +135,7 @@ static int
135nv50_crtc_set_dither(struct nouveau_crtc *nv_crtc, bool on, bool update) 135nv50_crtc_set_dither(struct nouveau_crtc *nv_crtc, bool on, bool update)
136{ 136{
137 struct drm_device *dev = nv_crtc->base.dev; 137 struct drm_device *dev = nv_crtc->base.dev;
138 struct drm_nouveau_private *dev_priv = dev->dev_private; 138 struct nouveau_channel *evo = nv50_display(dev)->evo;
139 struct nouveau_channel *evo = dev_priv->evo;
140 int ret; 139 int ret;
141 140
142 NV_DEBUG_KMS(dev, "\n"); 141 NV_DEBUG_KMS(dev, "\n");
@@ -186,8 +185,7 @@ nv50_crtc_set_scale(struct nouveau_crtc *nv_crtc, int scaling_mode, bool update)
186 struct nouveau_connector *nv_connector = 185 struct nouveau_connector *nv_connector =
187 nouveau_crtc_connector_get(nv_crtc); 186 nouveau_crtc_connector_get(nv_crtc);
188 struct drm_device *dev = nv_crtc->base.dev; 187 struct drm_device *dev = nv_crtc->base.dev;
189 struct drm_nouveau_private *dev_priv = dev->dev_private; 188 struct nouveau_channel *evo = nv50_display(dev)->evo;
190 struct nouveau_channel *evo = dev_priv->evo;
191 struct drm_display_mode *native_mode = NULL; 189 struct drm_display_mode *native_mode = NULL;
192 struct drm_display_mode *mode = &nv_crtc->base.mode; 190 struct drm_display_mode *mode = &nv_crtc->base.mode;
193 uint32_t outX, outY, horiz, vert; 191 uint32_t outX, outY, horiz, vert;
@@ -461,8 +459,7 @@ static void
461nv50_crtc_commit(struct drm_crtc *crtc) 459nv50_crtc_commit(struct drm_crtc *crtc)
462{ 460{
463 struct drm_device *dev = crtc->dev; 461 struct drm_device *dev = crtc->dev;
464 struct drm_nouveau_private *dev_priv = dev->dev_private; 462 struct nouveau_channel *evo = nv50_display(dev)->evo;
465 struct nouveau_channel *evo = dev_priv->evo;
466 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); 463 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc);
467 int ret; 464 int ret;
468 465
@@ -496,7 +493,7 @@ nv50_crtc_do_mode_set_base(struct drm_crtc *crtc,
496 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); 493 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc);
497 struct drm_device *dev = nv_crtc->base.dev; 494 struct drm_device *dev = nv_crtc->base.dev;
498 struct drm_nouveau_private *dev_priv = dev->dev_private; 495 struct drm_nouveau_private *dev_priv = dev->dev_private;
499 struct nouveau_channel *evo = dev_priv->evo; 496 struct nouveau_channel *evo = nv50_display(dev)->evo;
500 struct drm_framebuffer *drm_fb = nv_crtc->base.fb; 497 struct drm_framebuffer *drm_fb = nv_crtc->base.fb;
501 struct nouveau_framebuffer *fb = nouveau_framebuffer(drm_fb); 498 struct nouveau_framebuffer *fb = nouveau_framebuffer(drm_fb);
502 int ret, format; 499 int ret, format;
@@ -619,8 +616,7 @@ nv50_crtc_mode_set(struct drm_crtc *crtc, struct drm_display_mode *mode,
619 struct drm_framebuffer *old_fb) 616 struct drm_framebuffer *old_fb)
620{ 617{
621 struct drm_device *dev = crtc->dev; 618 struct drm_device *dev = crtc->dev;
622 struct drm_nouveau_private *dev_priv = dev->dev_private; 619 struct nouveau_channel *evo = nv50_display(dev)->evo;
623 struct nouveau_channel *evo = dev_priv->evo;
624 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); 620 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc);
625 struct nouveau_connector *nv_connector = NULL; 621 struct nouveau_connector *nv_connector = NULL;
626 uint32_t hsync_dur, vsync_dur, hsync_start_to_end, vsync_start_to_end; 622 uint32_t hsync_dur, vsync_dur, hsync_start_to_end, vsync_start_to_end;