Mir

Merge lp:~kdub/mir/fix-1272597 into lp:mir

Proposed by Kevin DuBois
Status: Merged
Approved by: Alexandros Frantzis
Approved revision: no longer in the source branch.
Merged at revision: 1358
Proposed branch: lp:~kdub/mir/fix-1272597
Merge into: lp:mir
Diff against target: 26 lines (+1/-7)
1 file modified
tests/integration-tests/client/test_client_render.cpp (+1/-7)
To merge this branch: bzr merge lp:~kdub/mir/fix-1272597
Reviewer Review Type Date Requested Status
Alan Griffiths Approve
Andreas Pokorny (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+203195@code.launchpad.net

Commit message

fix integration test failure on the galaxy nexus that was due to creating two surfaces and registering the same buffer twice

fixes: lp: #1272597

Description of the change

fix integration test failure on the galaxy nexus that was due to creating two surfaces and registering the same buffer twice.

the current code makes two surfaces, only one of which was used. eliminate the 2nd surface creation.

fixes: lp: #1272597

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Andreas Pokorny (andreas-pokorny) :
review: Approve
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

I don't follow why would creating two surfaces cause a problem? AFAICS the egl test code only references one of them and we should support having multiple surfaces on a connection.

NM I get it - the stub server only supports a single buffer. (Burbling left in case anyone else is confused.)

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

> I don't follow why would creating two surfaces cause a problem? AFAICS the egl
> test code only references one of them and we should support having multiple
> surfaces on a connection.
>
> NM I get it - the stub server only supports a single buffer. (Burbling left in
> case anyone else is confused.)

Yeah, the 'server' test stub doesn't handle multi-surfaces.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/integration-tests/client/test_client_render.cpp'
2--- tests/integration-tests/client/test_client_render.cpp 2014-01-13 06:12:33 +0000
3+++ tests/integration-tests/client/test_client_render.cpp 2014-01-25 01:35:47 +0000
4@@ -120,13 +120,7 @@
5 {
6 process_sync.wait_for_signal_ready_for();
7
8- MirSurfaceParameters surface_parameters
9- {
10- "testsurface", test_width, test_height, mir_pixel_format_abgr_8888,
11- mir_buffer_usage_hardware, mir_display_output_id_invalid
12- };
13 auto connection = mir_connect_sync(socket_file, "test_renderer");
14- auto surface = mir_connection_create_surface_sync(connection, &surface_parameters);
15
16 /* set up egl context */
17 int major, minor, n;
18@@ -173,7 +167,7 @@
19 eglSwapBuffers(egl_display, egl_surface);
20 }
21
22- mir_surface_release_sync(surface);
23+ mir_surface_release_sync(mir_surface);
24 mir_connection_release(connection);
25 return 0;
26 }

Subscribers

People subscribed via source and target branches