Merge lp:~peat-new/mir/load-fb-hal-before-hwc into lp:mir
Status: | Work in progress |
---|---|
Proposed branch: | lp:~peat-new/mir/load-fb-hal-before-hwc |
Merge into: | lp:mir |
Diff against target: |
141 lines (+55/-14) 2 files modified
src/platforms/android/server/hal_component_factory.cpp (+28/-3) tests/unit-tests/graphics/android/test_output_builder.cpp (+27/-11) |
To merge this branch: | bzr merge lp:~peat-new/mir/load-fb-hal-before-hwc |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Kevin DuBois (community) | Abstain | ||
Daniel van Vugt | Needs Resubmitting | ||
Mir CI Bot | Pending | ||
Review via email: mp+302881@code.launchpad.net |
Commit message
android: open FB HAL before HWComposer.
Some devices (for example Samsung Galaxy Tab 2 7.0) may insist that the
FB HAL be opened before HWC. This revision make HalComponentFactory to
comply to this requirement.
Description of the change
I'm porting Ubuntu Touch to Samsung Galaxy Tab 2 7.0. While porting, I found that this device's HWComposer (OMAP's, and has version 1.0 of API) have to be opened after FB HAL. Looking at Android's SurfaceFlinger code, I found that it does open FB HAL before HWComposer, but then close FB HAL if HWComposer is successfully opened and has version 1.1 of API or later.
This branch changes HalComponentFactory to do essentially the same thing as Android. With this fix, I can confirm that HWComposer is opened successfully on Samsung Galaxy Tab 2 7.0. Although graphic doesn't work yet. (Actually, using FB HAL alone, graphic does work but isn't complete.)
Just running automated tests first. Unfortunately the only way I know to make that happen is to resubmit the code from a mir-team member: /code.launchpad .net/~mir- team/mir/ load-fb- hal-before- hwc/+merge/ 302909
https:/