Chromium Code Reviews| Index: src/gpu/GrDrawTarget.cpp |
| diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp |
| index 420f9eae669f71dc9a12b69da08ebac28a3b933a..86b75d518590a40c91181e7676a97cb2f49b68ab 100644 |
| --- a/src/gpu/GrDrawTarget.cpp |
| +++ b/src/gpu/GrDrawTarget.cpp |
| @@ -470,6 +470,10 @@ void GrDrawTarget::drawIndexed(GrPipelineBuilder* pipelineBuilder, |
| return; |
| } |
| + if (!pipelineBuilder->willBlendCoherently(*this->caps())) { |
|
egdaniel
2015/03/31 14:23:41
So I feel like somewhere we need to be checking th
Chris Dalton
2015/03/31 17:06:42
That seems fine. What about "requiresBlendBarrier(
Mark Kilgard
2015/04/02 23:02:38
Two cents: I like the shorter requiresBlendBarrier
|
| + this->onBlendBarrier(); |
| + } |
| + |
| this->setDrawBuffers(&info, gp->getVertexStride()); |
| this->onDraw(gp, info, pipelineInfo); |
| @@ -515,6 +519,10 @@ void GrDrawTarget::drawNonIndexed(GrPipelineBuilder* pipelineBuilder, |
| return; |
| } |
| + if (!pipelineBuilder->willBlendCoherently(*this->caps())) { |
| + this->onBlendBarrier(); |
| + } |
| + |
| this->setDrawBuffers(&info, gp->getVertexStride()); |
| this->onDraw(gp, info, pipelineInfo); |
| @@ -541,6 +549,10 @@ void GrDrawTarget::drawBatch(GrPipelineBuilder* pipelineBuilder, |
| return; |
| } |
| + if (!pipelineBuilder->willBlendCoherently(*this->caps())) { |
| + this->onBlendBarrier(); |
| + } |
| + |
| this->onDrawBatch(batch, pipelineInfo); |
| } |
| @@ -806,6 +818,10 @@ void GrDrawTarget::drawIndexedInstances(GrPipelineBuilder* pipelineBuilder, |
| return; |
| } |
| + if (!pipelineBuilder->willBlendCoherently(*this->caps())) { |
| + this->onBlendBarrier(); |
| + } |
| + |
| this->setDrawBuffers(&info, gp->getVertexStride()); |
| this->onDraw(gp, info, pipelineInfo); |
| } |