Merge lp:~kdub/mir/mesa-reconstruct-buffer into lp:mir
| Status: | Merged |
|---|---|
| Approved by: | Alexandros Frantzis on 2015-04-15 |
| Approved revision: | 2478 |
| Merged at revision: | 2487 |
| Proposed branch: | lp:~kdub/mir/mesa-reconstruct-buffer |
| Merge into: | lp:mir |
| Diff against target: |
164 lines (+105/-0) 5 files modified
src/platforms/mesa/server/buffer_allocator.cpp (+31/-0) src/platforms/mesa/server/buffer_allocator.h (+2/-0) tests/include/mir_test_doubles/mock_gbm.h (+1/-0) tests/mir_test_doubles/mock_gbm.cpp (+5/-0) tests/unit-tests/graphics/mesa/test_buffer_allocator.cpp (+66/-0) |
| To merge this branch: | bzr merge lp:~kdub/mir/mesa-reconstruct-buffer |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Alexandros Frantzis (community) | Approve on 2015-04-15 | ||
| Alan Griffiths | Approve on 2015-04-15 | ||
| PS Jenkins bot | continuous-integration | Approve on 2015-04-14 | |
| Robert Carr (community) | Approve on 2015-04-13 | ||
| Chris Halse Rogers | 2015-04-09 | Approve on 2015-04-13 | |
|
Review via email:
|
|||
Commit Message
mesa: provide a way for a nested server to reconstruct a mgm::Buffer from a MirNativeBuffer.
Description of the Change
mesa: provide a way for a nested server to reconstruct a mgm::Buffer from a MirNativeBuffer.
The nested server gets access to the native buffer type from mir_buffer_
| Chris Halse Rogers (raof) wrote : | # |
27 + BOOST_THROW_
This would more usefully be a std::system_error; gbm_bo_import will set errno in case of failure.
Otherwise looks good to me.
- 2472. By Kevin DuBois on 2015-04-10
-
use system error instead of runtime_error
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:2472
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 2473. By Kevin DuBois on 2015-04-10
-
correct clang error
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:2473
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Alan Griffiths (alan-griffiths) wrote : | # |
*nitpicking*
31+ std::shared_
32+ gbm_bo_
33+ [](gbm_bo* bo){ gbm_bo_destroy(bo); });
34+ if (!bo)
35+ BOOST_THROW_
36+ std::system_
Easier to read with a blank line before the if, and braces around the multi-line conditional.
- 2474. By Kevin DuBois on 2015-04-13
-
braces and spaces
- 2475. By Kevin DuBois on 2015-04-13
-
merge mir
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:2475
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Robert Carr (robertcarr) wrote : | # |
LGTM.
Nits:
l22
+ BOOST_THROW_
I think because the caller can verify this, we can say its a precondition violation and this is thus a logic_error.
| Kevin DuBois (kdub) wrote : | # |
@jenkins, I thought this was fixed?
11: [ RUN ] SimpleDispatchT
- 2476. By Kevin DuBois on 2015-04-13
-
use logic_error instead of runtime_error
| Kevin DuBois (kdub) wrote : | # |
@Robert, fair enough, changed to logic_error
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:2476
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Alexandros Frantzis (afrantzis) wrote : | # |
> @jenkins, I thought this was fixed?
> 11: [ RUN ] SimpleDispatchT
Because this test forks a new process, it catches valgrind errors detected in previous tests. In this case the real issue is:
11: [ RUN ] MesaBufferAlloc
11: ==32764== Conditional jump or move depends on uninitialised value(s)
11: ==32764== at 0x15CFAC8: Matches (gmock-
11: ==32764== by 0x15CFAC8: ShouldHandleArg
11: ==32764== by 0x15CFAC8: FindMatchingExp
11: ==32764== by 0x15CFAC8: testing:
11: ==32764== by 0x161E937: testing:
11: ==32764== by 0x15B8142: InvokeWith (gmock-
11: ==32764== by 0x15B8142: Invoke (gmock-
11: ==32764== by 0x15B8142: gbm_bo_import (mock_gbm.h:79)
11: ==32764== by 0x15B8142: gbm_bo_import (mock_gbm.cpp:174)
11: ==32764== by 0x13BA657: mir::graphics:
11: ==32764== by 0x10A7CCF: MesaBufferAlloc
11: ==32764== by 0x160FA49: void testing:
11: ==32764== by 0x160A71E: void testing:
11: ==32764== by 0x15F038A: testing:
11: ==32764== by 0x15F0C28: testing:
11: ==32764== by 0x15F1331: testing:
11: ==32764== by 0x15F8203: testing:
11: ==32764== by 0x1611014: bool testing:
11: ==32764==
11: [ OK ] Mesa...
- 2477. By Kevin DuBois on 2015-04-14
-
fix uninitialized test variable valgrind complaint
- 2478. By Kevin DuBois on 2015-04-14
-
merge mir
| Kevin DuBois (kdub) wrote : | # |
ah, thanks. should be corrected
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:2478
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://

FAILED: Continuous integration, rev:2471 jenkins. qa.ubuntu. com/job/ mir-ci/ 3486/ jenkins. qa.ubuntu. com/job/ mir-android- vivid-i386- build/2006 jenkins. qa.ubuntu. com/job/ mir-clang- vivid-amd64- build/2005 jenkins. qa.ubuntu. com/job/ mir-mediumtests -vivid- touch/1956 jenkins. qa.ubuntu. com/job/ mir-vivid- amd64-ci/ 1483/console jenkins. qa.ubuntu. com/job/ mir-mediumtests -builder- vivid-armhf/ 1956 jenkins. qa.ubuntu. com/job/ mir-mediumtests -builder- vivid-armhf/ 1956/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ mir-mediumtests -runner- mako/4892 s-jenkins. ubuntu- ci:8080/ job/touch- flash-device/ 19518
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/mir- ci/3486/ rebuild
http://