Skip to content
Snippets Groups Projects
  1. Sep 17, 2018
  2. Sep 11, 2018
  3. Aug 31, 2018
  4. Aug 28, 2018
  5. Aug 27, 2018
  6. Aug 24, 2018
  7. Aug 20, 2018
  8. Aug 17, 2018
  9. Aug 10, 2018
  10. Aug 08, 2018
  11. Aug 07, 2018
  12. Aug 06, 2018
  13. Jul 27, 2018
  14. Jul 22, 2018
  15. Jul 13, 2018
  16. Jul 11, 2018
    • Daniel Stone's avatar
      compositor-drm: Enable planes for atomic · 678aabe8
      Daniel Stone authored
      
      Now that we can sensibly test proposed plane configurations with atomic,
      sprites are not broken.
      
      Signed-off-by: default avatarDaniel Stone <daniels@collabora.com>
      Reviewed-by: default avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
      678aabe8
    • Daniel Stone's avatar
      compositor-drm: Relax plane restrictions for atomic · 9fe4bf88
      Daniel Stone authored
      
      Since we now incrementally test atomic state as we build it, we can
      loosen restrictions on what we can do with planes, and let the kernel
      tell us whether or not it's OK.
      
      Signed-off-by: default avatarDaniel Stone <daniels@collabora.com>
      Reviewed-by: default avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
      9fe4bf88
    • Daniel Stone's avatar
      compositor-drm: Allow scanout plane to be occluded by overlay · b41abf9c
      Daniel Stone authored
      
      a0f8276f ("compositor-drm: Disallow overlapping overlay planes") was
      a little too pessimistic in rejecting occluded views. Whilst it
      correctly prevented overlay planes from occluding each other, it also
      prevented overlay planes from occluding the scanout plane.
      
      This is undesirable: the primary/scanout plane is specified to stack
      strictly below all overlay planes, so there is no need to reject a plane
      from consideration for scanout due to being occluded by an overlay
      plane.
      
      Shift the check downwards so it only applies to overlay rather than
      scanout planes.
      
      Signed-off-by: default avatarDaniel Stone <daniels@collabora.com>
      Reviewed-by: default avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
      b41abf9c
    • Daniel Stone's avatar
      compositor-drm: Incrementally test plane states in mixed mode · a284d271
      Daniel Stone authored
      
      In the plane-only mode, we try to place every view on a hardware plane,
      and fail if we can't do this. This requires a full walk of the scene
      graph to come up with a complete configuration in order to be able to
      test.
      
      In mixed mode, we know at least some visible views will fail to be
      promoted to planes and must be composited via the renderer. In order to
      still use some planes where possible, we use atomic modesetting's
      test-only mode to incrementally test configurations.
      
      We know that the renderer output will always be visible, and because it
      is the renderer, that it will be occupying the scanout plane underneath
      everything else. The actual renderer buffer doesn't materialise until
      after assign_planes, because it cannot know what to render until then.
      
      However, in order to test whether a configuration is valid, we need the
      renderer buffer in the scanout plane. For testing, we fake this by
      temporarily stealing the old buffer - if it seems sufficiently
      compatible - and placing it in the state we construct. This is used to
      test whether or not a renderer buffer will work with the addition of
      overlay planes.
      
      Doing this incremental testing will allow us to enable plane usage for
      atomic by default, since we know ahead of time that our chosen plane
      configuration will work.
      
      Signed-off-by: default avatarDaniel Stone <daniels@collabora.com>
      Reviewed-by: default avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
      a284d271
Loading