All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/radeon/kms: fix regression in RMX code
@ 2010-09-07 17:20 Alex Deucher
  2010-09-07 17:24 ` Alex Deucher
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Deucher @ 2010-09-07 17:20 UTC (permalink / raw)
  To: airlied, dri-devel

caused by d65d65b175a29bd7ea2bb69c046419329c4a5db7

need to update the radeon crtc priv native mode before using it.

Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=30049

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
---
 drivers/gpu/drm/radeon/radeon_display.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c
index c7f5017..8c987c9 100644
--- a/drivers/gpu/drm/radeon/radeon_display.c
+++ b/drivers/gpu/drm/radeon/radeon_display.c
@@ -1140,14 +1140,14 @@ bool radeon_crtc_scaling_mode_fixup(struct drm_crtc *crtc,
 				radeon_crtc->rmx_type = radeon_encoder->rmx_type;
 			else
 				radeon_crtc->rmx_type = RMX_OFF;
-			src_v = crtc->mode.vdisplay;
-			dst_v = radeon_crtc->native_mode.vdisplay;
-			src_h = crtc->mode.hdisplay;
-			dst_h = radeon_crtc->native_mode.hdisplay;
 			/* copy native mode */
 			memcpy(&radeon_crtc->native_mode,
 			       &radeon_encoder->native_mode,
 				sizeof(struct drm_display_mode));
+			src_v = crtc->mode.vdisplay;
+			dst_v = radeon_crtc->native_mode.vdisplay;
+			src_h = crtc->mode.hdisplay;
+			dst_h = radeon_crtc->native_mode.hdisplay;
 
 			/* fix up for overscan on hdmi */
 			if (ASIC_IS_AVIVO(rdev) &&
-- 
1.7.1.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] drm/radeon/kms: fix regression in RMX code
  2010-09-07 17:20 [PATCH] drm/radeon/kms: fix regression in RMX code Alex Deucher
@ 2010-09-07 17:24 ` Alex Deucher
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Deucher @ 2010-09-07 17:24 UTC (permalink / raw)
  To: airlied, dri-devel

Ignore this one; unified fix on the way.

On Tue, Sep 7, 2010 at 1:20 PM, Alex Deucher <alexdeucher@gmail.com> wrote:
> caused by d65d65b175a29bd7ea2bb69c046419329c4a5db7
>
> need to update the radeon crtc priv native mode before using it.
>
> Fixes:
> https://bugs.freedesktop.org/show_bug.cgi?id=30049
>
> Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
> ---
>  drivers/gpu/drm/radeon/radeon_display.c |    8 ++++----
>  1 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c
> index c7f5017..8c987c9 100644
> --- a/drivers/gpu/drm/radeon/radeon_display.c
> +++ b/drivers/gpu/drm/radeon/radeon_display.c
> @@ -1140,14 +1140,14 @@ bool radeon_crtc_scaling_mode_fixup(struct drm_crtc *crtc,
>                                radeon_crtc->rmx_type = radeon_encoder->rmx_type;
>                        else
>                                radeon_crtc->rmx_type = RMX_OFF;
> -                       src_v = crtc->mode.vdisplay;
> -                       dst_v = radeon_crtc->native_mode.vdisplay;
> -                       src_h = crtc->mode.hdisplay;
> -                       dst_h = radeon_crtc->native_mode.hdisplay;
>                        /* copy native mode */
>                        memcpy(&radeon_crtc->native_mode,
>                               &radeon_encoder->native_mode,
>                                sizeof(struct drm_display_mode));
> +                       src_v = crtc->mode.vdisplay;
> +                       dst_v = radeon_crtc->native_mode.vdisplay;
> +                       src_h = crtc->mode.hdisplay;
> +                       dst_h = radeon_crtc->native_mode.hdisplay;
>
>                        /* fix up for overscan on hdmi */
>                        if (ASIC_IS_AVIVO(rdev) &&
> --
> 1.7.1.1
>
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-09-07 17:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-07 17:20 [PATCH] drm/radeon/kms: fix regression in RMX code Alex Deucher
2010-09-07 17:24 ` Alex Deucher

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.