Index: src/gpu/vk/GrVkImage.cpp |
diff --git a/src/gpu/vk/GrVkImage.cpp b/src/gpu/vk/GrVkImage.cpp |
index f91c6a9ee69bc692602b6b998cc69e1c49861b93..74136308eaf169bc6e89b4045f867835ae801aca 100644 |
--- a/src/gpu/vk/GrVkImage.cpp |
+++ b/src/gpu/vk/GrVkImage.cpp |
@@ -58,6 +58,10 @@ const GrVkImage::Resource* GrVkImage::CreateResource(const GrVkGpu* gpu, |
if (!GrSampleCountToVkSampleCount(imageDesc.fSamples, &vkSamples)) { |
return nullptr; |
} |
+ |
+ SkASSERT(VK_IMAGE_TILING_OPTIMAL == imageDesc.fImageTiling || |
+ VK_SAMPLE_COUNT_1_BIT == vkSamples); |
+ |
const VkImageCreateInfo imageCreateInfo = { |
VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO, // sType |
NULL, // pNext |