• Pekka Paalanen's avatar
    cms-colord: find a good head · cf0a476b
    Pekka Paalanen authored
    The 'head' member of 'struct weston_output' is going to go unused and
    then disappear, so stop using it and find a head from the proper list.
    
    However, this leaves a problem in cms-colord: if you have multiple
    monitors driver with the same CRTC, what do you say to the color
    management system? The monitors could be different, but all the color
    LUTs etc. are in the CRTC and are shared, as is the framebuffer.
    
    Do the simple hack here and just use whatever head happens to be the
    first in the list.
    
    The warning is printed in get_output_id(), because if heads are added or
    removed while the output is enabled, the id could change.
    
    v6:
    - add weston_output_get_first_head(), at first use
    - add warning message for nr. heads > 1
    Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
    Reviewed-by: default avatarIan Ray <ian.ray@ge.com>
    Reviewed-by: Daniel Stone's avatarDaniel Stone <daniels@collabora.com>
    Acked-by: default avatarDerek Foreman <derekf@osg.samsung.com>
    cf0a476b
cms-colord.c 15.5 KB