<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Radeon+Intel GPU with HDMI audio on Intel"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=67550">67550</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>dri-devel@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Radeon+Intel GPU with HDMI audio on Intel
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>a.heider@gmail.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>DRI CVS
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>General
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>DRI
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I have multiple, but related, issues with a dual GPU setup:
1) cursor flickering
2) no HDMI audio on secondary GPU without extending X11 for that output
3) xrandr broken with xorg.conf describing the dual setup
4) driQueryOptioni() not multi GPU aware (crash in mesa)

Setup:
Radeon 6850 PCIe as primary device, connected to a TFT over DVI
HD4000 on Ivybridge as secondary device, connected to a receiver over HDMI
(plus a projector connected to my receiver via HDMI)
Pretty much the latest and greatest of everything in the graphics stack.

Why the secondary connection? It's used to get multichannel audio to my
receiver, which isn't possible with the additional radeon HDMI head.

If I extend my desktop via:
xrandr --output $intel_hdmi --right-of $radeon_dvi --mode 1280x720 --refresh 60
It properly extends the display to the secondary GPU. I get a picture on the
projector, as well as HDMI audio on the receiver.

#1, without xorg.conf
Now with both outputs enabled there is a mouse cursor issue with apps on the
primary output:

* mplayer (without using vdpau), dvb-t viewer or firefox+flash: when moving the
cursor over the video output, there's a rectangle of garbage around the cursor.
Looks like a rect of a prior frame on a broken alpha mask. The issue with
mplayer vanishes when using vdpau.
* The cursor in full screen GL games flickers. One frame it's there, then
vanishes some later, but mostly its gone, making GUIs a real pita.

If I disable the $intel_hdmi output again the problem goes away. But that
brings us to the second problem:

#2, without xorg.conf
The receiver sends its own EDID block, so I can extend via xrandr without
turning on the projector.
But the projector is turned off in most cases, so is there a way to disable a
display output but keep the HDMI audio output? (as a workaround for #1)

I found:
xrandr --output $intel_hdmi --set audio force-dvi|off|auto|on
but it seems that only works if the display output is enabled (or I'm too
stupid to properly use xrandr)...

#3 with xorg.conf
xrandr thinks HDMI isn't connected to the Intel GPU, and hence doesn't allow to
toggle it, yet HDMI audio over it just works. While that would probably work
around #1 I cannot tell because then I run into:

#4 with xorg.conf
All GL apps crash with:
glxinfo: /home/andre/devel/mesa/src/mesa/drivers/dri/common/xmlconfig.c:1030:
driQueryOptioni: Assertion `cache->info[i].name != ((void *)0)' failed.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>