Skip to content
  • Daniel Stone's avatar
    dri3: Use single-FD screen call for single-FD request · 75bba3ae
    Daniel Stone authored and Adam Jackson's avatar Adam Jackson committed
    
    
    When importing client buffers into Pixmaps, we can use the fds_to_pixmap
    hook for both single-FD and multi-FD client requests without any harm.
    
    For the other direction of exporting Pixmap buffers to client FDs,
    create a new helper which calls the old pixmap_to_fd hook if available.
    This allows the implementation to ensure that the Pixmap storage is
    accessible to clients not aware of multiple planes or modifiers, e.g. by
    reallocating and copying.
    
    This makes it possible to run a compositing manager on an old GLX/EGL
    stack on top of an X server which allocates internal buffer storage
    using exotic modifiers from modifier-aware GBM/EGL/KMS.
    
    Signed-off-by: default avatarDaniel Stone <daniels@collabora.com>
    Reported-by: default avatarAdam Jackson <ajax@redhat.com>
    Reviewed-by: default avatarAdam Jackson <ajax@redhat.com>
    75bba3ae