All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/radeon/kms: don't enable underscan with interlaced modes
@ 2010-09-10  7:19 Alex Deucher
  2010-09-10 12:39 ` Marius Gröger
  0 siblings, 1 reply; 7+ messages in thread
From: Alex Deucher @ 2010-09-10  7:19 UTC (permalink / raw)
  To: airlied, dri-devel

They aren't compatible.

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

diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c
index 8c987c9..127a395 100644
--- a/drivers/gpu/drm/radeon/radeon_display.c
+++ b/drivers/gpu/drm/radeon/radeon_display.c
@@ -1151,6 +1151,7 @@ bool radeon_crtc_scaling_mode_fixup(struct drm_crtc *crtc,
 
 			/* fix up for overscan on hdmi */
 			if (ASIC_IS_AVIVO(rdev) &&
+			    (!(mode->flags & DRM_MODE_FLAG_INTERLACE)) &&
 			    ((radeon_encoder->underscan_type == UNDERSCAN_ON) ||
 			     ((radeon_encoder->underscan_type == UNDERSCAN_AUTO) &&
 			      drm_detect_hdmi_monitor(radeon_connector->edid) &&
-- 
1.7.1.1

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

* Re: [PATCH] drm/radeon/kms: don't enable underscan with interlaced modes
  2010-09-10  7:19 [PATCH] drm/radeon/kms: don't enable underscan with interlaced modes Alex Deucher
@ 2010-09-10 12:39 ` Marius Gröger
  2010-09-10 15:20   ` Alex Deucher
  0 siblings, 1 reply; 7+ messages in thread
From: Marius Gröger @ 2010-09-10 12:39 UTC (permalink / raw)
  To: Alex Deucher; +Cc: dri-devel

On 10.09.2010 09:19, wrote Alex Deucher:
> They aren't compatible.

Hm, ok. Is this supposed to be quick fix or is there any chance to get 
proper underscan for interlaced modes?

Secondly, have you had a chance to look at my register dumps? Any clues 
as to why the Xserver prunes interlaced modes only with KMS?

Thanks
Marius

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

* Re: [PATCH] drm/radeon/kms: don't enable underscan with interlaced modes
  2010-09-10 12:39 ` Marius Gröger
@ 2010-09-10 15:20   ` Alex Deucher
  2010-09-21 19:33     ` Marius Gröger
  0 siblings, 1 reply; 7+ messages in thread
From: Alex Deucher @ 2010-09-10 15:20 UTC (permalink / raw)
  To: Marius Gröger; +Cc: dri-devel

2010/9/10 Marius Gröger <marius.groeger@googlemail.com>:
> On 10.09.2010 09:19, wrote Alex Deucher:
>>
>> They aren't compatible.
>
> Hm, ok. Is this supposed to be quick fix or is there any chance to get
> proper underscan for interlaced modes?
>

The scaler doesn't appear to work with interlaced modes as you've
noticed; I don't off hand know whether it can be made to or not.
Unfortunately, I won't have time to dig into this more for a while.

> Secondly, have you had a chance to look at my register dumps? Any clues as
> to why the Xserver prunes interlaced modes only with KMS?

If this commit (http://cgit.freedesktop.org/xorg/driver/xf86-video-ati/commit/?id=b90cb61ccb0f4f80e0627141f223354a9371d47d)
doesn't help, then presumably the problem is due to some change in the
xserver.

The only difference in the register dump was that the scaler was
enabled for underscan in the kms one.

Alex

>
> Thanks
> Marius
>
>

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

* Re: [PATCH] drm/radeon/kms: don't enable underscan with interlaced modes
  2010-09-10 15:20   ` Alex Deucher
@ 2010-09-21 19:33     ` Marius Gröger
  2010-09-22  4:40       ` Alex Deucher
  0 siblings, 1 reply; 7+ messages in thread
From: Marius Gröger @ 2010-09-21 19:33 UTC (permalink / raw)
  To: Alex Deucher; +Cc: dri-devel

On 10.09.2010 17:20 Alex Deucher wrote:
> The scaler doesn't appear to work with interlaced modes as you've
> noticed; I don't off hand know whether it can be made to or not.
> Unfortunately, I won't have time to dig into this more for a while.

Is there public documentation available wrt this matter? 
www.x.org/docs/AMD/ appears to focus on 3D stuff primarily...

Regards,
Marius

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

* Re: [PATCH] drm/radeon/kms: don't enable underscan with interlaced modes
  2010-09-21 19:33     ` Marius Gröger
@ 2010-09-22  4:40       ` Alex Deucher
  2010-09-22 18:24         ` Marius Gröger
  0 siblings, 1 reply; 7+ messages in thread
From: Alex Deucher @ 2010-09-22  4:40 UTC (permalink / raw)
  To: Marius Gröger; +Cc: dri-devel

2010/9/21 Marius Gröger <marius.groeger@googlemail.com>:
> On 10.09.2010 17:20 Alex Deucher wrote:
>>
>> The scaler doesn't appear to work with interlaced modes as you've
>> noticed; I don't off hand know whether it can be made to or not.
>> Unfortunately, I won't have time to dig into this more for a while.
>
> Is there public documentation available wrt this matter? www.x.org/docs/AMD/
> appears to focus on 3D stuff primarily...
>

Not at the moment, however, you could implement underscan using the 3D
engine to do the scaling rather than the display scalers.  I think you
could even do it with randr crtc transforms (which use the 3d engine).

Alex

> Regards,
> Marius
>

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

* Re: [PATCH] drm/radeon/kms: don't enable underscan with interlaced modes
  2010-09-22  4:40       ` Alex Deucher
@ 2010-09-22 18:24         ` Marius Gröger
  2010-09-26  5:23           ` Alex Deucher
  0 siblings, 1 reply; 7+ messages in thread
From: Marius Gröger @ 2010-09-22 18:24 UTC (permalink / raw)
  To: Alex Deucher; +Cc: dri-devel

Am 22.09.2010 06:40, schrieb Alex Deucher:
> 2010/9/21 Marius Gröger<marius.groeger@googlemail.com>:
>> On 10.09.2010 17:20 Alex Deucher wrote:
>>>
>>> The scaler doesn't appear to work with interlaced modes as you've
>>> noticed; I don't off hand know whether it can be made to or not.
>>> Unfortunately, I won't have time to dig into this more for a while.
>>
>> Is there public documentation available wrt this matter? www.x.org/docs/AMD/
>> appears to focus on 3D stuff primarily...
>>
>
> Not at the moment, however, you could implement underscan using the 3D
> engine to do the scaling rather than the display scalers.  I think you
> could even do it with randr crtc transforms (which use the 3d engine).

Are you referring to xrandr --transpose? At least for me this seems to 
be only partially implemented. For example:

xrandr --output HDMI-0 --mode 1920x1080@50i --transform 
0.5,0,0,0,0.5,0,0,0,1

This does in fact render the image scaled down by 50%. However,

xrandr --verbose

yields:

HDMI-0 connected 1920x1080+0+0 (0xfd) normal (normal left inverted right 
x axis y axis) 1600mm x 900mm
...
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000

Translation doesn't work at all, so it's not a viable workaround.

Sigh. This is all kind of frustrating...

Regards,
Marius

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

* Re: [PATCH] drm/radeon/kms: don't enable underscan with interlaced modes
  2010-09-22 18:24         ` Marius Gröger
@ 2010-09-26  5:23           ` Alex Deucher
  0 siblings, 0 replies; 7+ messages in thread
From: Alex Deucher @ 2010-09-26  5:23 UTC (permalink / raw)
  To: Marius Gröger; +Cc: dri-devel

2010/9/22 Marius Gröger <marius.groeger@googlemail.com>:
> Am 22.09.2010 06:40, schrieb Alex Deucher:
>>
>> 2010/9/21 Marius Gröger<marius.groeger@googlemail.com>:
>>>
>>> On 10.09.2010 17:20 Alex Deucher wrote:
>>>>
>>>> The scaler doesn't appear to work with interlaced modes as you've
>>>> noticed; I don't off hand know whether it can be made to or not.
>>>> Unfortunately, I won't have time to dig into this more for a while.
>>>
>>> Is there public documentation available wrt this matter?
>>> www.x.org/docs/AMD/
>>> appears to focus on 3D stuff primarily...
>>>
>>
>> Not at the moment, however, you could implement underscan using the 3D
>> engine to do the scaling rather than the display scalers.  I think you
>> could even do it with randr crtc transforms (which use the 3d engine).
>
> Are you referring to xrandr --transpose? At least for me this seems to be
> only partially implemented. For example:
>
> xrandr --output HDMI-0 --mode 1920x1080@50i --transform
> 0.5,0,0,0,0.5,0,0,0,1
>
> This does in fact render the image scaled down by 50%. However,
>
> xrandr --verbose
>
> yields:
>
> HDMI-0 connected 1920x1080+0+0 (0xfd) normal (normal left inverted right x
> axis y axis) 1600mm x 900mm
> ...
>        Transform:  1.000000 0.000000 0.000000
>                    0.000000 1.000000 0.000000
>                    0.000000 0.000000 1.000000
>
> Translation doesn't work at all, so it's not a viable workaround.

The transform shader code in the exa composite code probably needs
adjusting to deal properly with translation.

Alex

>
> Sigh. This is all kind of frustrating...
>
> Regards,
> Marius
>

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

end of thread, other threads:[~2010-09-26  5:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-10  7:19 [PATCH] drm/radeon/kms: don't enable underscan with interlaced modes Alex Deucher
2010-09-10 12:39 ` Marius Gröger
2010-09-10 15:20   ` Alex Deucher
2010-09-21 19:33     ` Marius Gröger
2010-09-22  4:40       ` Alex Deucher
2010-09-22 18:24         ` Marius Gröger
2010-09-26  5:23           ` 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.