aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/GLProgramsTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/GLProgramsTest.cpp')
-rw-r--r--tests/GLProgramsTest.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp
index bc3da6d9ee..c12e5e8781 100644
--- a/tests/GLProgramsTest.cpp
+++ b/tests/GLProgramsTest.cpp
@@ -304,6 +304,12 @@ bool GrDrawTarget::programUnitTest(int maxStages) {
if (pipeline.mustSkip()) {
continue;
}
+
+ GrXferBarrierType barrierType;
+ if (pipeline.getXferProcessor()->willNeedXferBarrier(rt, *gpu->caps(), &barrierType)) {
+ gpu->xferBarrier(barrierType);
+ }
+
GrBatchTracker bt;
primProc->initBatchTracker(&bt, pipeline.getInitBatchTracker());