Bug 84998 - kaveri not recognizing vdpau
Summary: kaveri not recognizing vdpau
Status: RESOLVED NOTOURBUG
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/Radeon (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: xf86-video-ati maintainers
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-14 13:18 UTC by sean darcy
Modified: 2014-10-17 15:00 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Xorg.0.log (140.08 KB, text/plain)
2014-10-14 13:18 UTC, sean darcy
no flags Details
dmesg (139.25 KB, text/plain)
2014-10-14 13:19 UTC, sean darcy
no flags Details
Xorg.0.log (38.31 KB, text/plain)
2014-10-16 14:56 UTC, sean darcy
no flags Details

Description sean darcy 2014-10-14 13:18:03 UTC
Created attachment 107825 [details]
Xorg.0.log

On Fedora 20.

kernel-3.16.4-200.fc20.x86_64
xorg-x11-drv-ati-7.4.0-3.fc20.x86_64
mesa-vdpau-drivers-10.1.5-1.20140607.fc20.x86_64

Xorg.0.log:  RADEON(0): Chipset: "KAVERI" (ChipID = 0x1318)

dmesg:
[drm] UVD initialized successfully.
...
[drm] VCE initialized successfully.

But

export VDPAU_DRIVER=radeonsi; vdpauinfo
display: :0.0   screen: 0
Error creating VDPAU device: 23

and X log has no reference to vdpau:

# grep -i vdpau /var/log/Xorg.0.log
#

Attaching Xorg.0.log and dmesg
Comment 1 sean darcy 2014-10-14 13:19:20 UTC
Created attachment 107826 [details]
dmesg
Comment 2 Alex Deucher 2014-10-14 13:57:57 UTC
Do you have a custom xorg.conf installed?  Something has disabled acceleration in X.

[    29.768] (II) RADEON(0): EXA: Driver will allow EXA pixmaps in VRAM

[    29.770] (--) Depth 24 pixmap format is 32 bpp
[    29.770] (II) RADEON(0): Front buffer size: 4224K
[    29.770] (II) RADEON(0): VRAM usage limit set to 935827K
[    29.771] (==) RADEON(0): Backing store disabled
[    29.771] (WW) RADEON(0): Direct rendering disabled
[    29.771] (II) RADEON(0): Acceleration disabled
Comment 3 sean darcy 2014-10-14 14:30:15 UTC
Only one that tries to force glamor:

#ls /etc/X11
applnk  fontpath.d  xinit  Xmodmap  xorg.conf.d  Xresources
# ls /etc/X11/xorg.conf.d/
00-keyboard.conf  20-test-glamor.conf  50-synaptics.conf
# grep -R EXA *
xorg.conf.d/20-test-glamor.conf:	Option	"AccelMethod"           "Glamor" #valid options are XAA, EXA and Glamor. Default value varies per-GPU.

# cat xorg.conf.d/20-test-glamor.conf 
Section "Device"
	Identifier  "My KAVERI"
	Driver	"radeon"
	Option	"SWcursor"              "off" #software cursor might be necessary on some rare occasions, hence set off by default
	Option	"EnablePageFlip"        "on"  #supported on all R/RV/RS4xx and older hardware, and set on by default
	Option	"AccelMethod"           "Glamor" #valid options are XAA, EXA and Glamor. Default value varies per-GPU.
EndSection


#ls /usr/share/X11
app-defaults  fonts  locale  rgb.txt  XErrorDB  xkb  xorg.conf.d
#ls /usr/share/X11/xorg.conf.d/
10-evdev.conf   50-synaptics.conf       50-vmmouse.conf  glamor.conf
10-quirks.conf  50-synaptics.conf.test  50-wacom.conf

This glamor.conf was installed by the xorg-x11-glamor package.
# cat /usr/share/X11/xorg.conf.d/glamor.conf 
Section "Module"
	Load  "dri2"
	Load  "glamoregl"
EndSection

# grep -R EXA /usr/share/X11/*
# 

Anyplace else I should look?
Comment 4 Michel Dänzer 2014-10-15 01:24:01 UTC
(In reply to sean darcy from comment #3)
> xorg.conf.d/20-test-glamor.conf:	Option	"AccelMethod"           "Glamor"
> #valid options are XAA, EXA and Glamor. Default value varies per-GPU.

Weird, there's no trace of that file being used in the log file.

Anyway, if xf86-video-ati 7.4.0 is built with glamor support, it should default to glamor on Kaveri, so it looks like it was built without glamor support. You need to bring this up with Fedora or wherever you got the driver packages from.
Comment 5 sean darcy 2014-10-16 14:56:41 UTC
Created attachment 107933 [details]
Xorg.0.log
Comment 6 sean darcy 2014-10-16 14:58:01 UTC
Made progess. rebuilt ati driver with glamor. Works with X. See log. But...

vdpauinfo
display: :0.0   screen: 0
radeon: Invalid PCI ID.
Error creating VDPAU device: 23
Comment 7 Alex Deucher 2014-10-16 15:19:55 UTC
It looks like your version of mesa is missing the pci id of your card.  Make sure your version of mesa has this commit:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f50b6b489534f8f362953cbe08d37233f1eab669
Comment 8 sean darcy 2014-10-17 15:00:00 UTC
Built ati driver 7.5.0. Works. Thanks.


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.