update_plane...stream_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, welcome to the update_plane...stream_state(9) page from the Kernel API Manual ✨. the main character here is update_planes_and_stream_state, and she's the function that takes planes and stream updates as inputs and determines the appropriate update type. if the update type is FULL, she allocates a new context, populates it, and validates it. otherwise, she updates the current dc context. she returns both new_context and new_update_type back to the caller, and she also backs up both the current and new contexts into the corresponding dc state scratch memory 🫢.

TODO bestie, and it's a real one: the function does too many things, and it even conditionally allocates dc context memory implicitly. the note says we should consider to break it down πŸ˜­πŸ’….


✨ SYNOPSIS ✨

bool update_planes_and_stream_state (struct dc *dc , struct
       dc_surface_update *srf_updates , int surface_count , struct
       dc_stream_state *stream , struct dc_stream_update *stream_update , enum
       dc_update_type *new_update_type , struct dc_state **new_context );

πŸŽ€ ARGUMENTS πŸŽ€

  • dc β€” current DC state.
  • srf_updates β€” an array of surface updates.
  • surface_count β€” surface update count.
  • stream β€” corresponding stream to be updated.
  • stream_update β€” stream update.
  • new_update_type β€” [out] determined update type by the function.
  • new_context β€” [out] new context allocated and validated if update type is FULL, reference to current context if update type is less than FULL.

🌸 RETURN 🌸

true if a valid update is populated into new_context, false otherwise.


πŸ¦‹ SEE ALSO πŸ¦‹

the whole linked-list friend group is here, bestie πŸ’–:


okay that's the tea πŸ’… β€” source/version: ./drivers/gpu/drm/amd/display/..., date: October 2026, and this page is update_plane...stream_state(9). catch u later bestie 🫢✨

πŸ“¦ where this page comes from