summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorziga-lunarg <ziga@lunarg.com>2023-10-11 13:41:03 +0200
committerziga-lunarg <87310389+ziga-lunarg@users.noreply.github.com>2023-10-11 19:20:12 +0200
commit159c6a251832ce4e496561df8470b3728669f815 (patch)
tree4a5a7bcc75d978dfbabc48627168e6de18462707
parent86846ebeddb484e5529ab9c4879a615fec4ef90b (diff)
downloadVulkan-ValidationLayers-159c6a251832ce4e496561df8470b3728669f815.tar.gz
Vulkan-ValidationLayers-159c6a251832ce4e496561df8470b3728669f815.tar.bz2
Vulkan-ValidationLayers-159c6a251832ce4e496561df8470b3728669f815.zip
tests: Test sync2 access mask in best practice
-rw-r--r--tests/unit/best_practices.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/unit/best_practices.cpp b/tests/unit/best_practices.cpp
index 9da239a30..dada18df4 100644
--- a/tests/unit/best_practices.cpp
+++ b/tests/unit/best_practices.cpp
@@ -2270,6 +2270,10 @@ TEST_F(VkBestPracticesLayerTest, ImageMemoryBarrierAccessLayoutCombinations) {
dependency_info.imageMemoryBarrierCount = 1;
dependency_info.pImageMemoryBarriers = &img_barrier2;
+ img_barrier2.dstAccessMask = VK_ACCESS_2_SHADER_SAMPLED_READ_BIT;
+ img_barrier2.newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL;
+ vk::CmdPipelineBarrier2KHR(m_commandBuffer->handle(), &dependency_info);
+
img_barrier2.dstAccessMask = VK_ACCESS_INPUT_ATTACHMENT_READ_BIT;
img_barrier2.newLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;