Bug 30455 - r600g: mplayer -vo gl(2) only shows a black video window
Summary: r600g: mplayer -vo gl(2) only shows a black video window
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/r600 (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-29 03:07 UTC by Nils Kneuper
Modified: 2010-09-30 15:08 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Nils Kneuper 2010-09-29 03:07:23 UTC
Using r600g latest git (currently at d4da253b298677c63def5f2f774608d660be31a1) mplayer does not output anything when eg using "mplayer -vo gl2 test.avi". The same video is played nicely using r600c. There is no error message neither in the mplayer output (looks identical to the r600c output) nor in dmesg or anywhere else in my system. mcgreg confirmed this issue in #radeon. It happens with both, gl and gl2 as videoout. xv works without a problem.

System details:
Gentoo unstable amd64
mesa from git master
xf86-video-ati from git master
libdrm from git master
(vanilla) kernel 2.6.35.4
graphics card: RadeonHD 3850 (512MB) aka rv670

Not attaching any logs since they don't show anything noteworthy at all. If you need additional information, either ask in here or in #radeon (username: ivanovic).
Comment 1 Gregor Galwas 2010-09-29 03:23:07 UTC
I can confirm that. Tested mplayer with gl and gl2 output.

LIBGL_DEBUG=verbose gmplayer /media/mov/xyz.avi   returns:

VO: [gl2] 480x270 => 480x270 Planar YV12  [zoom]
[ws] Error in display.
[ws]  Error code: 8 ( BadMatch (invalid parameter attributes) )
[ws]  Request code: 2
[ws]  Minor code: 0
[ws]  Modules: decode_video
libGL: Can't open configuration file /etc/drirc: No such file or directory.
[gl2] You have OpenGL >= 1.2 capable drivers, GOOD (16bpp and BGR is ok!)
[gl2] antialiasing off
[gl2] bilinear linear


Using git mesa, libdrm and ddx (all master).
Kernel: 2.6.36-rc4+ #14 SMP Fri Sep 17 12:35:33 CEST 2010 x86_64 GNU/Linux
Radeon 4670.
Comment 2 Ed Tomlinson 2010-09-29 04:49:55 UTC
Confirming this also happens here.  Chipset RS780 HD3xxx.
Comment 3 Jerome Glisse 2010-09-30 13:34:08 UTC
Pushed fix. Thanks for reporting
Comment 4 Nils Kneuper 2010-09-30 14:33:48 UTC
(In reply to comment #3)
> Pushed fix. Thanks for reporting

Can confirm this on. Both rendering with gl2 and gl are fixed.
Comment 5 Andy Furniss 2010-09-30 14:58:09 UTC
(In reply to comment #3)
> Pushed fix. Thanks for reporting

One difference between c and g when using -vo gl:yuv=X is that 4 works on classic but not gallium. 1 and 5 fail (no chroma) on both.
Comment 6 Andy Furniss 2010-09-30 15:08:25 UTC
(In reply to comment #5)

> 1 and 5 fail (no chroma) on both.

Re-reading the man page explains this as 1 is for nvidia and 5 old ati cards.

So -vo gl:yuv=4 on gallium is the only issue, I've found so far.


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.