diff options
author | jvanverth <jvanverth@google.com> | 2016-03-04 15:16:25 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-04 15:16:25 -0800 |
commit | e77875aa425d51cc8db3463343a6308f9d2aadcc (patch) | |
tree | 3a3666b15023da812c38c85551bd9f4f9163740a /src | |
parent | e244322a9db64b3b54068904a333203ae166d86d (diff) |
Fix stall in Vk clear
TBR=egdaniel@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1765863003
Review URL: https://codereview.chromium.org/1765863003
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/vk/GrVkGpu.cpp | 2 |
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); |