<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 - RADV/Vega: Low mip levels of large BCn textures get corrupted by vkCmdCopyBufferToImage"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=108245">108245</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>RADV/Vega: Low mip levels of large BCn textures get corrupted by vkCmdCopyBufferToImage
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>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/radeon
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>asmith@feralinteractive.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=141899" name="attach_141899" title="Test case">attachment 141899</a> <a href="attachment.cgi?id=141899&action=edit" title="Test case">[details]</a></span>
Test case

On Vega, the lowest mip levels (with at least one dimension smaller than the
block size) of large block compressed textures can get corrupted when data is
copied to them with vkCmdCopyBufferToImage(). It seems as though it only
affects textures with non-power-of-two size, and also doesn't occur on smaller
textures (1024x3072 is affected but 32x96 is not).

The attached test case creates a 1024x3072 BC1_SRGB texture, with a complete
mip chain, and then uses vkCmdCopyBufferToImage() to initialise each mip level
with zero data. It then draws a quad sampling from mip level 9 (2x6) of that
texture. This should render black, but instead it usually renders garbage (for
example see the attached screenshot). Sometimes, though, it does correctly
render black.

If a RenderDoc capture is taken you can see that mip levels 9 to 12 are all
corrupted.

Reproduces on Vega 64 with Mesa git 5f0567a4f6 and 18.2, with LLVM 7.0. Doesn't
occur on non-Vega cards, or on AMDVLK.</pre>
        </div>
      </p>


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

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