Merge lp:~cemil-azizoglu/mir/fix-diamond into lp:mir
- fix-diamond
- Merge into development-branch
Status: | Merged |
---|---|
Approved by: | Daniel van Vugt |
Approved revision: | no longer in the source branch. |
Merged at revision: | 3880 |
Proposed branch: | lp:~cemil-azizoglu/mir/fix-diamond |
Merge into: | lp:mir |
Diff against target: |
55 lines (+6/-6) 1 file modified
playground/egldiamond_render_surface.c (+6/-6) |
To merge this branch: | bzr merge lp:~cemil-azizoglu/mir/fix-diamond |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel van Vugt | Approve | ||
Mir CI Bot | continuous-integration | Needs Fixing | |
Andreas Pokorny (community) | Approve | ||
Alan Griffiths | Approve | ||
Review via email: mp+312941@code.launchpad.net |
Commit message
MirBuffer as a native pixmap is only valid on Android. Bypass it for Mesa.
Description of the change
MirBuffer as a native pixmap is only valid on Android. Bypass it for Mesa.
This was failing when use_shim==0 which had never been exercised before, but with the platform-mir-rs in Mesa, it now is.
Also deleted an old comment that no longer applies.
Mir CI Bot (mir-ci-bot) wrote : | # |
Alan Griffiths (alan-griffiths) wrote : | # |
+ bool filled = fill_buffer(
could be const
Mir CI Bot (mir-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:3875
https:/
Executed test runs:
FAILURE: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
FAILURE: https:/
Click here to trigger a rebuild:
https:/
Cemil Azizoglu (cemil-azizoglu) wrote : | # |
^^ lp:1646302
Mir CI Bot (mir-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:3875
https:/
Executed test runs:
FAILURE: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
FAILURE: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
Cemil Azizoglu (cemil-azizoglu) wrote : | # |
^^ lp:1646558
Mir CI Bot (mir-ci-bot) wrote : | # |
PASSED: Continuous integration, rev:3875
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
Mir CI Bot (mir-ci-bot) wrote : | # |
PASSED: Continuous integration, rev:3876
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
Mir CI Bot (mir-ci-bot) wrote : | # |
FAILED: Autolanding.
More details in the following jenkins job:
https:/
Executed test runs:
FAILURE: https:/
None: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
FAILURE: https:/
Daniel van Vugt (vanvugt) wrote : | # |
^^^
Jenkins failure is bug 1646375
Daniel van Vugt (vanvugt) wrote : | # |
Weirdly this change already landed 3 hours ago under a different branch name (!?)
3880. By Cemil Azizoglu 3 hours ago
MirBuffer as a native pixmap is only valid on Android. Bypass it for Mesa.
Approved by mir-ci-bot, Andreas Pokorny, Alan Griffiths.
Merged branch lp:~cemil-azizoglu/mir/rs-mesa-egl-support
Preview Diff
1 | === modified file 'playground/egldiamond_render_surface.c' |
2 | --- playground/egldiamond_render_surface.c 2016-12-01 02:20:30 +0000 |
3 | +++ playground/egldiamond_render_surface.c 2016-12-12 21:58:37 +0000 |
4 | @@ -83,13 +83,13 @@ |
5 | pthread_mutex_unlock(w->mut); |
6 | } |
7 | |
8 | -void fill_buffer(MirBuffer* buffer) |
9 | +bool fill_buffer(MirBuffer* buffer) |
10 | { |
11 | MirBufferLayout layout = mir_buffer_layout_unknown; |
12 | MirGraphicsRegion region; |
13 | bool rc = mir_buffer_map(buffer, ®ion, &layout); |
14 | if (!rc || layout == mir_buffer_layout_unknown) |
15 | - return; |
16 | + return false; |
17 | |
18 | unsigned int *data = (unsigned int*) region.vaddr; |
19 | for (int i = 0; i < region.width; i++) |
20 | @@ -104,6 +104,7 @@ |
21 | } |
22 | } |
23 | mir_buffer_unmap(buffer); |
24 | + return true; |
25 | } |
26 | |
27 | int main(int argc, char *argv[]) |
28 | @@ -186,7 +187,7 @@ |
29 | pthread_cond_wait(&cond, &mutex); |
30 | pthread_mutex_unlock(&mutex); |
31 | |
32 | - fill_buffer(buffer); |
33 | + bool const filled = fill_buffer(buffer); |
34 | |
35 | if (use_shim) |
36 | egldisplay = future_driver_eglGetDisplay(connection); |
37 | @@ -220,8 +221,6 @@ |
38 | CHECK(mir_render_surface_is_valid(render_surface), "could not create render surface"); |
39 | CHECK(mir_render_surface_get_error_message(render_surface), ""); |
40 | |
41 | - //FIXME: we should be able to eglCreateWindowSurface or mir_surface_create in any order. |
42 | - // Current code requires creation of content before creation of the surface. |
43 | if (use_shim) |
44 | eglsurface = future_driver_eglCreateWindowSurface(egldisplay, eglconfig, render_surface, NULL); |
45 | else |
46 | @@ -274,7 +273,8 @@ |
47 | eglCreateImageKHR = (PFNEGLCREATEIMAGEKHRPROC) eglGetProcAddress("eglCreateImageKHR"); |
48 | eglDestroyImageKHR = (PFNEGLDESTROYIMAGEKHRPROC) eglGetProcAddress("eglDestroyImageKHR"); |
49 | } |
50 | - image = eglCreateImageKHR(egldisplay, EGL_NO_CONTEXT, EGL_NATIVE_PIXMAP_KHR, buffer, image_attrs); |
51 | + if (filled) |
52 | + image = eglCreateImageKHR(egldisplay, EGL_NO_CONTEXT, EGL_NATIVE_PIXMAP_KHR, buffer, image_attrs); |
53 | } |
54 | |
55 | Diamond diamond; |
FAILED: Continuous integration, rev:3874 /mir-jenkins. ubuntu. com/job/ mir-ci/ 2359/ /mir-jenkins. ubuntu. com/job/ build-mir/ 3074/console /mir-jenkins. ubuntu. com/job/ build-0- fetch/3140 /mir-jenkins. ubuntu. com/job/ build-1- sourcepkg/ release= vivid+overlay/ 3132 /mir-jenkins. ubuntu. com/job/ build-1- sourcepkg/ release= xenial+ overlay/ 3132 /mir-jenkins. ubuntu. com/job/ build-1- sourcepkg/ release= yakkety/ 3132 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= amd64,compiler= clang,platform= mesa,release= yakkety/ 3103/console /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= amd64,compiler= gcc,platform= mesa,release= xenial+ overlay/ 3103 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= amd64,compiler= gcc,platform= mesa,release= xenial+ overlay/ 3103/artifact/ output/ *zip*/output. zip /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= amd64,compiler= gcc,platform= mesa,release= yakkety/ 3103 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= amd64,compiler= gcc,platform= mesa,release= yakkety/ 3103/artifact/ output/ *zip*/output. zip /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= cross-armhf, compiler= gcc,platform= android, release= vivid+overlay/ 3103 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= cross-armhf, compiler= gcc,platform= android, release= vivid+overlay/ 3103/artifact/ output/ *zip*/output. zip /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= i386,compiler= gcc,platform= android, release= vivid+overlay/ 3103 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= i386,compiler= gcc,platform= android, release= vivid+overlay/ 3103/artifact/ output/ *zip*/output. zip /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= i386,compiler= gcc,platform= mesa,release= xenial+ overlay/ 3103 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= i386,compiler= gcc,platform= mesa,release= xenial+ overlay/ 3103/artifact/ output/ *zip*/output. zip
https:/
Executed test runs:
FAILURE: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
FAILURE: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild: /mir-jenkins. ubuntu. com/job/ mir-ci/ 2359/rebuild
https:/