Mir

Merge lp:~vanvugt/mir/workaround-1391261 into lp:mir

Proposed by Daniel van Vugt
Status: Merged
Approved by: Kevin DuBois
Approved revision: no longer in the source branch.
Merged at revision: 2112
Proposed branch: lp:~vanvugt/mir/workaround-1391261
Merge into: lp:mir
Diff against target: 24 lines (+13/-1)
1 file modified
tests/performance-tests/test_glmark2-es2-mir.cpp (+13/-1)
To merge this branch: bzr merge lp:~vanvugt/mir/workaround-1391261
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Kevin DuBois (community) Approve
Alexandros Frantzis (community) Approve
Alan Griffiths Approve
Review via email: mp+243104@code.launchpad.net

Commit message

Work around unstable Android overlay logic that will freeze if fed buffers
too quickly i.e. framedropping like in glmark2 (LP: #1391261).

Frame dropping is fortunately not something we use on the phone right now,
so not an issue we need to block on. This workaround is more important so
that the issue doesn't continue to block CI.

To post a comment you must log in.
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

I'd rather fix the underlying problem but...

review: Approve
Revision history for this message
Alexandros Frantzis (afrantzis) wrote :

OK to unblock CI.

review: Approve
Revision history for this message
Kevin DuBois (kdub) wrote :

Do we need to ifdef on android? (mesa would ignore the option)
And yes, okay to unblock CI. lets not mark the bug fixed... I will pick up addressing the underlying cause.

Revision history for this message
Kevin DuBois (kdub) :
review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/performance-tests/test_glmark2-es2-mir.cpp'
2--- tests/performance-tests/test_glmark2-es2-mir.cpp 2014-11-24 02:16:00 +0000
3+++ tests/performance-tests/test_glmark2-es2-mir.cpp 2014-12-01 02:07:56 +0000
4@@ -26,7 +26,19 @@
5 {
6 }
7
8- mir::DefaultServerConfiguration& server_config() override {return config;};
9+ mir::DefaultServerConfiguration& server_config() override
10+ {
11+#ifdef ANDROID
12+ /*
13+ * Workaround instability that causes freezes when combining
14+ * Android overlays with high-speed frame dropping (LP: #1391261).
15+ * Fortunately glmark2 is the only use case that exploits this issue
16+ * right now.
17+ */
18+ setenv("MIR_SERVER_DISABLE_OVERLAYS", "true", 1);
19+#endif
20+ return config;
21+ };
22
23 protected:
24 enum ResultFileType {raw, json};

Subscribers

People subscribed via source and target branches