Index: src/gpu/vk/GrVkImage.cpp |
diff --git a/src/gpu/vk/GrVkImage.cpp b/src/gpu/vk/GrVkImage.cpp |
index 53fb2f2bb7d0c67ba51247b4bb905eaeedc67207..0c3a297c1a5ce851fd66c821aca05d02f581f20e 100644 |
--- a/src/gpu/vk/GrVkImage.cpp |
+++ b/src/gpu/vk/GrVkImage.cpp |
@@ -30,6 +30,8 @@ void GrVkImage::setImageLayout(const GrVkGpu* gpu, VkImageLayout newLayout, |
VkAccessFlags dstAccessMask, |
VkPipelineStageFlags srcStageMask, |
VkPipelineStageFlags dstStageMask, |
+ uint32_t baseMipLevel, |
+ uint32_t levelCount, |
bool byRegion) { |
SkASSERT(VK_IMAGE_LAYOUT_UNDEFINED != newLayout && |
VK_IMAGE_LAYOUT_PREINITIALIZED != newLayout); |
@@ -49,7 +51,7 @@ void GrVkImage::setImageLayout(const GrVkGpu* gpu, VkImageLayout newLayout, |
VK_QUEUE_FAMILY_IGNORED, // srcQueueFamilyIndex |
VK_QUEUE_FAMILY_IGNORED, // dstQueueFamilyIndex |
fResource->fImage, // image |
- { aspectFlags, 0, fResource->fLevelCount, 0, 1 } // subresourceRange |
+ { aspectFlags, baseMipLevel, levelCount, 0, 1 } // subresourceRange |
}; |
// TODO: restrict to area of image we're interested in |