Skip to content
  • Daniel Stone's avatar
    compositor-drm: Add planes-only mode to state proposal · d12e5164
    Daniel Stone authored
    
    
    Add a new mode, which attempts to construct a scene exclusively using
    planes. This is a building block for incrementally testing and
    constructing state: in the plane-only mode, we test the state exactly
    once, when we have constructed a full set of planes and want to know if
    it works or not.
    
    When using the renderer, we need to incrementally test views one by one
    to see if they will work on planes, falling back to the renderer if not.
    This test is different, since the scanout plane will be occupied by the
    renderer's buffer. Testing using the renderer or client buffers may have
    completely different characteristics, so we need two passes: first,
    constructing a state with only planes and testing if that succeeds,
    falling back later to a mixed renderer/plane mode which tests
    incrementally.
    
    This implements the first mode, and preferentially attempts to use it.
    
    Signed-off-by: default avatarDaniel Stone <daniels@collabora.com>
    Reviewed-by: default avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
    d12e5164