Skip to content
  • Daniel Stone's avatar
    renderer/native: Create GBM surfaces with modifiers · cc4e0071
    Daniel Stone authored and Jonas Ådahl's avatar Jonas Ådahl committed
    Now that we have the list of supported modifiers from the monitor
    manager (via the CRTCs to the primary planes), we can use this to inform
    EGL it can use those modifiers to allocate the GBM surface with. Doing
    so allows us to use tiling and compression for our scanout surfaces.
    
    This requires the Mesa commit in:
    Mesa 10.3 (08264e5dad4df448e7718e782ad9077902089a07) or
    Mesa 10.2.7 (55d28925e6109a4afd61f109e845a8a51bd17652).
    Otherwise Mesa closes the fd behind our back and re-importing will fail.
    See FDO bug #76188 for details.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=785779
    cc4e0071