weston/libweston/backend-drm
Pekka Paalanen 8e42af02a6 gl_renderer: introduce gl_renderer_get_egl_config()
In an attempt to pull more of EGLConfig choosing into one place, refactor code
into the new gl_renderer_get_egl_config(). The purpose of this function is to
find an EGL config that not only satisfies the requested attributes and the
pixel formats if given but also makes sure the config is generally compatible
with the single GL context we have.

All this was already checked in gl_renderer_create_window_surface(), but
gl_renderer_create_pbuffer_surface() is still missing it. This patch is
preparation for fixing the pbuffer path.

We explicitly replace visual_id with drm_formats, because that is what they
really are. Only the DRM backend passes in other than NULL/0, and if other
backends start caring about the actual pixel format, drm_format is the lingua
franca.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
2019-10-04 12:17:18 +03:00
..
drm-internal.h backend-drm: Add support for content-protection 2019-08-26 16:18:22 +05:30
drm.c gl_renderer: introduce gl_renderer_get_egl_config() 2019-10-04 12:17:18 +03:00
fb.c backend-drm: Enforce content protection for hardware planes 2019-08-23 20:51:43 +00:00
kms.c backend-drm: Check for HDCP Content Type property before setting 2019-08-30 19:46:04 +05:30
libbacklight.c backend-drm: move into new subdir 2019-05-16 13:32:34 +01:00
libbacklight.h backend-drm: move into new subdir 2019-05-16 13:32:34 +01:00
meson.build compositor-drm: Split assign_planes() into separate file 2019-06-26 23:08:36 +01:00
modes.c compositor-drm: Move mode handling to separate file 2019-06-26 23:08:36 +01:00
state-helpers.c backend-drm: Add support for content-protection 2019-08-26 16:18:22 +05:30
state-propose.c backend-drm: Add support for content-protection 2019-08-26 16:18:22 +05:30
vaapi-recorder.c backend-drm: move into new subdir 2019-05-16 13:32:34 +01:00
vaapi-recorder.h backend-drm: move into new subdir 2019-05-16 13:32:34 +01:00