diff options
author | Jim Van Verth <jvanverth@google.com> | 2017-11-02 16:56:09 +0000 |
---|---|---|
committer | Jim Van Verth <jvanverth@google.com> | 2017-11-02 16:56:19 +0000 |
commit | 6a40abc8c7e158e6be34c836f6ea1bbf7b498146 (patch) | |
tree | 6a74566b8ca660b65b2457ba42620a9e93331012 /src/gpu/vk/GrVkGpuCommandBuffer.cpp | |
parent | 2b17f64694c4b919f8ea5dff5a81813f435fb410 (diff) |
Revert "Implement window rectangles in vulkan"
This reverts commit 94c0468b2b4255e3beed81efdcfbf6d9d39e11e4.
Reason for revert: <INSERT REASONING HERE>
Original change's description:
> Implement window rectangles in vulkan
>
> Bug: skia:
> Change-Id: I32c079b90a5503c797dfc073a093f940cd8c550a
> Reviewed-on: https://skia-review.googlesource.com/65423
> Commit-Queue: Chris Dalton <csmartdalton@google.com>
> Reviewed-by: Greg Daniel <egdaniel@google.com>
> Reviewed-by: Brian Salomon <bsalomon@google.com>
TBR=egdaniel@google.com,bsalomon@google.com,csmartdalton@google.com
Change-Id: I5a90cb57fb5d4bcf8c7e76a5f71a7f16edbaf6be
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: skia:
Reviewed-on: https://skia-review.googlesource.com/67060
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Diffstat (limited to 'src/gpu/vk/GrVkGpuCommandBuffer.cpp')
-rw-r--r-- | src/gpu/vk/GrVkGpuCommandBuffer.cpp | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/gpu/vk/GrVkGpuCommandBuffer.cpp b/src/gpu/vk/GrVkGpuCommandBuffer.cpp index a14ce8c3e2..52dfede267 100644 --- a/src/gpu/vk/GrVkGpuCommandBuffer.cpp +++ b/src/gpu/vk/GrVkGpuCommandBuffer.cpp @@ -251,11 +251,10 @@ void GrVkGpuRTCommandBuffer::insertEventMarker(const char* msg) { } void GrVkGpuRTCommandBuffer::onClearStencilClip(const GrFixedClip& clip, bool insideStencilMask) { - CommandBufferInfo& cbInfo = fCommandBufferInfos[fCurrentCmdInfo]; - - // We ignore window rectangles as they are not supported by Vulkan during clear. SkASSERT(!clip.hasWindowRectangles()); + CommandBufferInfo& cbInfo = fCommandBufferInfos[fCurrentCmdInfo]; + GrStencilAttachment* sb = fRenderTarget->renderTargetPriv().getStencilAttachment(); // this should only be called internally when we know we have a // stencil buffer. @@ -314,7 +313,7 @@ void GrVkGpuRTCommandBuffer::onClearStencilClip(const GrFixedClip& clip, bool in void GrVkGpuRTCommandBuffer::onClear(const GrFixedClip& clip, GrColor color) { GrVkRenderTarget* vkRT = static_cast<GrVkRenderTarget*>(fRenderTarget); - // We ignore window rectangles as they are not supported by Vulkan during clear. + // parent class should never let us get here with no RT SkASSERT(!clip.hasWindowRectangles()); CommandBufferInfo& cbInfo = fCommandBufferInfos[fCurrentCmdInfo]; @@ -528,7 +527,6 @@ GrVkPipelineState* GrVkGpuRTCommandBuffer::prepareDrawState(const GrPipeline& pi GrRenderTarget* rt = pipeline.renderTarget(); - GrVkPipeline::SetDynamicViewportState(fGpu, cbInfo.currentCmdBuf(), rt); if (!pipeline.getScissorState().enabled()) { GrVkPipeline::SetDynamicScissorRectState(fGpu, cbInfo.currentCmdBuf(), rt, pipeline.proxy()->origin(), @@ -538,13 +536,7 @@ GrVkPipelineState* GrVkGpuRTCommandBuffer::prepareDrawState(const GrPipeline& pi rt, pipeline.proxy()->origin(), pipeline.getScissorState().rect()); } - if (pipeline.getWindowRectsState().enabled()) { - // No need to check hasDynamicState -- window rectangles aren't currently included in - // GrPipeline::DynamicState. - GrVkPipeline::SetDynamicDiscardRectanglesState(fGpu, cbInfo.currentCmdBuf(), - rt, pipeline.proxy()->origin(), - pipeline.getWindowRectsState().windows()); - } + GrVkPipeline::SetDynamicViewportState(fGpu, cbInfo.currentCmdBuf(), rt); GrVkPipeline::SetDynamicBlendConstantState(fGpu, cbInfo.currentCmdBuf(), rt->config(), pipeline.getXferProcessor()); |