<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Display artifacts related to DCC on radeonsi"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=105152">105152</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Display artifacts related to DCC on radeonsi
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>git
          </td>
        </tr>

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

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

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

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

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Drivers/Gallium/radeonsi
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>mario.kleiner@tuebingen.mpg.de
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>dri-devel@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=137424" name="attach_137424" title="apitrace exposing the problem in realtime replay">attachment 137424</a> <a href="attachment.cgi?id=137424&action=edit" title="apitrace exposing the problem in realtime replay">[details]</a></span>
apitrace exposing the problem in realtime replay

This i observe on radeonsi with a Volcanic Islands R9 380 TONGA with one
specific demo in my toolkit.

What the demo does is it renders between 1 and 5 textured quads on top of each
other, each quad with the same texture, but different texture coordinates and
"zoom". It uses alpha-blending with GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA to
blend the layers together. All in an endless animation that creates an
interesting "infinite zoom" effect.

Attached an apitrace of a few seconds of execution of the animation loop.

If the demo doesn't draw about more than 3 such quads per animation frame on
top of each other, the animation looks correct. With 5 quads i get some weird
dynamic noise in some parts of the displayed content, as if parts of the pixels
would somehow overflow and wrap around.

If one steps through the apitrace, looking up state at swapbuffers, each
rendered frame looks correct, but if one replays the trace in real-time, the
visual artifacts show up, so it doesn't seem to be a rendering problem, but
some kind of interaction with DCC?

If i set R600_DEBUG=nodccfb then all artifacts disappear.
Running on older Evergreen hw under r600 instead of radeonsi doesn't cause
these artifacts.

The problem was already present in some earlier Mesa version (17.2 as shipping
in Ubuntu 17.10), and is present in master.

Another way to reproduce is running the demo on a Debian/Ubuntu system via:

1. apt install octave-psychtoolbox-3
2. octave --eval ShepardZoomDemo

Source code of the demo under:

<a href="https://github.com/Psychtoolbox-3/Psychtoolbox-3/blob/master/Psychtoolbox/PsychDemos/OpenGL4MatlabDemos/ShepardZoomDemo.m">https://github.com/Psychtoolbox-3/Psychtoolbox-3/blob/master/Psychtoolbox/PsychDemos/OpenGL4MatlabDemos/ShepardZoomDemo.m</a></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>