Index: src/gpu/vk/GrVkGpuCommandBuffer.cpp |
diff --git a/src/gpu/vk/GrVkGpuCommandBuffer.cpp b/src/gpu/vk/GrVkGpuCommandBuffer.cpp |
index f987231940c51974f266dbd92adbba183d9c55f7..dc553e03772329aa4f03e9d75970a4acfd34ef4c 100644 |
--- a/src/gpu/vk/GrVkGpuCommandBuffer.cpp |
+++ b/src/gpu/vk/GrVkGpuCommandBuffer.cpp |
@@ -189,7 +189,7 @@ void GrVkGpuCommandBuffer::onClear(GrRenderTarget* target, const SkIRect& rect, |
GrVkRenderTarget* vkRT = static_cast<GrVkRenderTarget*>(target); |
- if (fIsEmpty) { |
+ if (fIsEmpty && rect.width() == target->width() && rect.height() == target->height()) { |
// We will change the render pass to do a clear load instead |
GrVkRenderPass::LoadStoreOps vkColorOps(VK_ATTACHMENT_LOAD_OP_CLEAR, |
VK_ATTACHMENT_STORE_OP_STORE); |