Lines Matching refs:img_barrier
681 …ValidateBarrierLayoutToImageUsage(layer_data *device_data, const VkImageMemoryBarrier *img_barrier, in ValidateBarrierLayoutToImageUsage() argument
684 const VkImageLayout layout = (new_not_old) ? img_barrier->newLayout : img_barrier->oldLayout; in ValidateBarrierLayoutToImageUsage()
730 HandleToUint64(img_barrier->image), msg_code, in ValidateBarrierLayoutToImageUsage()
732 …static_cast<const void *>(img_barrier), ((new_not_old) ? "new" : "old"), string_VkImageLayout(layo… in ValidateBarrierLayoutToImageUsage()
733 report_data->FormatHandle(img_barrier->image).c_str(), usage_flags); in ValidateBarrierLayoutToImageUsage()
758 auto img_barrier = &pImageMemoryBarriers[i]; in ValidateBarriersToImages() local
759 if (!img_barrier) continue; in ValidateBarriersToImages()
764 if (img_barrier->oldLayout != img_barrier->newLayout) { in ValidateBarriersToImages()
765 ImageBarrierScoreboardEntry new_entry{i, img_barrier}; in ValidateBarriersToImages()
766 auto image_it = layout_transitions.find(img_barrier->image); in ValidateBarriersToImages()
769 auto subres_it = subres_map.find(img_barrier->subresourceRange); in ValidateBarriersToImages()
772 if ((entry.barrier->newLayout != img_barrier->oldLayout) && in ValidateBarriersToImages()
773 (img_barrier->oldLayout != VK_IMAGE_LAYOUT_UNDEFINED)) { in ValidateBarriersToImages()
774 const VkImageSubresourceRange &range = img_barrier->subresourceRange; in ValidateBarriersToImages()
781 …func_name, i, entry.index, report_data->FormatHandle(img_barrier->image).c_str(), range.aspectMask, in ValidateBarriersToImages()
783 … string_VkImageLayout(img_barrier->oldLayout), string_VkImageLayout(entry.barrier->newLayout)); in ValidateBarriersToImages()
787 subres_map[img_barrier->subresourceRange] = new_entry; in ValidateBarriersToImages()
790 layout_transitions[img_barrier->image][img_barrier->subresourceRange] = new_entry; in ValidateBarriersToImages()
794 auto image_state = GetImageState(img_barrier->image); in ValidateBarriersToImages()
797 …skip |= ValidateBarrierLayoutToImageUsage(device_data, img_barrier, false, usage_flags, func_name); in ValidateBarriersToImages()
798 … skip |= ValidateBarrierLayoutToImageUsage(device_data, img_barrier, true, usage_flags, func_name); in ValidateBarriersToImages()
805 HandleToUint64(img_barrier->image), 0, in ValidateBarriersToImages()
808 …report_data->FormatHandle(img_barrier->image).c_str(), string_VkImageLayout(img_barrier->oldLayout… in ValidateBarriersToImages()
809 string_VkImageLayout(img_barrier->newLayout)); in ValidateBarriersToImages()
813 VkImageCreateInfo *image_create_info = &(GetImageState(img_barrier->image)->createInfo); in ValidateBarriersToImages()
816 auto const aspect_mask = img_barrier->subresourceRange.aspectMask; in ValidateBarriersToImages()
820 … HandleToUint64(img_barrier->image), "VUID-VkImageMemoryBarrier-image-01207", in ValidateBarriersToImages()
823 func_name, static_cast<const void *>(img_barrier), in ValidateBarriersToImages()
824 … report_data->FormatHandle(img_barrier->image).c_str(), string_VkFormat(image_create_info->format), in ValidateBarriersToImages()
828 …uint32_t level_count = ResolveRemainingLevels(&img_barrier->subresourceRange, image_create_info->m… in ValidateBarriersToImages()
829 …uint32_t layer_count = ResolveRemainingLayers(&img_barrier->subresourceRange, image_create_info->a… in ValidateBarriersToImages()
832 uint32_t level = img_barrier->subresourceRange.baseMipLevel + j; in ValidateBarriersToImages()
834 uint32_t layer = img_barrier->subresourceRange.baseArrayLayer + k; in ValidateBarriersToImages()
835 …skip |= ValidateImageAspectLayout(device_data, cb_state, img_barrier, level, layer, VK_IMAGE_ASPEC… in ValidateBarriersToImages()
836 …skip |= ValidateImageAspectLayout(device_data, cb_state, img_barrier, level, layer, VK_IMAGE_ASPEC… in ValidateBarriersToImages()
837 …skip |= ValidateImageAspectLayout(device_data, cb_state, img_barrier, level, layer, VK_IMAGE_ASPEC… in ValidateBarriersToImages()
838 …skip |= ValidateImageAspectLayout(device_data, cb_state, img_barrier, level, layer, VK_IMAGE_ASPEC… in ValidateBarriersToImages()
840 … skip |= ValidateImageAspectLayout(device_data, cb_state, img_barrier, level, layer, in ValidateBarriersToImages()
842 … skip |= ValidateImageAspectLayout(device_data, cb_state, img_barrier, level, layer, in ValidateBarriersToImages()
844 … skip |= ValidateImageAspectLayout(device_data, cb_state, img_barrier, level, layer, in ValidateBarriersToImages()