Skip to content
Snippets Groups Projects

Integrate libdisplay-info (optional at first)

Merged Pekka Paalanen requested to merge pq/weston:mr/di_info into main
1 unresolved thread
4 files
+ 55
0
Compare changes
  • Side-by-side
  • Inline
Files
4
  • d6a4c58f
    backend-drm: use libdisplay-info · d6a4c58f
    Pekka Paalanen authored
    Add libdisplay-info as a better alternative for parsing EDID. This way
    we do not need to extend Weston's ad hoc parser for new things that
    especially HDR support requires.
    
    Eventually the ad hoc parser will be deleted and libdisplay-info becomes
    a hard dependency for the drm-backend, reducing our maintenance burden.
    Unlike the ad hoc code, libdisplay-info has automated CI testing.
    
    Signed-off-by: default avatarPekka Paalanen <pekka.paalanen@collabora.com>
+ 4
0
@@ -1401,6 +1401,10 @@ wet_output_set_eotf_mode(struct weston_output *output,
if ((weston_output_get_supported_eotf_modes(output) & eotf_mode) == 0) {
weston_log("Error: output '%s' does not support EOTF mode %s.\n",
output->name, str);
#if !HAVE_LIBDISPLAY_INFO
weston_log_continue(STAMP_SPACE "Weston was built without libdisplay-info, "
"so HDR capabilities cannot be detected.\n");
#endif
free(str);
return -1;
}
Loading