Bug 13737 - XVideo renders RGB image incorrectry.
Summary: XVideo renders RGB image incorrectry.
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/Radeon (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium critical
Assignee: xf86-video-ati maintainers
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-19 07:44 UTC by Kusanagi Kouichi
Modified: 2008-01-22 02:47 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
testcase (4.00 KB, text/plain)
2007-12-19 07:46 UTC, Kusanagi Kouichi
no flags Details
expected result (1.02 KB, image/png)
2007-12-19 07:47 UTC, Kusanagi Kouichi
no flags Details
actual result for 24 or 32 bpp image. (1.02 KB, image/png)
2007-12-19 07:48 UTC, Kusanagi Kouichi
no flags Details
actual result for 16 bpp image. (723 bytes, image/png)
2007-12-19 07:49 UTC, Kusanagi Kouichi
no flags Details
partial fix (1.28 KB, patch)
2007-12-19 07:51 UTC, Kusanagi Kouichi
no flags Details | Splinter Review
xrandr --verbose (5.75 KB, text/plain)
2007-12-19 07:52 UTC, Kusanagi Kouichi
no flags Details
xmame rendering pacman badly using rgb overlays (402.43 KB, image/jpeg)
2008-01-11 12:55 UTC, Edward Sheldrake
no flags Details
what pacman should look like (1.89 KB, image/png)
2008-01-11 12:56 UTC, Edward Sheldrake
no flags Details

Description Kusanagi Kouichi 2007-12-19 07:44:31 UTC
Hardware is RV280 [Radeon 9200].
Misrendering occures horizontal direction only.
Comment 1 Kusanagi Kouichi 2007-12-19 07:46:20 UTC
Created attachment 13220 [details]
testcase
Comment 2 Kusanagi Kouichi 2007-12-19 07:47:14 UTC
Created attachment 13221 [details]
expected result
Comment 3 Kusanagi Kouichi 2007-12-19 07:48:29 UTC
Created attachment 13222 [details]
actual result for 24 or 32 bpp image.
Comment 4 Kusanagi Kouichi 2007-12-19 07:49:31 UTC
Created attachment 13223 [details]
actual result for 16 bpp image.
Comment 5 Kusanagi Kouichi 2007-12-19 07:51:42 UTC
Created attachment 13224 [details] [review]
partial fix

Image is still rendered incorrectly if following conditions are met.
1. Image is 24 or 32 bpp.
2. (dest_w > src_w) && (dest_w < src_w * 2 / 3).
3. Mode is "1600x1200".
Comment 6 Kusanagi Kouichi 2007-12-19 07:52:22 UTC
Created attachment 13225 [details]
xrandr --verbose
Comment 7 Edward Sheldrake 2008-01-11 12:35:47 UTC
All 4 RGB overlay types appear to be broken on my RV350 (Radeon 9550 AGP).

Using http://www.blackfiveservices.co.uk/xvtestcard.shtml, the image appears to be stretched horizontally, also, for RGB24, red and blue channels are swapped.

Hardware is 32bit x86. Running today's git snapshot of xf86-video-ati with xserver 1.4.

Xmame set to use the radeon rgb overlays renders incorrectly, I tested xmame with the rgb overlays of a sis 650 and that renders correctly, so I do not think the bug is in xmame.
Comment 8 Edward Sheldrake 2008-01-11 12:55:33 UTC
Created attachment 13663 [details]
xmame rendering pacman badly using rgb overlays

xmame -vidmod 1 -force-yuv 0 pacman

screenshot taken with a digital camera
Comment 9 Edward Sheldrake 2008-01-11 12:56:11 UTC
Created attachment 13664 [details]
what pacman should look like
Comment 10 Michel Dänzer 2008-01-19 06:14:07 UTC
Patch pushed, thanks Kusanagi. Do you want to leave this open for comment #5 or open another bug for that?
Comment 11 Kusanagi Kouichi 2008-01-21 19:29:24 UTC
> Do you want to leave this open for comment #5 or open another bug for that?

I will open another bug for that. So please close this bug.
Comment 12 Michel Dänzer 2008-01-22 02:47:19 UTC
Closing per submitter (note that you can do this yourself :).


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.