aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar jvanverth <jvanverth@google.com>2016-03-04 15:16:25 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-04 15:16:25 -0800
commite77875aa425d51cc8db3463343a6308f9d2aadcc (patch)
tree3a3666b15023da812c38c85551bd9f4f9163740a /src
parente244322a9db64b3b54068904a333203ae166d86d (diff)
Fix stall in Vk clear
Diffstat (limited to 'src')
-rw-r--r--src/gpu/vk/GrVkGpu.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpu/vk/GrVkGpu.cpp b/src/gpu/vk/GrVkGpu.cpp
index a208aed456..a0e6aa554d 100644
--- a/src/gpu/vk/GrVkGpu.cpp
+++ b/src/gpu/vk/GrVkGpu.cpp
@@ -1041,6 +1041,8 @@ void GrVkGpu::onClear(GrRenderTarget* target, const SkIRect& rect, GrColor color
}
clearRect.rect.offset = { vkRect.fLeft, vkRect.fTop };
clearRect.rect.extent = { (uint32_t)vkRect.width(), (uint32_t)vkRect.height() };
+ clearRect.baseArrayLayer = 0;
+ clearRect.layerCount = 1;
const GrVkRenderPass* renderPass = vkRT->simpleRenderPass();
SkASSERT(renderPass);