Bug 13285 - mplayer against 6.7.196 uses only a 640x480 Xv window
Summary: mplayer against 6.7.196 uses only a 640x480 Xv window
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/Radeon (show other bugs)
Version: 7.3 (2007.09)
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: xf86-video-ati maintainers
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-17 05:08 UTC by Nix
Modified: 2007-12-01 17:10 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Log of working Xv boot, 6.7.195 (45.03 KB, text/plain)
2007-11-21 11:55 UTC, Nix
no flags Details
Log of broken Xv boot, 6.7.196 (47.20 KB, text/plain)
2007-11-21 11:58 UTC, Nix
no flags Details

Description Nix 2007-11-17 05:08:30 UTC
I've got a 9250 running at a screen resolution of 1280x1024. Driver 6.7.196 has regressed with respect to 6.7.195 in that mplayer 1.0rc2 using the Xv video out (and probably other Xv-using programs, not tested) now displays videos in an upper-left-aligned slice of the screen I estimate to be 640x480, with the rest filled with whatever was there before (blue, black, junk, whatever).

In 6.7.195, the image is rescaled correctly and fills the whole screen.

I haven't dug deep enough to see what's going wrong yet, just deep enough to see that this is a behaviour change which correlates with ATI driver upgrade and thus plausibly its bug.

(There is no useful difference in xvinfo output or in what mplayer dumps to stdout between the ATI driver versions.)

I'm sorry this bug report is so short on specifics: if you know something I can do to provide more, please say.
Comment 1 Roland Scheidegger 2007-11-19 17:57:06 UTC
Not sure what could have caused this by a quick look at the git log, but you could always use git-bisect to identify which commit caused it.
Comment 2 Alex Deucher 2007-11-19 17:59:38 UTC
please attach your xorg log and config.
Comment 3 Nix 2007-11-21 11:55:58 UTC
Created attachment 12673 [details]
Log of working Xv boot, 6.7.195
Comment 4 Nix 2007-11-21 11:58:33 UTC
Created attachment 12674 [details]
Log of broken Xv boot, 6.7.196

Possibly significant, from the diff:

 drmOpenDevice: node name is /dev/dri/card0
-drmOpenDevice: open result is 7, (OK)
+drmOpenDevice: open result is -1, (No such device or address)
+drmOpenDevice: open result is -1, (No such device or address)
+drmOpenDevice: Open failed

This is all with the same kernel, 2.6.23.1.
Comment 5 Nix 2007-11-21 13:57:58 UTC
Bisected. Bad commit:

commit 5db3afaa1fdb69d382ac769ef40191a4b964d28e
Author: Alex Deucher <alex@t41p.hsd1.va.comcast.net>
Date:   Thu Oct 11 20:25:20 2007 -0400

    RADEON: return status unknown for flaky chip/connector combinations

    This should at least get something on the screen.
    XPRESS chips, I'm looking in your general direction...

It is... unclear to me why on earth this should break Xv this way, but it does.
(We already know from the logs that the card being detected is unchanged in my case.)
Comment 6 Alex Deucher 2007-11-21 14:25:07 UTC
does:
xrandr --output DVI-0 --off
fix it?
Comment 7 Nix 2007-11-21 14:45:16 UTC
That does indeed fix it. xrandr shows differences between the working and failing drivers:

-DVI-0 disconnected (normal left inverted right x axis y axis)
+DVI-0 unknown connection 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
+   1024x768       60.0*
+   800x600        60.3
+   640x480        59.9

That second connection is a) the wrong size and b) is definitely physically disconnected and c) probably shouldn't be being used as the source of sizing information in any case, should it? If you have one connected device, and one 'unknown', surely the video overlay should be sized for the device that's known to be connected?

(I might have spotted this myself, only I didn't even have xrandr installed until just now; it's not as though this CRT can be reflected or rotated as far as I know, nor do I have a driving desire to do such things with it...)
Comment 8 Alex Deucher 2007-11-26 08:19:38 UTC
Can you try again with my latest commits in ati git master?  I've limited the unknown status to XPRESS chips.
Comment 9 Nix 2007-12-01 17:10:28 UTC
Yep, that's fixed it: it also fixed an apparently-related bug that cropped up at some point whereby other full-screen apps not using video overlays (e.g. wesnoth, xscreensaver) got less of the screen than they thought they had.

Two bugs with one stone :)

(Marking FIXED: I hope that's not a problem)


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.