STRUCT MPCC_BLND_CFG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ struct mpcc_blnd_cfg(9) πŸŽ€

okay so bestie, welcome to the Kernel API Manual ✨ we're about to get into struct mpcc_blnd_cfg and honestly? it's giving "blending configuration" main character energy πŸ’… this is the struct that holds all your MPCC blending vibes, no cap.


🌸 NAME 🌸

struct mpcc_blnd_cfg β€” MPCC blending configuration 🫢


✨ SYNOPSIS ✨

struct mpcc_blnd_cfg {
    struct tg_color black_color;
    enum mpcc_alpha_blend_mode alpha_mode;
    bool pre_multiplied_alpha;
    int global_gain;
    int global_alpha;
    bool overlap_only;
    int bottom_gain_mode;
    int background_color_bpc;
    int top_gain;
    int bottom_inside_gain;
    int bottom_outside_gain;
 };

like, that's the whole shape of it, copy it exactly please πŸ™ˆ


πŸ’– Members πŸ’–

  • black_color β€” background color. literally the background color, that's the whole job πŸ–€
  • alpha_mode β€” the alpha blend mode. it's an MPCC_ALPHA_BLND_MODE, iykyk.
  • pre_multiplied_alpha β€” whether the pixel color values were pre-multiplied by the alpha channel, as an MPCC_ALPHA_MULTIPLIED_MODE. so like, were they already multiplied or not, bestie 🌈
  • global_gain β€” used when the blend mode considers both pixel alpha and plane. both, not one, both πŸ‘‘
  • global_alpha β€” the plane alpha value. plane alpha. that's it, that's the whole vibe ✨
  • overlap_only β€” whether overlapping of different planes is allowed. yes/no situation πŸ¦‹
  • bottom_gain_mode β€” the blend mode for the bottom gain setting 🌸
  • background_color_bpc β€” the background color for bpc πŸŽ€
  • top_gain β€” top gain setting, slay ⭐
  • bottom_inside_gain β€” blend mode for bottom inside πŸ’œ
  • bottom_outside_gain β€” blend mode for bottom outside πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h overview(9)
  • enum mpcc_alpha_blend_mode(9)
  • struct mpcc(9)
  • struct mpc_tree(9)
  • struct mpc_funcs(9)

like, go read those too, they're all connected fr fr 🧚


okay that's the whole page bestie, you ate πŸ’… this one's filed under ./drivers/gpu/drm/amd/display/... and it's dated October 2026 β€” so mark your calendar, and remember: struct mpcc_blnd_cfg(9) is iconic, periodt 🌟

πŸ“¦ where this page comes from