Skip to content

Commit

Permalink
igl | Fix unused variables within VulkanImage when building without a…
Browse files Browse the repository at this point in the history
…sserts.

Summary: Always written to, never read from, IFF the asserts are disabled.

Reviewed By: corporateshark

Differential Revision: D62555941

fbshipit-source-id: 75a587f77ba530710c375c914dc49988ce0a2f05
  • Loading branch information
nlutsenko authored and facebook-github-bot committed Sep 12, 2024
1 parent 162cee7 commit 6bd56d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/igl/vulkan/VulkanImage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,7 @@ void VulkanImage::transitionLayout(VkCommandBuffer cmdBuf,
srcRemainingMask &= ~VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT;
}

(void)srcRemainingMask;
IGL_ASSERT_MSG(
srcRemainingMask == 0,
"Automatic access mask deduction is not implemented (yet) for this srcStageMask = %u",
Expand Down Expand Up @@ -942,6 +943,7 @@ void VulkanImage::transitionLayout(VkCommandBuffer cmdBuf,
dstRemainingMask &= ~VK_PIPELINE_STAGE_TRANSFER_BIT;
}

(void)dstRemainingMask;
IGL_ASSERT_MSG(
dstRemainingMask == 0,
"Automatic access mask deduction is not implemented (yet) for this dstStageMask = %u",
Expand Down

0 comments on commit 6bd56d9

Please sign in to comment.