Bug 76035

Summary: DRI_PRIME with anything but 0 or 1 crashes X if rendering is offloaded
Product: xorg Reporter: Stefan Dirsch <sndirsch>
Component: Driver/RadeonAssignee: xf86-video-ati maintainers <xorg-driver-ati>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: michalsrb
Version: 7.7 (2012.06)   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Stefan Dirsch 2014-03-11 14:43:51 UTC
This is seen with render offloading on Radeon with any Intel gfx (Nvidia not
tested)

"DRI_PRIME=2 glxinfo" crashes X. It happens with any program. It happens only
if rendering is offloaded. Without association the Intel gfx is accessed.
Comment 1 Michel Dänzer 2014-03-12 06:40:39 UTC
Please attach the Xorg log file and the output of dmesg, and if possible a gdb backtrace of the crash.
Comment 2 Stefan Dirsch 2014-04-16 13:03:36 UTC
Michal Srb fixed this meanwhile and sent a patch to the xorg-devel list.

http://lists.x.org/archives/xorg-devel/2014-April/041880.html
Comment 3 Stefan Dirsch 2018-07-17 10:05:00 UTC
This fix came in with

commit 3dba171f5e82101aa8ea2e47d2253c3410907f6a
Author: Michal Srb <msrb@suse.com>
Date:   Tue Apr 15 18:54:35 2014 +0300

    dri2: Fix detection of wrong prime_id in GetScreenPrime.

Fixed with xorg-server 1.16. Closing as fixed.

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.