calculate_swath_params(9)
π 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:
- Kernel file
./drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_dcn6_calcs_dchub.cβ get_plane_params(9)πcompute_pre_rec_first_hdl(9)πcalculate_copy_swaths(9)πcalculate_alt_copy_time_us(9)πcalculate_ub_copy_size_per_plane_per_dpp_per_svp(9)π
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
- 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