aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrXferProcessor.cpp
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2017-03-30 16:48:26 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-03-31 02:10:25 +0000
commit4fc774060036ef04fbc1d92a018e42df8704ff50 (patch)
tree22071209fee2d5d92c0ec9109bd9264519a5c3f2 /src/gpu/GrXferProcessor.cpp
parent8517b4c87ee5b8c30aa9aa642fd3a7cbf9131688 (diff)
Respect xfer barriers in InstancedRendering::Op
Fixes a bug introduced when this Op stopped storing a GrPipeline. Change-Id: I1a39814cebe18b321ea369f005bb7759f233cfe6 Reviewed-on: https://skia-review.googlesource.com/10804 Commit-Queue: Brian Salomon <bsalomon@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/GrXferProcessor.cpp')
-rw-r--r--src/gpu/GrXferProcessor.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu/GrXferProcessor.cpp b/src/gpu/GrXferProcessor.cpp
index 1ce258c113..839fea621c 100644
--- a/src/gpu/GrXferProcessor.cpp
+++ b/src/gpu/GrXferProcessor.cpp
@@ -185,6 +185,9 @@ GrXPFactory::AnalysisProperties GrXPFactory::GetAnalysisProperties(
if ((result & AnalysisProperties::kReadsDstInShader) &&
!caps.shaderCaps()->dstReadInShaderSupport()) {
result |= AnalysisProperties::kRequiresDstTexture;
+ if (caps.textureBarrierSupport()) {
+ result |= AnalysisProperties::kRequiresBarrierBetweenOverlappingDraws;
+ }
}
return result;
}