Bug 93201 - When running a basic OpenGL program with DRI_PRIME=1, Xorg crashes
Summary: When running a basic OpenGL program with DRI_PRIME=1, Xorg crashes
Status: NEW
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/nouveau (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Nouveau Project
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-01 23:23 UTC by Marcos Souza
Modified: 2019-04-25 18:20 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg (11.83 KB, text/plain)
2015-12-01 23:23 UTC, Marcos Souza
no flags Details
Xorg old, showing the crash (28.20 KB, text/plain)
2015-12-01 23:24 UTC, Marcos Souza
no flags Details
current Xorg.0.log (26.17 KB, text/plain)
2015-12-01 23:25 UTC, Marcos Souza
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcos Souza 2015-12-01 23:23:22 UTC
Created attachment 120247 [details]
dmesg

The program app is here: https://github.com/marcosps/experimentations/blob/master/glsl/test_shader.cxx

I just load two shaders and the draw a triangle. The same program works without DRI_PRIME=1.

I already compiled the xf86-video-intel, but I don't know how to setup the new driver in Fedora 23... Can this be related to DRI2?

Please let me know if you you need any additional info.
Comment 1 Marcos Souza 2015-12-01 23:24:34 UTC
Created attachment 120248 [details]
Xorg old, showing the crash
Comment 2 Marcos Souza 2015-12-01 23:25:02 UTC
Created attachment 120249 [details]
current Xorg.0.log
Comment 3 Marcos Souza 2015-12-01 23:48:10 UTC
ABRT also created a bug in RedHat bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1286874
Comment 4 Marcos Souza 2015-12-02 00:26:43 UTC
When requesting the intel driver to use DRI3, I can't see the crashes:

[marcos@localhost glsl]$ cat /etc/X11/xorg.conf.d/30-dri3.conf 
Section "Device"
	Identifier "isrequired"
	Driver "intel"
	Option "AccelMethod" "sna"
	Option "DRI" "3"
#	Driver "modesetting"
#	Option "AccelMethod" "glamor"
#	Option "AccelMethod" "none"
#	Option "ShadowFB" "off"
EndSection


But instead, I get a black window, instead of my shaders...
Comment 5 Chris Wilson 2015-12-02 12:14:17 UTC
I'm going to assume the DRICloseScreen in the middle of the stack is just the unwinder getting confused and so this looks like a nouveau bug and not a core DRI2 bug.
Comment 6 Marcos Souza 2015-12-03 00:40:29 UTC
(In reply to Chris Wilson from comment #5)
> I'm going to assume the DRICloseScreen in the middle of the stack is just
> the unwinder getting confused and so this looks like a nouveau bug and not a
> core DRI2 bug.

So, in this case, there is a start point to look at to solve this problem? I would like ot help fixing this issue...

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.