Skip to content
Snippets Groups Projects
  1. Jul 06, 2018
  2. Jul 05, 2018
    • Pekka Paalanen's avatar
      libweston: fix output reflow on removal · 9711fd98
      Pekka Paalanen authored
      
      This is regression apparently introduced in
      0de859ed, which accidentally swapped the
      sign of 'delta_width' in the original call site. If one removes an
      output, the remaining outputs on the right are getting moved even
      further to the right.
      
      The outputs to the right should be moved to the left instead, to close
      the gap left by the removed output.
      
      Reported-by: default avatarTomasz Olszak <olszak.tomasz@gmail.com>
      Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
      Reviewed-by: default avatarIan Ray <ian.ray@ge.com>
      9711fd98
    • Pekka Paalanen's avatar
      desktop-shell: fix output removal for background/panel · 82dd54d9
      Pekka Paalanen authored
      
      When the compositor has multiple outputs (not clones) and one of them is
      removed, the ones remaining to the right will be moved to close the gap.
      Because reflowing the remaining outputs happens before removing the
      wl_output global, we get the new output x,y before the removal. This
      causes us to consider the remaining output immediately to the right of
      the removed output to be a clone of the removed output whose x,y don't
      get updated. That will then hit the two assertions this patch removes.
      
      The reason the assertions were not actually hit is because of a
      compositor bug which moved the remaining outputs in the wrong direction.
      The next patch will fix the reflow, so we need this patch first to avoid
      the asserts.
      
      Remove the assertions and hand over the background and panel if the
      "clone" does not already have them. If the clone already has them, we
      destroy the unnecessary background and panel.
      
      Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
      Reviewed-by: default avatarMarius Vlad <marius-cristian.vlad@nxp.com>
      82dd54d9
  3. Jul 03, 2018
  4. Jul 02, 2018
  5. Jun 29, 2018
    • Pekka Paalanen's avatar
      weston: add force-on option for DRM · 90718170
      Pekka Paalanen authored
      
      Add a new boolean output section key "force-on". When set to true, the
      output will be enabled regardless of connector status. This is the
      opposite of the mode=off setting.
      
      Forcing connectors on is useful in special circumstances: avoid output
      configuration changes due to hotplug e.g. with KVM switches, or hardware
      with unreliable connector status readout for example.
      
      Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
      Reviewed-by: default avatarIan Ray <ian.ray@ge.com>
      90718170
    • Pekka Paalanen's avatar
      weston: support clone mode on DRM-frontend · 944dd235
      Pekka Paalanen authored
      Add a new output section key "same-as" for configuring clone mode. An
      output marked "same-as" another output will be configured identically to
      the other output.
      
      The current implementation supports only CRTC sharing for clone mode.
      Independent CRTC clone mode cannot be supported until output layout
      logic is moved from libweston into the frontend and libweston's damage
      tracking issues stemming from overlapping outputs are solved.
      
      Quite a lot of infrastructure is needed to properly configure clone
      mode. The implemented logic allows easy addition of independent CRTC
      clone mode once libweston supports it. The idea is that wet_layoutput is
      the item to be laid out and all weston_outputs a wet_layoutput
      contains show exactly the same area of the desktop.
      
      The configuration logic attempts to automatically fall back to creating
      more weston_outputs when all heads do not work under the same
      weston_output. For now, the fallback path ends with an error message.
      
      Enabling a weston_output is bit complicated, because one needs to first
      collect all relevant heads, try to attach them all to the weston_output,
      and then back up head by head until enabling the weston_output succeeds.
      A new weston_output is created for the left-over heads and the process
      is repeated.
      
      CRTC-sharing clone mode is the most efficient clone mode, offering
      synchronized scanout timings, but it is not always supported by
      hardware.
      
      v10:
      - rebased trivial conflicts in man page
      - switch to gitlab issue URL
      
      v9:
      - replace weston_compositor_set_heads_changed_cb() with
        weston_compositor_add_heads_changed_listener()
      - remove workaround in simple_head_enable()
      
      v6:
      - Add man-page note about cms-colord.
      - Don't create an output just to turn it off.
      
      Fixes: https://gitlab.freedesktop.org/wayland/weston/issues/22
      
      
      
      Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
      Acked-by: default avatarDerek Foreman <derekf@osg.samsung.com>
      Acked-by: Daniel Stone's avatarDaniel Stone <daniels@collabora.com>
      Reviewed-by: default avatarIan Ray <ian.ray@ge.com>
      944dd235
Loading