Index: tests/GLProgramsTest.cpp |
diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp |
index 1f98b7ca4421260db1a48ddd63cbe3426eb1241a..e55c29c3e930a8a2e894f13c4b2c80656f3bffd2 100644 |
--- a/tests/GLProgramsTest.cpp |
+++ b/tests/GLProgramsTest.cpp |
@@ -303,6 +303,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()); |