Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Unified Diff: tests/GLProgramsTest.cpp

Issue 1306823003: skia: add ability to load command_buffer_gles2 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: make it work with sampleapp Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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));

Powered by Google App Engine
This is Rietveld 408576698