Skip to content
  • Pekka Paalanen's avatar
    renderer/native: Debug print chosen secondary FB format · a62dbc66
    Pekka Paalanen authored and Jonas Ådahl's avatar Jonas Ådahl committed
    Print the pixel format chosen for an output on a secondary GPU for
    debugging. Knowing the format can aid in debugging e.g. red/blue channel
    swaps and CPU copy performance issues.
    
    This adds a DRM format printing helper in meta-crtc-kms.h. This header
    is included in most native backend files making it widely available,
    while DRM formats are specific to the native backend. It could be shared
    with Wayland bits, DRM format codes are used there too.
    
    The helper makes the pixel format much more readable than a "%x".
    
    GNOME/mutter!341
    a62dbc66