<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 - vkBindImageMemory doesn't take into account the offset when the image is used as a depth buffer"
href="https://bugs.freedesktop.org/show_bug.cgi?id=94348">94348</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>vkBindImageMemory doesn't take into account the offset when the image is used as a depth buffer
</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/intel
</td>
</tr>
<tr>
<th>Assignee</th>
<td>intel-3d-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>bpeeluk@yahoo.co.uk
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>intel-3d-bugs@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>In cmd_buffer_emit_depth_stencil it is using image->depth_surface.offset but
only image->offset gets updated during vkBindImageMemory.
I bumped into this because I was lazily using a single allocation for both the
depth buffer and the color buffer in this project here:
<a href="https://github.com/bpeel/finvenkisto/tree/vulkan">https://github.com/bpeel/finvenkisto/tree/vulkan</a> (the vulkan branch of it)
The depth buffer ends up overlapping with the color buffer and it makes some
funky effects. If I change cmd_buffer_emit_depth_stencil to use image->offset
instead then it works, but I don't know if that's the correct solution.</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>