Lines Matching refs:pRegions
2483 const VkImageCopy *pRegions) { in PreCallValidateCmdCopyImage() argument
2489 skip = ValidateImageCopyData(regionCount, pRegions, src_image_state, dst_image_state); in PreCallValidateCmdCopyImage()
2494 const VkImageCopy region = pRegions[i]; in PreCallValidateCmdCopyImage()
2679 if (RegionIntersects(®ion, &pRegions[j], src_image_state->createInfo.imageType, in PreCallValidateCmdCopyImage()
2700 …l(src_image_state->createInfo.format, dst_image_state->createInfo.format, regionCount, pRegions)) { in PreCallValidateCmdCopyImage()
2739 … skip |= VerifyImageLayout(cb_node, src_image_state, pRegions[i].srcSubresource, srcImageLayout, in PreCallValidateCmdCopyImage()
2742 … skip |= VerifyImageLayout(cb_node, dst_image_state, pRegions[i].dstSubresource, dstImageLayout, in PreCallValidateCmdCopyImage()
2745 …opyImageTransferGranularityRequirements(cb_node, src_image_state, dst_image_state, &pRegions[i], i, in PreCallValidateCmdCopyImage()
2754 … uint32_t regionCount, const VkImageCopy *pRegions) { in PreCallRecordCmdCopyImage() argument
2766 const VkImageCopy *pRegions) { in PreCallRecordCmdCopyImage() argument
2768 pRegions); in PreCallRecordCmdCopyImage()
2775 … SetImageInitialLayout(cb_node, *src_image_state, pRegions[i].srcSubresource, srcImageLayout); in PreCallRecordCmdCopyImage()
2776 … SetImageInitialLayout(cb_node, *dst_image_state, pRegions[i].dstSubresource, dstImageLayout); in PreCallRecordCmdCopyImage()
2972 const VkImageResolve *pRegions) { in PreCallValidateCmdResolveImage() argument
3001 …ValidateImageSubresourceLayers(cb_node, &pRegions[i].srcSubresource, "vkCmdResolveImage()", "srcSu… in PreCallValidateCmdResolveImage()
3003 …ValidateImageSubresourceLayers(cb_node, &pRegions[i].dstSubresource, "vkCmdResolveImage()", "dstSu… in PreCallValidateCmdResolveImage()
3004 … skip |= VerifyImageLayout(cb_node, src_image_state, pRegions[i].srcSubresource, srcImageLayout, in PreCallValidateCmdResolveImage()
3007 … skip |= VerifyImageLayout(cb_node, dst_image_state, pRegions[i].dstSubresource, dstImageLayout, in PreCallValidateCmdResolveImage()
3010 …skip |= ValidateImageMipLevel(cb_node, src_image_state, pRegions[i].srcSubresource.mipLevel, i, "v… in PreCallValidateCmdResolveImage()
3012 …skip |= ValidateImageMipLevel(cb_node, dst_image_state, pRegions[i].dstSubresource.mipLevel, i, "v… in PreCallValidateCmdResolveImage()
3014 …skip |= ValidateImageArrayLayerRange(cb_node, src_image_state, pRegions[i].srcSubresource.baseArra… in PreCallValidateCmdResolveImage()
3015 … pRegions[i].srcSubresource.layerCount, i, "vkCmdResolveImage()", "srcSubresource", in PreCallValidateCmdResolveImage()
3017 …skip |= ValidateImageArrayLayerRange(cb_node, dst_image_state, pRegions[i].dstSubresource.baseArra… in PreCallValidateCmdResolveImage()
3018 … pRegions[i].dstSubresource.layerCount, i, "vkCmdResolveImage()", "srcSubresource", in PreCallValidateCmdResolveImage()
3022 if (pRegions[i].srcSubresource.layerCount != pRegions[i].dstSubresource.layerCount) { in PreCallValidateCmdResolveImage()
3029 if ((pRegions[i].srcSubresource.aspectMask != VK_IMAGE_ASPECT_COLOR_BIT) || in PreCallValidateCmdResolveImage()
3030 (pRegions[i].dstSubresource.aspectMask != VK_IMAGE_ASPECT_COLOR_BIT)) { in PreCallValidateCmdResolveImage()
3067 const VkImageResolve *pRegions) { in PreCallRecordCmdResolveImage() argument
3079 const VkImageBlit *pRegions, VkFilter filter) { in PreCallValidateCmdBlitImage() argument
3193 const VkImageBlit rgn = pRegions[i]; in PreCallValidateCmdBlitImage()
3395 … uint32_t regionCount, const VkImageBlit *pRegions, VkFilter filter) { in PreCallRecordCmdBlitImage() argument
3407 const VkImageBlit *pRegions, VkFilter filter) { in PreCallRecordCmdBlitImage() argument
3409 pRegions, filter); in PreCallRecordCmdBlitImage()
3416 … SetImageInitialLayout(cb_node, *src_image_state, pRegions[i].srcSubresource, srcImageLayout); in PreCallRecordCmdBlitImage()
3417 … SetImageInitialLayout(cb_node, *dst_image_state, pRegions[i].dstSubresource, dstImageLayout); in PreCallRecordCmdBlitImage()
4509 uint32_t regionCount, const VkBufferCopy *pRegions) { in PreCallValidateCmdCopyBuffer() argument
4533 … uint32_t regionCount, const VkBufferCopy *pRegions) { in PreCallRecordCmdCopyBuffer() argument
4666 …idateBufferImageCopyData(uint32_t regionCount, const VkBufferImageCopy *pRegions, IMAGE_STATE *ima… in ValidateBufferImageCopyData() argument
4672 if ((pRegions[i].imageOffset.y != 0) || (pRegions[i].imageExtent.height != 1)) { in ValidateBufferImageCopyData()
4677 … function, i, pRegions[i].imageOffset.y, pRegions[i].imageExtent.height); in ValidateBufferImageCopyData()
4682 if ((pRegions[i].imageOffset.z != 0) || (pRegions[i].imageExtent.depth != 1)) { in ValidateBufferImageCopyData()
4687 … function, i, pRegions[i].imageOffset.z, pRegions[i].imageExtent.depth); in ValidateBufferImageCopyData()
4692 …if ((0 != pRegions[i].imageSubresource.baseArrayLayer) || (1 != pRegions[i].imageSubresource.layer… in ValidateBufferImageCopyData()
4697 …function, i, pRegions[i].imageSubresource.baseArrayLayer, pRegions[i].imageSubresource.layerCount); in ValidateBufferImageCopyData()
4703 …uint32_t element_size = FormatElementSize(image_state->createInfo.format, pRegions[i].imageSubreso… in ValidateBufferImageCopyData()
4705 …if (!FormatIsDepthAndStencil(image_state->createInfo.format) && SafeModulo(pRegions[i].bufferOffse… in ValidateBufferImageCopyData()
4710 function, i, pRegions[i].bufferOffset, element_size); in ValidateBufferImageCopyData()
4714 if (SafeModulo(pRegions[i].bufferOffset, 4) != 0) { in ValidateBufferImageCopyData()
4718 pRegions[i].bufferOffset); in ValidateBufferImageCopyData()
4722 …if ((pRegions[i].bufferRowLength != 0) && (pRegions[i].bufferRowLength < pRegions[i].imageExtent.w… in ValidateBufferImageCopyData()
4727 function, i, pRegions[i].bufferRowLength, pRegions[i].imageExtent.width); in ValidateBufferImageCopyData()
4731 …if ((pRegions[i].bufferImageHeight != 0) && (pRegions[i].bufferImageHeight < pRegions[i].imageExte… in ValidateBufferImageCopyData()
4736 function, i, pRegions[i].bufferImageHeight, pRegions[i].imageExtent.height); in ValidateBufferImageCopyData()
4740 …VkExtent3D adusted_image_extent = GetImageSubresourceExtent(image_state, &pRegions[i].imageSubreso… in ValidateBufferImageCopyData()
4742 …if ((pRegions[i].imageOffset.x < 0) || (pRegions[i].imageOffset.x > static_cast<int32_t>(adusted_i… in ValidateBufferImageCopyData()
4743 …((pRegions[i].imageOffset.x + pRegions[i].imageExtent.width) > static_cast<int32_t>(adusted_image_… in ValidateBufferImageCopyData()
4748 …function, i, pRegions[i].imageOffset.x, (pRegions[i].imageOffset.x + pRegions[i].imageExtent.width… in ValidateBufferImageCopyData()
4753 …if ((pRegions[i].imageOffset.y < 0) || (pRegions[i].imageOffset.y > static_cast<int32_t>(adusted_i… in ValidateBufferImageCopyData()
4754 …((pRegions[i].imageOffset.y + pRegions[i].imageExtent.height) > static_cast<int32_t>(adusted_image… in ValidateBufferImageCopyData()
4759 …function, i, pRegions[i].imageOffset.y, (pRegions[i].imageOffset.y + pRegions[i].imageExtent.heigh… in ValidateBufferImageCopyData()
4764 …if ((pRegions[i].imageOffset.z < 0) || (pRegions[i].imageOffset.z > static_cast<int32_t>(adusted_i… in ValidateBufferImageCopyData()
4765 …((pRegions[i].imageOffset.z + pRegions[i].imageExtent.depth) > static_cast<int32_t>(adusted_image_… in ValidateBufferImageCopyData()
4770 …function, i, pRegions[i].imageOffset.z, (pRegions[i].imageOffset.z + pRegions[i].imageExtent.depth… in ValidateBufferImageCopyData()
4776 std::bitset<num_bits> aspect_mask_bits(pRegions[i].imageSubresource.aspectMask); in ValidateBufferImageCopyData()
4784 …if (!VerifyAspectsPresent(pRegions[i].imageSubresource.aspectMask, image_state->createInfo.format)… in ValidateBufferImageCopyData()
4789 … function, i, pRegions[i].imageSubresource.aspectMask, image_state->createInfo.format); in ValidateBufferImageCopyData()
4797 if (SafeModulo(pRegions[i].bufferRowLength, block_size.width) != 0) { in ValidateBufferImageCopyData()
4802 function, i, pRegions[i].bufferRowLength, block_size.width); in ValidateBufferImageCopyData()
4806 if (SafeModulo(pRegions[i].bufferImageHeight, block_size.height) != 0) { in ValidateBufferImageCopyData()
4811 function, i, pRegions[i].bufferImageHeight, block_size.height); in ValidateBufferImageCopyData()
4815 if ((SafeModulo(pRegions[i].imageOffset.x, block_size.width) != 0) || in ValidateBufferImageCopyData()
4816 (SafeModulo(pRegions[i].imageOffset.y, block_size.height) != 0) || in ValidateBufferImageCopyData()
4817 (SafeModulo(pRegions[i].imageOffset.z, block_size.depth) != 0)) { in ValidateBufferImageCopyData()
4823 …function, i, pRegions[i].imageOffset.x, pRegions[i].imageOffset.y, block_size.width, block_size.he… in ValidateBufferImageCopyData()
4828 if (SafeModulo(pRegions[i].bufferOffset, block_size_in_bytes) != 0) { in ValidateBufferImageCopyData()
4833 function, i, pRegions[i].bufferOffset, block_size_in_bytes); in ValidateBufferImageCopyData()
4837 … VkExtent3D mip_extent = GetImageSubresourceExtent(image_state, &(pRegions[i].imageSubresource)); in ValidateBufferImageCopyData()
4838 if ((SafeModulo(pRegions[i].imageExtent.width, block_size.width) != 0) && in ValidateBufferImageCopyData()
4839 (pRegions[i].imageExtent.width + pRegions[i].imageOffset.x != mip_extent.width)) { in ValidateBufferImageCopyData()
4844 … function, i, pRegions[i].imageExtent.width, block_size.width, pRegions[i].imageOffset.x, in ValidateBufferImageCopyData()
4849 if ((SafeModulo(pRegions[i].imageExtent.height, block_size.height) != 0) && in ValidateBufferImageCopyData()
4850 (pRegions[i].imageExtent.height + pRegions[i].imageOffset.y != mip_extent.height)) { in ValidateBufferImageCopyData()
4855 … function, i, pRegions[i].imageExtent.height, block_size.height, pRegions[i].imageOffset.y, in ValidateBufferImageCopyData()
4860 if ((SafeModulo(pRegions[i].imageExtent.depth, block_size.depth) != 0) && in ValidateBufferImageCopyData()
4861 (pRegions[i].imageExtent.depth + pRegions[i].imageOffset.z != mip_extent.depth)) { in ValidateBufferImageCopyData()
4866 … function, i, pRegions[i].imageExtent.depth, block_size.depth, pRegions[i].imageOffset.z, in ValidateBufferImageCopyData()
4876 … const VkBufferImageCopy *pRegions, const char *func_name, const char *msg_code) { in ValidateImageBounds() argument
4881 VkExtent3D extent = pRegions[i].imageExtent; in ValidateImageBounds()
4882 VkOffset3D offset = pRegions[i].imageOffset; in ValidateImageBounds()
4892 … VkExtent3D image_extent = GetImageSubresourceExtent(image_state, &(pRegions[i].imageSubresource)); in ValidateImageBounds()
4918 … uint32_t regionCount, const VkBufferImageCopy *pRegions, const char *func_name, in ValidateBufferBounds() argument
4925 VkExtent3D copy_extent = pRegions[i].imageExtent; in ValidateBufferBounds()
4927 …VkDeviceSize buffer_width = (0 == pRegions[i].bufferRowLength ? copy_extent.width : pRegions[i].bu… in ValidateBufferBounds()
4928 …VkDeviceSize buffer_height = (0 == pRegions[i].bufferImageHeight ? copy_extent.height : pRegions[i… in ValidateBufferBounds()
4930 … pRegions[i].imageSubresource.aspectMask); // size (bytes) of texel or block in ValidateBufferBounds()
4944 uint32_t z_copies = std::max(copy_extent.depth, pRegions[i].imageSubresource.layerCount); in ValidateBufferBounds()
4952 …max_buffer_offset += pRegions[i].bufferOffset; // add initia… in ValidateBufferBounds()
4966 … VkBuffer dstBuffer, uint32_t regionCount, const VkBufferImageCopy *pRegions) { in PreCallValidateCmdCopyImageToBuffer() argument
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 …fferBounds(report_data, src_image_state, dst_buffer_state, regionCount, pRegions, "vkCmdCopyImageT… in PreCallValidateCmdCopyImageToBuffer()
5016 …skip |= ValidateImageSubresourceLayers(cb_node, &pRegions[i].imageSubresource, "vkCmdCopyImageToBu… 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()
5027 … pRegions[i].imageSubresource.layerCount, i, "vkCmdCopyImageToBuffer()", in PreCallValidateCmdCopyImageToBuffer()
5035 … uint32_t regionCount, const VkBufferImageCopy *pRegions) { in PreCallRecordCmdCopyImageToBuffer() argument
5045 … VkBuffer dstBuffer, uint32_t regionCount, const VkBufferImageCopy *pRegions) { in PreCallRecordCmdCopyImageToBuffer() argument
5046 …ordCmdCopyImageToBuffer(commandBuffer, srcImage, srcImageLayout, dstBuffer, regionCount, pRegions); in PreCallRecordCmdCopyImageToBuffer()
5052 … SetImageInitialLayout(cb_node, *src_image_state, pRegions[i].imageSubresource, srcImageLayout); in PreCallRecordCmdCopyImageToBuffer()
5058 const VkBufferImageCopy *pRegions) { in PreCallValidateCmdCopyBufferToImage() argument
5063 …bool skip = ValidateBufferImageCopyData(regionCount, pRegions, dst_image_state, "vkCmdCopyBufferTo… in PreCallValidateCmdCopyBufferToImage()
5077 …skip |= ValidateImageBounds(report_data, dst_image_state, regionCount, pRegions, "vkCmdCopyBufferT… in PreCallValidateCmdCopyBufferToImage()
5079 …fferBounds(report_data, dst_image_state, src_buffer_state, regionCount, pRegions, "vkCmdCopyBuffer… in PreCallValidateCmdCopyBufferToImage()
5103 …skip |= ValidateImageSubresourceLayers(cb_node, &pRegions[i].imageSubresource, "vkCmdCopyBufferToI… in PreCallValidateCmdCopyBufferToImage()
5105 … skip |= VerifyImageLayout(cb_node, dst_image_state, pRegions[i].imageSubresource, dstImageLayout, in PreCallValidateCmdCopyBufferToImage()
5109 …cb_node, dst_image_state, &pRegions[i], i, "vkCmdCopyBufferToImage()", "VUID-vkCmdCopyBufferToImag… in PreCallValidateCmdCopyBufferToImage()
5111 …ValidateImageMipLevel(cb_node, dst_image_state, pRegions[i].imageSubresource.mipLevel, i, "vkCmdCo… in PreCallValidateCmdCopyBufferToImage()
5113 …skip |= ValidateImageArrayLayerRange(cb_node, dst_image_state, pRegions[i].imageSubresource.baseAr… in PreCallValidateCmdCopyBufferToImage()
5114 … pRegions[i].imageSubresource.layerCount, i, "vkCmdCopyBufferToImage()", in PreCallValidateCmdCopyBufferToImage()
5122 const VkBufferImageCopy *pRegions) { in PreCallRecordCmdCopyBufferToImage() argument
5133 const VkBufferImageCopy *pRegions) { in PreCallRecordCmdCopyBufferToImage() argument
5134 …ordCmdCopyBufferToImage(commandBuffer, srcBuffer, dstImage, dstImageLayout, regionCount, pRegions); in PreCallRecordCmdCopyBufferToImage()
5140 … SetImageInitialLayout(cb_node, *dst_image_state, pRegions[i].imageSubresource, dstImageLayout); in PreCallRecordCmdCopyBufferToImage()