~mir-team/mir/0.17

Viewing all changes in revision 2771.

  • Committer: Tarmac
  • Author(s): Daniel van Vugt
  • Date: 2015-07-23 06:36:32 UTC
  • mfrom: (2740.1.37 egl-pixel-format)
  • Revision ID: tarmac-20150723063632-z661j37cgb5z6u9c
Add a new client function: mir_connection_get_egl_pixel_format
that solves the ambiguity in matching an EGLConfig with the correct
MirPixelFormat.

Although we've got by with guessing until now, that only works with
a very small number of pixel formats and is not reliable as we add
more formats and more platforms.

It turns out Android already solved this with its standard extension
"EGL_KHR_platform_android", so we use that. As for mesa-kms, it turns
out GBM really only supports two pixel formats correctly so is easy
to match those up. Fixes: https://bugs.launchpad.net/bugs/1460149.

Approved by Daniel van Vugt, PS Jenkins bot, Kevin DuBois, Chris Halse Rogers, Robert Carr, Alberto Aguirre.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: