calculate_swath_params(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… calculate_swath_params(9) β€” a Kernel API Manual moment

okay so bestie, we're in the Kernel API Manual today and this one's a function page, so buckle up πŸŽ€


✨ NAME ✨

calculate_swath_params β€” the function that calculates the swath-related params for the alt-channel and hands you back the values πŸ¦‹


✨ SYNOPSIS ✨

void calculate_swath_params (const struct
dml2_core_calcs_calculate_alternate_params *p , unsigned int plane_idx ,
bool chroma , struct swath_params *out );

no cap, that's the whole signature, copy it exactly, don't be weird about it πŸ’–


✨ ARGUMENTS ✨

okay so here's the thing. the original page is genuinely giving mystery with these ones. I'm not making this up, this is literally what it says for each and every one of them:

  • p β€” -- undescribed -- πŸ™ˆ
  • plane_idx β€” -- undescribed -- πŸ™ˆ
  • chroma β€” -- undescribed -- πŸ™ˆ
  • out β€” -- undescribed -- πŸ™ˆ

like. the audacity. but that's the tea and I'm not gonna invent lore that isn't there. if you need the deets on what each one wants, go read the header, bestie, iykyk πŸ’€


✨ DESCRIPTION ✨

so what does this icon actually do? she calculates these four things, periodt:

  • number of prefetch swaths 🌸
  • number of total swaths 🌸
  • recout_hdl_delta (the number of dst lines between hdls in recout) 🌸
  • prefetch_hdl_delta (the number of dst lines between hdls in prefetch) 🌸

and then she returns all of it to the out parameter 🫢 that's it, that's the whole vibe. in goes the calculating, out comes the swath params. main character energy only.


✨ SEE ALSO ✨

go touch some other pages, bestie, they're all linked up:


lowkey reminder that calculate_ub_copy_size_per_plane_per_dpp_per_svp is a real name and someone typed it on purpose. respect. πŸ‘‘

and that's the page!! πŸ“ she's from ./drivers/gpu/drm/amd/display/..., dated October 2026, and yes we're running it back one more time: calculate_swath_params(9). mwah, slay, go calculate some swaths πŸ’…βœ¨πŸ§š

πŸ“¦ where this page comes from