Bug 101214 - xdriinfo and libglvnd Screen 0: not direct rendering capable
Summary: xdriinfo and libglvnd Screen 0: not direct rendering capable
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Other (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: mesa-dev
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-27 23:12 UTC by LoneVVolf
Modified: 2017-05-31 10:51 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
LD_DEBUG=libs xdriinfo with libglvnd installed (5.30 KB, text/plain)
2017-05-27 23:12 UTC, LoneVVolf
Details
patch to give xdriinfo glvnd support created by hans de goede (1.67 KB, patch)
2017-05-30 00:23 UTC, LoneVVolf
Details | Splinter Review

Description LoneVVolf 2017-05-27 23:12:45 UTC
Created attachment 131543 [details]
LD_DEBUG=libs xdriinfo with libglvnd installed

Hi,

with mesa-git master built against libglvnd , xdriinfo can't detect the dri-driver in use, glxinfo works fine .

When the same mesa-git version is built with libglvnd explicitly disabled, xdriinfo works as expected.

https://bugzilla.redhat.com/show_bug.cgi?id=1429894 appears to be about the same bug and concludes it's a mesa bug.
That bug report also indicates Fedora Core has solved this by patching mesa though i can't find the patch they used.
Comment 1 Emil Velikov 2017-05-29 15:27:50 UTC
Can you double-check that your build has the following commit c93f8f0cb3e8b655b0b39f2081bc5ad374abc79d.

AFAICT it's the same one used by the Fedora folks, with a trivial cleanup.
Comment 2 LoneVVolf 2017-05-29 22:12:28 UTC
Can't find a commit with that hash, or do you mean 

https://cgit.freedesktop.org/mesa/mesa/commit/?id=84f764a7591715104b28c035c837ce9fd86157ad

glxglvnddispatch: Add missing dispatch for GetDriverConfig
Together with some fixes to xdriinfo this fixes xdriinfo not working
with glvnd.

That commit is present in my build, looking for the fixes to xdriinfo now.

https://cgit.freedesktop.org/xorg/app/xdriinfo/log/
shows 3 commits after last release, going to build xdriinfo from git.
Comment 3 LoneVVolf 2017-05-30 00:21:42 UTC
xdriinfo build from git didn't change anything.

I dug deeper, found that fedora core has put xdriinfo in their glx-utils package which is a sub pacakage of their mesa-demos package .

downloaded the latest source-rpm from https://koji.fedoraproject.org/koji/buildinfo?buildID=868167 .

after extracting the rpm i found xdriinfo-1.0.4-glvnd.patch (attached ).

Applying that patch to xdriinfo from git solved the issue.

Now to figure out how to continue and get that info to xdriinfo upstream.
Comment 4 LoneVVolf 2017-05-30 00:23:20 UTC
Created attachment 131570 [details] [review]
patch to give xdriinfo glvnd support created by hans de goede
Comment 5 Hans de Goede 2017-05-30 07:10:07 UTC
(In reply to LoneVVolf from comment #3)
> Now to figure out how to continue and get that info to xdriinfo upstream.

I was waiting for someone on the mailinglist to review the patch, but since you've just independently verified that it fixes things I've gone ahead and pushed it.

Which I believe means this bug is fixed now -> closing.
Comment 6 LoneVVolf 2017-05-31 10:51:11 UTC
Thanks for the quick responses Emil & Hans.

Searching on mailing lists i'm not subscribed to has always been tricky for me.
After hans post I checked X mailing lists more throughly and found the patch proposal on xorg-devel ML (subscribed to it now) in the march archive.


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.