Lines Matching refs:img_barrier
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()
759 (img_barrier.oldLayout != VK_IMAGE_LAYOUT_UNDEFINED)) { in ValidateBarriersToImages()
760 const VkImageSubresourceRange &range = img_barrier.subresourceRange; in ValidateBarriersToImages()
767 …unc_name, barrier_pname.c_str(), entry.index, report_data->FormatHandle(img_barrier.image).c_str(), in ValidateBarriersToImages()
769 … string_VkImageLayout(img_barrier.oldLayout), string_VkImageLayout(entry.barrier->newLayout)); in ValidateBarriersToImages()
773 subres_map[img_barrier.subresourceRange] = new_entry; in ValidateBarriersToImages()
776 layout_transitions[img_barrier.image][img_barrier.subresourceRange] = new_entry; in ValidateBarriersToImages()
780 auto image_state = GetImageState(img_barrier.image); in ValidateBarriersToImages()
783 …skip |= ValidateBarrierLayoutToImageUsage(img_barrier, false, usage_flags, func_name, barrier_pnam… in ValidateBarriersToImages()
784 …skip |= ValidateBarrierLayoutToImageUsage(img_barrier, true, usage_flags, func_name, barrier_pname… in ValidateBarriersToImages()
791 HandleToUint64(img_barrier.image), 0, in ValidateBarriersToImages()
794 … report_data->FormatHandle(img_barrier.image).c_str(), string_VkImageLayout(img_barrier.oldLayout), in ValidateBarriersToImages()
795 string_VkImageLayout(img_barrier.newLayout)); in ValidateBarriersToImages()
801 auto const aspect_mask = img_barrier.subresourceRange.aspectMask; in ValidateBarriersToImages()
805 … HandleToUint64(img_barrier.image), "VUID-VkImageMemoryBarrier-image-01207", in ValidateBarriersToImages()
808 … func_name, barrier_pname.c_str(), report_data->FormatHandle(img_barrier.image).c_str(), in ValidateBarriersToImages()
813 const auto *subresource_map = GetImageSubresourceLayoutMap(cb_state, img_barrier.image); in ValidateBarriersToImages()
814 if (img_barrier.oldLayout == VK_IMAGE_LAYOUT_UNDEFINED) { in ValidateBarriersToImages()
821 …resourceRange normalized_isr = NormalizeSubresourceRange(*image_state, img_barrier.subresourceRang… in ValidateBarriersToImages()
822 auto subres_callback = [this, img_barrier, cb_state, &layout_check, &subres_skip]( in ValidateBarriersToImages()
824 … if (!layout_check.Check(subres, img_barrier.oldLayout, layout, initial_layout)) { in ValidateBarriersToImages()
830 … report_data->FormatHandle(img_barrier.image).c_str(), subres.aspectMask, subres.mipLevel, in ValidateBarriersToImages()
831 … subres.arrayLayer, string_VkImageLayout(img_barrier.oldLayout), layout_check.message, in ValidateBarriersToImages()