Bug 15065 - xv overlay when rotated is fail
Summary: xv overlay when rotated is fail
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/nouveau (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Nouveau Project
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-16 12:14 UTC by Stuart Bennett
Modified: 2008-04-29 07:07 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Stuart Bennett 2008-03-16 12:14:11 UTC
The overlay does not work when the output is rotated (under randr12)

To reproduce:
1) Start nouveau, using randr12
2) xrandr -o 2
3) mplayer foo.avi
4) cry

Since rotation is commonly used for projectors (where there's a reasonable chance of Xv being used), this is not a made up problem :)

Someone fixing the coordinate-fu would be awesome, but falling back to the blitter is probably far far easier.
Comment 1 Arthur Huillet 2008-03-21 06:49:22 UTC
Very superficial investigation confirms the bug and suggests the overlay cannot do rotation.

Blitter fallback would appear as the only solution.

If you have time to test with the binary blob and see how it deals with rotation and overlay, the data would be greatly appreciated (mmiotrace).
Comment 2 Stuart Bennett 2008-03-26 11:15:58 UTC
From the nvidia README:

"        Option "RandRRotation" "boolean"
                Enable rotation support for the XRandR extension.  This
                allows use of the XRandR X server extension for
                configuring the screen orientation through rotation.
                This feature is supported on GeForce2 or better hardware
                using depth 24.  This requires an XOrg 6.8.1 or newer
                X server.  This feature does not work with hardware overlays,
                emulated overlays will be used instead at a substantial
                performance penalty.  See APPENDIX W for details.
                Default: off."

Testing with the nvidia driver confirms that even for the non-rotated case the overlay is not used (when the above option is set), so it would seem falling back to blitter is the answer.
Comment 3 Stuart Bennett 2008-04-29 07:07:23 UTC
Fixed in commit c8cec9b2 "randr12, xv: no overlay when the crtc is transformed"


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.