Index: tests/GLProgramsTest.cpp |
diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp |
index 16745e5669d673dd0ddc18d0b3772e0de69e7297..a959092e058cc35cd159041afc778aaf6172a870 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)); |