<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 - VK_FORMAT_A1R5G5B5_UNORM_PACK16 has red and blue swapped"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=104355">104355</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>VK_FORMAT_A1R5G5B5_UNORM_PACK16 has red and blue swapped
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>17.3
          </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/Vulkan/intel
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>hrydgard@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>jason@jlekstrand.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=136334" name="attach_136334" title="Image clearly showing a red/blue swap">attachment 136334</a> <a href="attachment.cgi?id=136334&action=edit" title="Image clearly showing a red/blue swap">[details]</a></span>
Image clearly showing a red/blue swap

The driver appears to swap the red and blue channels of
VK_FORMAT_A1R5G5B5_UNORM_PACK16  textures. As can be seen in the game Tales of
Eternia in my emulator PPSSPP:

<a href="https://user-images.githubusercontent.com/1274014/34218237-f0c1981a-e5ad-11e7-9b76-683a344c52fc.png">https://user-images.githubusercontent.com/1274014/34218237-f0c1981a-e5ad-11e7-9b76-683a344c52fc.png</a>

The game uses RGBA8888 textures for the background and ARGB1555 textures for
the characters. They look a bit blue and ill, which is obviously an R/B channel
swap. The colors are correct with the same code on other Vulkan
implementations, so this points strongly to A1R5G5B5 being defined wrong in the
driver.</pre>
        </div>
      </p>


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

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