aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nv50_crtc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv50_crtc.c')
-rw-r--r--drivers/gpu/drm/nouveau/nv50_crtc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/drm/nouveau/nv50_crtc.c b/drivers/gpu/drm/nouveau/nv50_crtc.c
index 62a563eedfec..bc5fa36677c1 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 = nv50_display(dev)->evo; 68 struct nouveau_channel *evo = nv50_display(dev)->master;
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,7 +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 nouveau_channel *evo = nv50_display(dev)->evo; 138 struct nouveau_channel *evo = nv50_display(dev)->master;
139 int ret; 139 int ret;
140 140
141 NV_DEBUG_KMS(dev, "\n"); 141 NV_DEBUG_KMS(dev, "\n");
@@ -185,7 +185,7 @@ nv50_crtc_set_scale(struct nouveau_crtc *nv_crtc, int scaling_mode, bool update)
185 struct nouveau_connector *nv_connector = 185 struct nouveau_connector *nv_connector =
186 nouveau_crtc_connector_get(nv_crtc); 186 nouveau_crtc_connector_get(nv_crtc);
187 struct drm_device *dev = nv_crtc->base.dev; 187 struct drm_device *dev = nv_crtc->base.dev;
188 struct nouveau_channel *evo = nv50_display(dev)->evo; 188 struct nouveau_channel *evo = nv50_display(dev)->master;
189 struct drm_display_mode *native_mode = NULL; 189 struct drm_display_mode *native_mode = NULL;
190 struct drm_display_mode *mode = &nv_crtc->base.mode; 190 struct drm_display_mode *mode = &nv_crtc->base.mode;
191 uint32_t outX, outY, horiz, vert; 191 uint32_t outX, outY, horiz, vert;
@@ -459,7 +459,7 @@ static void
459nv50_crtc_commit(struct drm_crtc *crtc) 459nv50_crtc_commit(struct drm_crtc *crtc)
460{ 460{
461 struct drm_device *dev = crtc->dev; 461 struct drm_device *dev = crtc->dev;
462 struct nouveau_channel *evo = nv50_display(dev)->evo; 462 struct nouveau_channel *evo = nv50_display(dev)->master;
463 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); 463 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc);
464 int ret; 464 int ret;
465 465
@@ -493,7 +493,7 @@ nv50_crtc_do_mode_set_base(struct drm_crtc *crtc,
493 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); 493 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc);
494 struct drm_device *dev = nv_crtc->base.dev; 494 struct drm_device *dev = nv_crtc->base.dev;
495 struct drm_nouveau_private *dev_priv = dev->dev_private; 495 struct drm_nouveau_private *dev_priv = dev->dev_private;
496 struct nouveau_channel *evo = nv50_display(dev)->evo; 496 struct nouveau_channel *evo = nv50_display(dev)->master;
497 struct drm_framebuffer *drm_fb = nv_crtc->base.fb; 497 struct drm_framebuffer *drm_fb = nv_crtc->base.fb;
498 struct nouveau_framebuffer *fb = nouveau_framebuffer(drm_fb); 498 struct nouveau_framebuffer *fb = nouveau_framebuffer(drm_fb);
499 int ret, format; 499 int ret, format;
@@ -616,7 +616,7 @@ nv50_crtc_mode_set(struct drm_crtc *crtc, struct drm_display_mode *mode,
616 struct drm_framebuffer *old_fb) 616 struct drm_framebuffer *old_fb)
617{ 617{
618 struct drm_device *dev = crtc->dev; 618 struct drm_device *dev = crtc->dev;
619 struct nouveau_channel *evo = nv50_display(dev)->evo; 619 struct nouveau_channel *evo = nv50_display(dev)->master;
620 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); 620 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc);
621 struct nouveau_connector *nv_connector = NULL; 621 struct nouveau_connector *nv_connector = NULL;
622 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;