ENUM MPCC_ALPHA_BLEND_MODE(9)
π enum mpcc_alpha_blend_mode(9) β a Kernel API Manual moment, section 9 bestie
okay so this is a page from the Kernel API Manual, and it's literally just a lil enum that decides how alpha blending treats pixel alpha versus plane alpha. lowkey iconic, highkey essential if you're doing display hardware stuff. let's get into it π«Ά
β¨ NAME β¨
enum mpcc_alpha_blend_mode β it defines the alpha blend mode regarding pixel alpha and plane alpha values. that's the whole vibe. nothing more, nothing less π
πΈ SYNOPSIS πΈ
here's the whole shape of it, no cap:
enum mpcc_alpha_blend_mode {
MPCC_ALPHA_BLEND_MODE_PER_PIXEL_ALPHA ,
MPCC_ALPHA_BLEND_MODE_PER_PIXEL_ALPHA_COMBINED_GLOBAL_GAIN ,
MPCC_ALPHA_BLEND_MODE_GLOBAL_ALPHA
};
three constants, all main character energy, all listed below π
π Constants π
MPCC_ALPHA_BLEND_MODE_PER_PIXEL_ALPHAβ per pixel alpha, using the DPP alpha value. simple, clean, slay β¨MPCC_ALPHA_BLEND_MODE_PER_PIXEL_ALPHA_COMBINED_GLOBAL_GAINβ per pixel alpha, but the DPP alpha value gets multiplied by a global gain (which is the plane alpha). it's giving "per pixel but make it collaborative" π«MPCC_ALPHA_BLEND_MODE_GLOBAL_ALPHAβ global alpha value only. it literally ignores pixel alpha and considers only plane alpha. not me being dismissive of pixel alpha... it's just the mode's whole thing π
π¦ SEE ALSO π¦
go read these next, bestie, they're all connected iykyk:
- Kernel file
./drivers/gpu/drm/amd/display/dc/inc/hw/mpc.hoverview(9) - struct
mpcc_blnd_cfg(9) - struct
mpcc(9) - struct
mpc_tree(9) - struct
mpc_funcs(9)
fr fr, this page lives at ./drivers/gpu/drm/amd/display/... and it's dated October 2026, brought to you by the section 9 girlies. go off, alpha blend mode, periodt ππ·
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms