/external/vulkan-validation-layers/tests/ |
D | vklayertests_buffer_image_memory_sampler.cpp | 1860 VkImageMemoryBarrier img_barrier = {}; in TEST_F() local 1861 img_barrier.sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; in TEST_F() 1862 img_barrier.pNext = nullptr; in TEST_F() 1863 img_barrier.srcAccessMask = 0; in TEST_F() 1864 img_barrier.dstAccessMask = 0; in TEST_F() 1865 img_barrier.oldLayout = VK_IMAGE_LAYOUT_GENERAL; in TEST_F() 1866 img_barrier.newLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL; in TEST_F() 1867 img_barrier.image = img_general.handle(); in TEST_F() 1868 img_barrier.srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED; in TEST_F() 1869 img_barrier.dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED; in TEST_F() [all …]
|
D | vkpositivelayertests.cpp | 1954 VkImageMemoryBarrier img_barrier = {}; in TEST_F() local 1955 img_barrier.sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; in TEST_F() 1956 img_barrier.srcAccessMask = VK_ACCESS_HOST_WRITE_BIT; in TEST_F() 1957 img_barrier.dstAccessMask = VK_ACCESS_SHADER_READ_BIT; in TEST_F() 1958 img_barrier.oldLayout = VK_IMAGE_LAYOUT_UNDEFINED; in TEST_F() 1959 img_barrier.newLayout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL; in TEST_F() 1960 img_barrier.image = image.handle(); in TEST_F() 1961 img_barrier.srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED; in TEST_F() 1962 img_barrier.dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED; in TEST_F() 1963 … img_barrier.subresourceRange.aspectMask = VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT; in TEST_F() [all …]
|
D | vklayertests_others.cpp | 2917 VkImageMemoryBarrier img_barrier = {}; in TEST_F() local 2918 img_barrier.sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; in TEST_F() 2919 img_barrier.pNext = nullptr; in TEST_F() 2920 img_barrier.srcAccessMask = 0; in TEST_F() 2921 img_barrier.dstAccessMask = 0; in TEST_F() 2922 img_barrier.oldLayout = VK_IMAGE_LAYOUT_GENERAL; in TEST_F() 2923 img_barrier.newLayout = VK_IMAGE_LAYOUT_SHADING_RATE_OPTIMAL_NV; in TEST_F() 2924 img_barrier.image = nonSRIimage.handle(); in TEST_F() 2925 img_barrier.srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED; in TEST_F() 2926 img_barrier.dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED; in TEST_F() [all …]
|
D | vklayertests_command.cpp | 134 VkImageMemoryBarrier img_barrier = {}; in TEST_F() local 135 img_barrier.sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; in TEST_F() 136 img_barrier.srcAccessMask = VK_ACCESS_SHADER_WRITE_BIT; in TEST_F() 137 img_barrier.dstAccessMask = VK_ACCESS_SHADER_WRITE_BIT; in TEST_F() 138 img_barrier.oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; in TEST_F() 139 img_barrier.newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; in TEST_F() 140 img_barrier.image = image2.handle(); // Image mis-matches with FB image in TEST_F() 141 img_barrier.srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED; in TEST_F() 142 img_barrier.dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED; in TEST_F() 143 img_barrier.subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; in TEST_F() [all …]
|
D | layer_validation_tests.cpp | 267 const VkImageMemoryBarrier *img_barrier) { in ValidOwnershipTransferOp() argument 271 uint32_t num_img_barrier = (img_barrier) ? 1 : 0; in ValidOwnershipTransferOp() 272 …src_stages, dst_stages, 0, 0, nullptr, num_buf_barrier, buf_barrier, num_img_barrier, img_barrier); in ValidOwnershipTransferOp() 280 … const VkBufferMemoryBarrier *buf_barrier, const VkImageMemoryBarrier *img_barrier) { in ValidOwnershipTransfer() argument 281 ValidOwnershipTransferOp(monitor, cb_from, src_stages, dst_stages, buf_barrier, img_barrier); in ValidOwnershipTransfer() 282 ValidOwnershipTransferOp(monitor, cb_to, src_stages, dst_stages, buf_barrier, img_barrier); in ValidOwnershipTransfer()
|
D | layer_validation_tests.h | 756 const VkImageMemoryBarrier *img_barrier); 760 … const VkBufferMemoryBarrier *buf_barrier, const VkImageMemoryBarrier *img_barrier);
|
D | vklayertests_descriptor_renderpass_framebuffer.cpp | 1541 VkImageMemoryBarrier img_barrier = {}; in TEST_F() local 1542 img_barrier.sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; in TEST_F() 1543 img_barrier.srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; in TEST_F() 1544 img_barrier.dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; in TEST_F() 1545 img_barrier.oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; in TEST_F() 1546 img_barrier.newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; in TEST_F() 1547 img_barrier.image = image.handle(); /* barrier references image from attachment index 0 */ in TEST_F() 1548 img_barrier.srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED; in TEST_F() 1549 img_barrier.dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED; in TEST_F() 1550 img_barrier.subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; in TEST_F() [all …]
|
/external/vulkan-validation-layers/layers/ |
D | buffer_validation.cpp | 666 bool CoreChecks::ValidateBarrierLayoutToImageUsage(const VkImageMemoryBarrier &img_barrier, bool ne… in ValidateBarrierLayoutToImageUsage() argument 670 const VkImageLayout layout = (new_not_old) ? img_barrier.newLayout : img_barrier.oldLayout; in ValidateBarrierLayoutToImageUsage() 716 HandleToUint64(img_barrier.image), msg_code, in ValidateBarrierLayoutToImageUsage() 719 report_data->FormatHandle(img_barrier.image).c_str(), usage_flags); in ValidateBarrierLayoutToImageUsage() 744 const auto &img_barrier = pImageMemoryBarriers[i]; in ValidateBarriersToImages() local 750 if (img_barrier.oldLayout != img_barrier.newLayout) { in ValidateBarriersToImages() 751 const ImageBarrierScoreboardEntry new_entry{i, &img_barrier}; in ValidateBarriersToImages() 752 const auto image_it = layout_transitions.find(img_barrier.image); in ValidateBarriersToImages() 755 auto subres_it = subres_map.find(img_barrier.subresourceRange); in ValidateBarriersToImages() 758 if ((entry.barrier->newLayout != img_barrier.oldLayout) && in ValidateBarriersToImages() [all …]
|
D | core_validation.cpp | 8051 const VkImageMemoryBarrier &img_barrier) { in ValidateImageBarrierImage() argument 8055 const auto img_bar_image = img_barrier.image; in ValidateImageBarrierImage() 8109 if (img_barrier.oldLayout != img_barrier.newLayout) { in ValidateImageBarrierImage() 8114 …funcName, report_data->FormatHandle(img_barrier.image).c_str(), string_VkImageLayout(img_barrier.o… in ValidateImageBarrierImage() 8115 string_VkImageLayout(img_barrier.newLayout)); in ValidateImageBarrierImage() 8117 if (sub_image_found && sub_image_layout != img_barrier.oldLayout) { in ValidateImageBarrierImage() 8124 string_VkImageLayout(img_barrier.oldLayout)); in ValidateImageBarrierImage() 8138 const auto &img_barrier = image_barriers[i]; in ValidateRenderPassImageBarriers() local 8139 const auto &img_src_access_mask = img_barrier.srcAccessMask; in ValidateRenderPassImageBarriers() 8140 const auto &img_dst_access_mask = img_barrier.dstAccessMask; in ValidateRenderPassImageBarriers() [all …]
|
D | core_validation.h | 964 … const VulkanTypedHandle& rp_handle, uint32_t img_index, const VkImageMemoryBarrier& img_barrier); 1410 …bool ValidateBarrierLayoutToImageUsage(const VkImageMemoryBarrier& img_barrier, bool new_not_old, …
|