In GrVkGpuCommandBuffer when setting bounds to full RT use proxy bounds instead of surface.
My guess is perf wise this will be a wash/nothing really changes, but it at least lets
Vulkan know exactly what our intention is.
Bug: skia:
Change-Id: I8ddeccc602154c793d8f7d7de087a655a136dc9c
Reviewed-on: https://skia-review.googlesource.com/c/160620
Commit-Queue: Greg Daniel <egdaniel@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/vk/GrVkGpu.cpp b/src/gpu/vk/GrVkGpu.cpp
index 3aa8286..0981917 100644
--- a/src/gpu/vk/GrVkGpu.cpp
+++ b/src/gpu/vk/GrVkGpu.cpp
@@ -282,13 +282,14 @@
GrGpuRTCommandBuffer* GrVkGpu::getCommandBuffer(
GrRenderTarget* rt, GrSurfaceOrigin origin,
+ const SkRect& bounds,
const GrGpuRTCommandBuffer::LoadAndStoreInfo& colorInfo,
const GrGpuRTCommandBuffer::StencilLoadAndStoreInfo& stencilInfo) {
if (!fCachedRTCommandBuffer) {
fCachedRTCommandBuffer.reset(new GrVkGpuRTCommandBuffer(this));
}
- fCachedRTCommandBuffer->set(rt, origin, colorInfo, stencilInfo);
+ fCachedRTCommandBuffer->set(rt, origin, bounds, colorInfo, stencilInfo);
return fCachedRTCommandBuffer.get();
}