Lines Matching refs:src_image_state
2412 …::CopyImageMultiplaneValidation(VkCommandBuffer command_buffer, const IMAGE_STATE *src_image_state, in CopyImageMultiplaneValidation() argument
2417 …if ((!FormatIsMultiplane(src_image_state->createInfo.format)) && (!FormatIsMultiplane(dst_image_st… in CopyImageMultiplaneValidation()
2428 uint32_t planes = FormatPlaneCount(src_image_state->createInfo.format); in CopyImageMultiplaneValidation()
2444 …if ((!FormatIsMultiplane(src_image_state->createInfo.format)) && (FormatIsMultiplane(dst_image_sta… in CopyImageMultiplaneValidation()
2469 …if ((FormatIsMultiplane(src_image_state->createInfo.format)) && (!FormatIsMultiplane(dst_image_sta… in CopyImageMultiplaneValidation()
2485 const auto *src_image_state = GetImageState(srcImage); in PreCallValidateCmdCopyImage() local
2489 skip = ValidateImageCopyData(regionCount, pRegions, src_image_state, dst_image_state); in PreCallValidateCmdCopyImage()
2499 …GetAdjustedDestImageExtent(src_image_state->createInfo.format, dst_image_state->createInfo.format,… in PreCallValidateCmdCopyImage()
2506 if ((VK_IMAGE_TYPE_3D == src_image_state->createInfo.imageType) && in PreCallValidateCmdCopyImage()
2511 (VK_IMAGE_TYPE_3D != src_image_state->createInfo.imageType)) { in PreCallValidateCmdCopyImage()
2518 …skip |= ValidateImageMipLevel(cb_node, src_image_state, region.srcSubresource.mipLevel, i, "vkCmdC… in PreCallValidateCmdCopyImage()
2522 …skip |= ValidateImageArrayLayerRange(cb_node, src_image_state, region.srcSubresource.baseArrayLaye… in PreCallValidateCmdCopyImage()
2535 … (VK_IMAGE_TYPE_3D == src_image_state->createInfo.imageType ? src_copy_extent.depth in PreCallValidateCmdCopyImage()
2561 … skip |= CopyImageMultiplaneValidation(command_buffer, src_image_state, dst_image_state, region); in PreCallValidateCmdCopyImage()
2574 … if (!VerifyAspectsPresent(region.srcSubresource.aspectMask, src_image_state->createInfo.format)) { in PreCallValidateCmdCopyImage()
2592 if (src_image_state->createInfo.imageType == dst_image_state->createInfo.imageType) { in PreCallValidateCmdCopyImage()
2594 … VkExtent3D img_extent = GetImageSubresourceExtent(src_image_state, &(region.srcSubresource)); in PreCallValidateCmdCopyImage()
2619 …VkExtent3D subresource_extent = GetImageSubresourceExtent(src_image_state, &(region.srcSubresource… in PreCallValidateCmdCopyImage()
2677 if (src_image_state->image == dst_image_state->image) { in PreCallValidateCmdCopyImage()
2679 if (RegionIntersects(®ion, &pRegions[j], src_image_state->createInfo.imageType, in PreCallValidateCmdCopyImage()
2680 FormatIsMultiplane(src_image_state->createInfo.format))) { in PreCallValidateCmdCopyImage()
2693 …if (FormatIsDepthOrStencil(src_image_state->createInfo.format) || FormatIsDepthOrStencil(dst_image… in PreCallValidateCmdCopyImage()
2694 if (src_image_state->createInfo.format != dst_image_state->createInfo.format) { in PreCallValidateCmdCopyImage()
2700 …if (!FormatSizesAreEqual(src_image_state->createInfo.format, dst_image_state->createInfo.format, r… in PreCallValidateCmdCopyImage()
2708 if (src_image_state->createInfo.samples != dst_image_state->createInfo.samples) { in PreCallValidateCmdCopyImage()
2714 …skip |= ValidateMemoryIsBoundToImage(src_image_state, "vkCmdCopyImage()", "VUID-vkCmdCopyImage-src… in PreCallValidateCmdCopyImage()
2717 …skip |= ValidateImageUsageFlags(src_image_state, VK_IMAGE_USAGE_TRANSFER_SRC_BIT, true, "VUID-vkCm… in PreCallValidateCmdCopyImage()
2722 …skip |= ValidateImageFormatFeatureFlags(src_image_state, VK_FORMAT_FEATURE_TRANSFER_SRC_BIT, "vkCm… in PreCallValidateCmdCopyImage()
2732 …const char *invalid_src_layout_vuid = (src_image_state->shared_presentable && device_extensions.vk… in PreCallValidateCmdCopyImage()
2739 … skip |= VerifyImageLayout(cb_node, src_image_state, pRegions[i].srcSubresource, srcImageLayout, in PreCallValidateCmdCopyImage()
2745 …skip |= ValidateCopyImageTransferGranularityRequirements(cb_node, src_image_state, dst_image_state… in PreCallValidateCmdCopyImage()
2756 auto src_image_state = GetImageState(srcImage); in PreCallRecordCmdCopyImage() local
2760 AddCommandBufferBindingImage(cb_node, src_image_state); in PreCallRecordCmdCopyImage()
2770 auto src_image_state = GetImageState(srcImage); in PreCallRecordCmdCopyImage() local
2775 … SetImageInitialLayout(cb_node, *src_image_state, pRegions[i].srcSubresource, srcImageLayout); in PreCallRecordCmdCopyImage()
2974 const auto *src_image_state = GetImageState(srcImage); in PreCallValidateCmdResolveImage() local
2978 if (cb_node && src_image_state && dst_image_state) { in PreCallValidateCmdResolveImage()
2979 …skip |= ValidateMemoryIsBoundToImage(src_image_state, "vkCmdResolveImage()", "VUID-vkCmdResolveIma… in PreCallValidateCmdResolveImage()
2990 … (src_image_state->shared_presentable && device_extensions.vk_khr_shared_presentable_image) in PreCallValidateCmdResolveImage()
3004 … skip |= VerifyImageLayout(cb_node, src_image_state, pRegions[i].srcSubresource, srcImageLayout, in PreCallValidateCmdResolveImage()
3010 …skip |= ValidateImageMipLevel(cb_node, src_image_state, pRegions[i].srcSubresource.mipLevel, i, "v… in PreCallValidateCmdResolveImage()
3014 …skip |= ValidateImageArrayLayerRange(cb_node, src_image_state, pRegions[i].srcSubresource.baseArra… in PreCallValidateCmdResolveImage()
3038 if (src_image_state->createInfo.format != dst_image_state->createInfo.format) { in PreCallValidateCmdResolveImage()
3043 if (src_image_state->createInfo.imageType != dst_image_state->createInfo.imageType) { in PreCallValidateCmdResolveImage()
3048 if (src_image_state->createInfo.samples == VK_SAMPLE_COUNT_1_BIT) { in PreCallValidateCmdResolveImage()
3069 auto src_image_state = GetImageState(srcImage); in PreCallRecordCmdResolveImage() local
3073 AddCommandBufferBindingImage(cb_node, src_image_state); in PreCallRecordCmdResolveImage()
3081 const auto *src_image_state = GetImageState(srcImage); in PreCallValidateCmdBlitImage() local
3088 if (cb_node && src_image_state && dst_image_state) { in PreCallValidateCmdBlitImage()
3089 …skip |= ValidateImageSampleCount(src_image_state, VK_SAMPLE_COUNT_1_BIT, "vkCmdBlitImage(): srcIma… in PreCallValidateCmdBlitImage()
3093 …skip |= ValidateMemoryIsBoundToImage(src_image_state, "vkCmdBlitImage()", "VUID-vkCmdBlitImage-src… in PreCallValidateCmdBlitImage()
3096 …ValidateImageUsageFlags(src_image_state, VK_IMAGE_USAGE_TRANSFER_SRC_BIT, true, "VUID-vkCmdBlitIma… in PreCallValidateCmdBlitImage()
3105 …skip |= ValidateImageFormatFeatureFlags(src_image_state, VK_FORMAT_FEATURE_BLIT_SRC_BIT, "vkCmdBli… in PreCallValidateCmdBlitImage()
3112 VkFormat src_format = src_image_state->createInfo.format; in PreCallValidateCmdBlitImage()
3114 VkImageType src_type = src_image_state->createInfo.imageType; in PreCallValidateCmdBlitImage()
3118 …skip |= ValidateImageFormatFeatureFlags(src_image_state, VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LI… in PreCallValidateCmdBlitImage()
3122 …skip |= ValidateImageFormatFeatureFlags(src_image_state, VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CU… in PreCallValidateCmdBlitImage()
3133 if ((VK_SAMPLE_COUNT_1_BIT != src_image_state->createInfo.samples) || in PreCallValidateCmdBlitImage()
3185 … (src_image_state->shared_presentable && device_extensions.vk_khr_shared_presentable_image) in PreCallValidateCmdBlitImage()
3195 skip |= VerifyImageLayout(cb_node, src_image_state, rgn.srcSubresource, srcImageLayout, in PreCallValidateCmdBlitImage()
3203 …skip |= ValidateImageMipLevel(cb_node, src_image_state, rgn.srcSubresource.mipLevel, i, "vkCmdBlit… in PreCallValidateCmdBlitImage()
3207 … skip |= ValidateImageArrayLayerRange(cb_node, src_image_state, rgn.srcSubresource.baseArrayLayer, in PreCallValidateCmdBlitImage()
3262 … VkExtent3D src_extent = GetImageSubresourceExtent(src_image_state, &(rgn.srcSubresource)); in PreCallValidateCmdBlitImage()
3397 auto src_image_state = GetImageState(srcImage); in PreCallRecordCmdBlitImage() local
3401 AddCommandBufferBindingImage(cb_node, src_image_state); in PreCallRecordCmdBlitImage()
3411 auto src_image_state = GetImageState(srcImage); in PreCallRecordCmdBlitImage() local
3416 … SetImageInitialLayout(cb_node, *src_image_state, pRegions[i].srcSubresource, srcImageLayout); in PreCallRecordCmdBlitImage()
4968 const auto src_image_state = GetImageState(srcImage); in PreCallValidateCmdCopyImageToBuffer() local
4971 …bool skip = ValidateBufferImageCopyData(regionCount, pRegions, src_image_state, "vkCmdCopyImageToB… in PreCallValidateCmdCopyImageToBuffer()
4987 …skip |= ValidateImageBounds(report_data, src_image_state, regionCount, pRegions, "vkCmdCopyImageTo… in PreCallValidateCmdCopyImageToBuffer()
4989 …skip |= ValidateBufferBounds(report_data, src_image_state, dst_buffer_state, regionCount, pRegions… in PreCallValidateCmdCopyImageToBuffer()
4992 …skip |= ValidateImageSampleCount(src_image_state, VK_SAMPLE_COUNT_1_BIT, "vkCmdCopyImageToBuffer()… in PreCallValidateCmdCopyImageToBuffer()
4994 …skip |= ValidateMemoryIsBoundToImage(src_image_state, "vkCmdCopyImageToBuffer()", "VUID-vkCmdCopyI… in PreCallValidateCmdCopyImageToBuffer()
4999 skip |= ValidateImageUsageFlags(src_image_state, VK_IMAGE_USAGE_TRANSFER_SRC_BIT, true, in PreCallValidateCmdCopyImageToBuffer()
5006 …skip |= ValidateImageFormatFeatureFlags(src_image_state, VK_FORMAT_FEATURE_TRANSFER_SRC_BIT, "vkCm… in PreCallValidateCmdCopyImageToBuffer()
5012 …const char *src_invalid_layout_vuid = (src_image_state->shared_presentable && device_extensions.vk… in PreCallValidateCmdCopyImageToBuffer()
5018 … skip |= VerifyImageLayout(cb_node, src_image_state, pRegions[i].imageSubresource, srcImageLayout, in PreCallValidateCmdCopyImageToBuffer()
5022 …cb_node, src_image_state, &pRegions[i], i, "vkCmdCopyImageToBuffer()", "VUID-vkCmdCopyImageToBuffe… in PreCallValidateCmdCopyImageToBuffer()
5024 …ValidateImageMipLevel(cb_node, src_image_state, pRegions[i].imageSubresource.mipLevel, i, "vkCmdCo… in PreCallValidateCmdCopyImageToBuffer()
5026 …skip |= ValidateImageArrayLayerRange(cb_node, src_image_state, pRegions[i].imageSubresource.baseAr… in PreCallValidateCmdCopyImageToBuffer()
5037 auto src_image_state = GetImageState(srcImage); in PreCallRecordCmdCopyImageToBuffer() local
5041 AddCommandBufferBindingImage(cb_node, src_image_state); in PreCallRecordCmdCopyImageToBuffer()
5049 auto src_image_state = GetImageState(srcImage); in PreCallRecordCmdCopyImageToBuffer() local
5052 … SetImageInitialLayout(cb_node, *src_image_state, pRegions[i].imageSubresource, srcImageLayout); in PreCallRecordCmdCopyImageToBuffer()