• Pekka Paalanen's avatar
    crtc/kms: Add fallback primary plane formats · 8a0d0ce9
    Pekka Paalanen authored
    This avoids having to hardcode the same fallbacks elsewhere multiple
    times when determining what formats might be suitable for a set of
    CRTCs. The formats_modifiers hash table is now guaranteed to be
    populated with at least something, so future code will not need to
    handle it being empty.
    
    The hardcoded fallback formats are a minimal set probably supported by
    most hardware. XRGB8888 is the format that, according to ancient lore,
    all DRM devices should support, especially if they don't have the
    capability to advertise otherwise. Mutter also hardcodes XRGB8888 as the
    GBM surface format, so it is already required on primary GPUs.
    
    XBGR8888 matches the most common OpenGL format, sans alpha channel since
    scanout hardware has not traditionally supported alpha. XBGR8888 is here
    also because Mutter hardcodes that format for secondary GPU outputs when
    using the CPU copy path.
    
    !341
    8a0d0ce9
Name
Last commit
Last update
.gitlab-ci Loading commit data...
clutter Loading commit data...
cogl Loading commit data...
data Loading commit data...
doc Loading commit data...
po Loading commit data...
src Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
COPYING Loading commit data...
NEWS Loading commit data...
README.md Loading commit data...
config.h.meson Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...
mutter.doap Loading commit data...