dpu_crtc_check_mode_changed(9)
π dpu_crtc_check_mode_changed(9) β from the Kernel API Manual, bestie β¨
Okay so this one is from the Kernel API Manual (yes, the (9) section, we love a kernel-internals moment π) and it's genuinely so useful β it's the little function that answers the question everyone asks before a big change: do we need to redo the whole modeset, or are we fine? π¦
πΈ NAME πΈ
dpu_crtc_check_mode_changed β literally just checking if a full modeset is required, no cap π
β¨ SYNOPSIS β¨
int dpu_crtc_check_mode_changed (struct drm_crtc_state *old_crtc_state ,
struct drm_crtc_state *new_crtc_state );
So it takes two states and gives you back an int β that's the whole vibe check in one line π«Ά
π ARGUMENTS π
old_crtc_stateβ the previous CRTC state, aka the "before" pic πΈnew_crtc_stateβ the corresponding CRTC state that's gonna get checked, aka the "after" pic πͺ
Two states, one comparison, we're so back π
π₯ DESCRIPTION π₯
The way this function's whole job is to check if the changes in the object properties demand full mode set β that's it, that's the function π It looks at what changed between those two states and tells you whether the properties shifted enough that a full modeset is required. Not a partial thing, not a "eh, close enough" thing β full mode set. Periodt π
π SEE ALSO π
Kernel file: ./drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c β the main character file itself, go read it iykyk π
And the whole friend group π:
_dpu_crtc_blend_setup(9)_dpu_crtc_complete_flip(9)dpu_crtc_get_intf_mode(9)dpu_crtc_vblank_callback(9)dpu_crtc_frame_event_cb(9)dpu_crtc_complete_commit(9)dpu_crtc_destroy_state(9)dpu_crtc_commit_kickoff(9)dpu_crtc_duplicate_state(9)dpu_crtc_vblank(9)dpu_crtc_get_num_lm(9)dpu_crtc_init(9)
Squad goals, fr fr π§
Quick reminder bestie: this one's only a check β it tells you if a full modeset is required, it doesn't do the whole thing for you π
Alright that's the page! Source/version biz: this lives over in ./drivers/gpu/drm/msm/disp/dpu1, and it's dated October 2026 β so go forth, check those mode changes, and slay π
β¨π
π¦ 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