is_svp_dst_in_next_frame(9)
π is_svp_dst_in_next_frame(9) π
okay so bestie, welcome to the is_svp_dst_in_next_frame(9) page from the Kernel API Manual β yes that manual, we're in the kernel docs girlies now, pop off π
This one is a helper function that figures out if a swath index (plus the dst line that's associated with it) belongs to the current frame or the next frame. and before you ask β the swath index can be a regular swath or an END swath, both are valid, we love inclusivity π
β¨ SYNOPSIS β¨
Like, literally the whole signature, character for character, no touchy:
bool is_svp_dst_in_next_frame (uint32_t swath_index , uint16_t
pre_swath_incl_boundary , uint32_t prefetch_swaths , uint32_t
pre_first_hdl_x1000 , uint32_t rec_first_hdl_x1000 , uint32_t
pre_hdl_delta_x1000 , uint32_t rec_hdl_delta_x1000 , uint32_t
curr_otg_line , uint32_t curr_frame_count , uint32_t dst_line , uint32_t
target_frame_count , uint16_t vstartup );
twelve parameters. TWELVE. she's high-maintenance and honestly? iconic π
πΈ ARGUMENTS πΈ
so here's the thing, bestie β the original docs literally say -- undescribed -- for every single one of these. not me making it up, that's canon. so we're listing them all and being fully transparent about the mystery π«Ά
swath_indexβ-- undescribed --(a mystery, a legend, a vibe)pre_swath_incl_boundaryβ-- undescribed --prefetch_swathsβ-- undescribed --pre_first_hdl_x1000β-- undescribed --rec_first_hdl_x1000β-- undescribed --pre_hdl_delta_x1000β-- undescribed --rec_hdl_delta_x1000β-- undescribed --curr_otg_lineβ-- undescribed --curr_frame_countβ-- undescribed --dst_lineβ-- undescribed --target_frame_countβ-- undescribed --vstartupβ-- undescribed --
ngl, all twelve showing up as -- undescribed -- is lowkey giving "the wiki page is a stub" energy π but we keep every one, periodt.
β RETURN β
Returns true if the swath and its associated dst line are considered part of the "next" frame, and false otherwise. that's it, that's the whole personality π
and then, right after that sentence, the original just drops this absolute unit of a line:
***********************************************************************************************************
not a single crumb of context. we respect the drama π
π¦ SEE ALSO π¦
The kernel file lives here, bestie, don't lose it:
./drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_standalone_libraries/alternate_pstate_shared_lib.c
and the whole friend group shows up too, so go say hi to:
in_circular_range(9)apply_svp1_workaround(9)calculate_start_line_and_height_from_swath(9)get_swath_deadlines(9)calculate_swath_deadline_dst(9)is_dst_in_next_frame(9)is_end_swath_in_next_frame(9)calculate_swath_idx_from_dst(9)populate_svp_params(9)populate_start_index_num_swaths_helper(9)calculate_start_index_num_swaths(9)calculate_hubp_start_end_lines(9)get_prefetch_end_line(9)get_effective_vblank_start(9)
real talk: every argument on this page is documented as -- undescribed --, so if you need the actual semantics, you're gonna have to go read the source, bestie. no cap, that's not a me problem, that's a docs problem π
and that's the whole page, babes π this iconic little number ships from the source tree at ./drivers/gpu/drm/amd/display/... β October 2026 edition β mwah, take care, drink water, and remember: true if next frame, false otherwise πβ¨
π¦ 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