<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - X.Org Server terminate when I close video player"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=60182#c21">Comment # 21</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - X.Org Server terminate when I close video player"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=60182">bug 60182</a>
              from <span class="vcard"><a class="email" href="mailto:weberkai@yahoo.com.br" title="Weber K. <weberkai@yahoo.com.br>"> <span class="fn">Weber K.</span></a>
</span></b>
        <pre>Hello!
I think I found a workaround!

At this file:
<a href="https://github.com/RAOF/xf86-video-ati/blob/master/src/radeon_dri2.c">https://github.com/RAOF/xf86-video-ati/blob/master/src/radeon_dri2.c</a>

At line 608:
Changed from:
            xorg_list_for_each_entry(ref, &pClientEventsPriv->reference_list,
link) {
                ref->valid = FALSE;
                radeon_dri2_unref_buffer(ref->front);
                radeon_dri2_unref_buffer(ref->back);
            }

Replaced by:
            xorg_list_for_each_entry(ref, &pClientEventsPriv->reference_list,
link) {
        if (ref->valid) {
                    ref->valid = FALSE;
                    radeon_dri2_unref_buffer(ref->front);
                    radeon_dri2_unref_buffer(ref->back);
        }
            }

I just checked valid before the calls, but I still cannot find what is making
double calls...

Maybe its because I have two boards? Onboard HD4250 e PCIE HD6850?

Thanks!
Weber Kai

bash-4.2# lspci
01:05.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI RS880
[Radeon HD 4250]
01:05.1 Audio device: Advanced Micro Devices [AMD] nee ATI RS880 HDMI Audio
[Radeon HD 4200 Series]
02:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Barts
PRO [ATI Radeon HD 6800 Series]
02:00.1 Audio device: Advanced Micro Devices [AMD] nee ATI Barts HDMI Audio
[Radeon HD 6800 Series]</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>