Index: tests/GLProgramsTest.cpp |
diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp |
index 7f23f93d34542d3127a82912cce5fb90a7a7e3ad..7bf5f2401093e1f766bdd590a28b9fe2e610adb0 100644 |
--- a/tests/GLProgramsTest.cpp |
+++ b/tests/GLProgramsTest.cpp |
@@ -295,6 +295,13 @@ DEF_GPUTEST(GLPrograms, reporter, factory) { |
maxStages = 2; |
} |
#endif |
+#if SK_COMMAND_BUFFER |
+ // Some long shaders run out of temporary registers in the D3D compiler on ANGLE. |
+ // TODO(hendrikw): This only needs to happen with the ANGLE comand buffer backend. |
+ if (type == GrContextFactory::kCommandBuffer_GLContextType) { |
+ maxStages = 2; |
+ } |
+#endif |
GrTestTarget target; |
context->getTestTarget(&target); |
REPORTER_ASSERT(reporter, target.target()->programUnitTest(context, maxStages)); |