Skip to content

Commit

Permalink
igl | vulkan | More stages handled in transitionLayout()
Browse files Browse the repository at this point in the history
Summary: More pipeline stages are handled in `transitionLayout()`.

Reviewed By: pixelperfect3

Differential Revision: D49659344

fbshipit-source-id: 83e0ea37d26226f819c7ef82b09c079d72fc5680
  • Loading branch information
corporateshark authored and facebook-github-bot committed Sep 27, 2023
1 parent 544985c commit 9abe2e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/igl/vulkan/VulkanImage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,7 @@ void VulkanImage::transitionLayout(VkCommandBuffer cmdBuf,
case VK_PIPELINE_STAGE_TRANSFER_BIT:
case VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT:
case VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT:
case VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT | VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT:
break;
default:
IGL_ASSERT_MSG(
Expand All @@ -679,9 +680,11 @@ void VulkanImage::transitionLayout(VkCommandBuffer cmdBuf,
srcAccessMask |= VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT;
}
if (srcStageMask & VK_PIPELINE_STAGE_TRANSFER_BIT) {
srcAccessMask |= VK_ACCESS_TRANSFER_READ_BIT;
srcAccessMask |= VK_ACCESS_TRANSFER_WRITE_BIT;
}
if (srcStageMask & VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT) {
srcAccessMask |= VK_ACCESS_SHADER_READ_BIT;
srcAccessMask |= VK_ACCESS_SHADER_WRITE_BIT;
}
if (srcStageMask & VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT) {
Expand Down

0 comments on commit 9abe2e5

Please sign in to comment.