<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 - [IVB,SKL] vulkan: stride/tiling issue with vkCmdCopyBufferToImage from larger source buffer into destination image"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=95292">95292</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[IVB,SKL] vulkan: stride/tiling issue with vkCmdCopyBufferToImage from larger source buffer into destination image
          </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/Vulkan/intel
          </td>
        </tr>

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

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

        <tr>
          <th>QA Contact</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=123518" name="attach_123518" title="vkCmdCopyBufferToImage failure">attachment 123518</a> <a href="attachment.cgi?id=123518&action=edit" title="vkCmdCopyBufferToImage failure">[details]</a></span>
vkCmdCopyBufferToImage failure

When copying from a larger buffer to a smaller image, there is some combination
of stride/tiling mismatches that results in bad output.

The attached screenshot is using a 385x240 BGRA VkBuffer as the source and a
320x240 VkImage (from the swapchain) as the destination.  Using anything <= 384
for the width of the source VkBuffer doesn't exhibit this issue anything
greater than 384 does.  Changing the height of the source VkBuffer has no
effect on the stride mismatch.

Using:
- mesa from git be5010c
- libdrm 2.4.67-2
- Linux kernel 4.5.1-1-ARCH x86_64
- Both Ivy Bridge and Skylake chips
- <a href="https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/ext/vulkan">https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/ext/vulkan</a>

Test application:
gst-launch-1.0 videotestsrc ! video/x-raw,width=385 ! vulkanupload ! vulkansink</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>