<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 - [radeonsi] Dreamfall Chapters: one shader fails to compile, minor visual corruption"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=96602">96602</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[radeonsi] Dreamfall Chapters: one shader fails to compile, minor visual corruption
          </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>kai@dev.carbon-project.org
          </td>
        </tr>

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

        <tr>
          <th>Blocks</th>
          <td>77449
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=124625" name="attach_124625" title="DFC shader dump produced with R600_DEBUG=fs,vs,gs,ps,cs,tcs,tes">attachment 124625</a> <a href="attachment.cgi?id=124625&action=edit" title="DFC shader dump produced with R600_DEBUG=fs,vs,gs,ps,cs,tcs,tes">[details]</a></span>
DFC shader dump produced with R600_DEBUG=fs,vs,gs,ps,cs,tcs,tes

Since the release of book five of "Dreamfall Chapters: The longest Journey" and
their switch to a OpenGL 4.1+ context I'm getting the following error on load:
<span class="quote">> LLVM triggered Diagnostic Handler: Illegal instruction detected: Illegal immediate value for operand.
> LLVM failed to compile shader
> radeonsi: can't create a shader</span >
with the stack detailed below.

The game loads and book five is entirely playable. However almost all scenes
show minor visual corruption in the form of wrongly coloured pixels (not sure,
if the shader failing is responsible for that or if it's a different bug).
Usually in a very noticeable bright green (#0f0), but some other colours are
also observable (blue, yellow, red and few white and black ones as well). There
is only one scene during the epilogue where the character of ZoĆ« Castillo is
shown sitting on a balcony where a large part of the background shows wrong
colours (I would assume it should be metallic roofs reflecting sunlight but
instead they are just plain yellow and red where the light hits).

Attached to this bug you'll find a shader dump produced with
R600_DEBUG=fs,vs,gs,ps,cs,tcs,tes passed to the game. The dump is intermixed
with what the game/Unity3D wrote to STDERR. In fact this is identical to
Unity's Player.log. In lines 119284-119286 you'll find the error message quoted
above. Since the full log was several MBytes in size I compressed it with xz.

The stack used was (Debian testing, fully updated, as a base):
GPU: Hawaii PRO [Radeon R9 290] (ChipID = 0x67b1)
Mesa: Git:master/5a64549f54
libdrm: 2.4.68-1
LLVM: SVN:trunk/r272995 (3.9 devel)
X.Org: 2:1.18.3-1
Linux: 4.6.2
Firmware: firmware-amd-graphics/20160110-1
libclc: Git:master/20d977a3e6
DDX: 1:7.7.0-1</pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Tracker bug for all bugs related to Steam titles"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=77449">Bug 77449</a>] Tracker bug for all bugs related to Steam titles
              </li>
          </ul>
        </div>
        <br>

      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>