mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 11:00:11 +01:00
radv: ignore subpass self-dependencies
Unnecessary as they allow the app to call vkCmdPipelineBarrier() inside the render pass. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
8e73b57634
commit
457ac6ce1e
1 changed files with 10 additions and 0 deletions
|
|
@ -337,7 +337,17 @@ VkResult radv_CreateRenderPass2KHR(
|
|||
}
|
||||
|
||||
for (unsigned i = 0; i < pCreateInfo->dependencyCount; ++i) {
|
||||
uint32_t src = pCreateInfo->pDependencies[i].srcSubpass;
|
||||
uint32_t dst = pCreateInfo->pDependencies[i].dstSubpass;
|
||||
|
||||
/* Ignore subpass self-dependencies as they allow the app to
|
||||
* call vkCmdPipelineBarrier() inside the render pass and the
|
||||
* driver should only do the barrier when called, not when
|
||||
* starting the render pass.
|
||||
*/
|
||||
if (src == dst)
|
||||
continue;
|
||||
|
||||
if (dst == VK_SUBPASS_EXTERNAL) {
|
||||
pass->end_barrier.src_stage_mask = pCreateInfo->pDependencies[i].srcStageMask;
|
||||
pass->end_barrier.src_access_mask = pCreateInfo->pDependencies[i].srcAccessMask;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue