I am trying to get DRI PRIME working on my AMD dual-GPU laptop.
hp dv6z-7000
AMD A10-4600 APU with Radeon HD 7660G (ARUBA)
AMD Radeon HD 7730M (VERDE) discrete GPU, 2GB VRAM
Ubuntu GNOME 13.10
Custom-built kernel 3.11-rc7 from drm-next-3.13-wip branch (for DPM)
I'm using the Ubuntu-provided xorg, mesa, glamor, and libdrm packages. I had
to compile my own xserver-xorg-video-ati/radeon packages with glamor
acceleration support enabled. With this I can confirm glamor acceleration is
being used with the 7660G on r600 and it works well.
Now, I want to enable DRI PRIME to use the 7730M with games.
adam@Adam-dv6z-7000:~$ xrandr --listproviders
Providers: number : 3
Provider 0: id: 0x6c cap: 0xf, Source Output, Sink Output, Source Offload, Sink
Offload crtcs: 4 outputs: 3 associated providers: 2 name:radeon
Provider 1: id: 0x45 cap: 0xf, Source Output, Sink Output, Source Offload, Sink
Offload crtcs: 6 outputs: 0 associated providers: 2 name:radeon
Provider 2: id: 0x45 cap: 0xf, Source Output, Sink Output, Source Offload, Sink
Offload crtcs: 6 outputs: 0 associated providers: 2 name:radeon
adam@Adam-dv6z-7000:~$ xrandr --setprovideroffloadsink 0x45 0x6C
adam@Adam-dv6z-7000:~$ DRI_PRIME=1 glxinfo | grep renderer
When I run that third line, X crashes immediately with a segfault and
automatically restarts GDM to the login screen. I will attach a Xorg log to
this bug report after I post it and run the commands.