<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Invalid usage of vulkan pipeline barriers can cause amdgpu to deadlock"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105049#c7">Comment # 7</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Invalid usage of vulkan pipeline barriers can cause amdgpu to deadlock"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105049">bug 105049</a>
from <span class="vcard"><a class="email" href="mailto:samuel.pitoiset@gmail.com" title="Samuel Pitoiset <samuel.pitoiset@gmail.com>"> <span class="fn">Samuel Pitoiset</span></a>
</span></b>
<pre>Well, the validation layers report a bunch of errors with your app, like:
Validation layer: (F8) [ VUID-vkCmdEndRenderPass-commandBuffer-cmdpool ]
Object: 0x5638b8e4f6b0 (Type = 6) | Cannot call vkCmdEndRenderPass() on a
command buffer allocated from a pool without VK_QUEUE_GRAPHICS_BIT
capabilities.. The Vulkan spec states: The VkCommandPool that commandBuffer was
allocated from must support graphics operations
(<a href="https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-vkCmdEndRenderPass-commandBuffer-cmdpool">https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-vkCmdEndRenderPass-commandBuffer-cmdpool</a>)
Validation layer: (F8) [
UNASSIGNED-CoreValidation-DrawState-InvalidImageLayout ] Object: 0x5638b8279a80
(Type = 6) | Submitted command buffer expects image 0x3 (subresource:
aspectMask 0x1 array layer 0, mip level 0) to be in layout
VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL--instead, image 0x3's current layout
is VK_IMAGE_LAYOUT_UNDEFINED.
Validation layer: (F8) [ VUID-vkCmdBeginRenderPass-commandBuffer-cmdpool ]
Object: 0x5638b8e5a3f0 (Type = 6) | Cannot call vkCmdBeginRenderPass() on a
command buffer allocated from a pool without VK_QUEUE_GRAPHICS_BIT
capabilities.. The Vulkan spec states: The VkCommandPool that commandBuffer was
allocated from must support graphics operations
(<a href="https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-vkCmdBeginRenderPass-commandBuffer-cmdpool">https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-vkCmdBeginRenderPass-commandBuffer-cmdpool</a>)
As Vulkan is a low-level API, it's not surprising that the GPU hangs if you do
something bad. The first step is to *always* enable the validation layers in
order to make sure your application is correct. If after fixing all errors the
GPU still hangs with RADV, it might be a problem in the driver.
Feel free to re-open if the problem still happens after making sure you use the
API the right way.
Thanks!</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>