calculate_ti...with_padding(9)
π calculate_ti...with_padding(9) β Kernel API Manual
okay so bestie, welcome to the group chat where we talk about DSC padding timing math and honestly? it's giving niche but iconic. this page lives in the Kernel API Manual, and yes the title got truncated, we don't talk about it π
β¨ NAME β¨
calculate_timing_params_for_dsc_with_padding β literally calculates the timing parameters for DSC with padding. that's the whole vibe. π
πΈ SYNOPSIS πΈ
void calculate_timing_params_for_dsc_with_padding (struct pipe_ctx
*pipe_ctx );
no cap, that's the entire signature. one function, one pointer, zero drama. π¦
π ARGUMENTS π
pipe_ctxβ pointer to the pipe context structure. that's it, that's the argument. it's the main character of this function and we respect it π
π₯ DESCRIPTION π₯
okay so here's the tea, bestie π this function takes a given pipe context and calculates its timing parameters based on the display stream compression (DSC) configuration. very demure, very mindful.
now for the actual logic, and ngl it's kind of a two-step situation:
- if the horizontal active pixels (
hactive) are less than the total width of the DSC slices, it sets thedsc_hactive_paddingvalue to the difference. math is mathing β¨ - if the total horizontal timing minus the
dsc_hactive_paddingvalue is less than 32, it resets thedsc_hactive_paddingvalue to0. we love a clean reset, periodt π
fr fr, keep those two checks straight β the first one sets the padding, the second one yeets it back to zero if things get too small. don't mix them up π
π SEE ALSO π
- the kernel file itself, living its best life at
./drivers/gpu/drm/amd/display/dc/core/dc_resource.cποΈ resource_validate_probe_set(9)dc_validate_with_context(9)dc_update_modified_pix_clock_for_dsc_with_padding(9)β the sequel, lowkey iconicdc_validate_global_state(9)
go read those too, iykyk π
signing off with love from the kernel tree at ./drivers/gpu/drm/amd/display/... β October 2026, and this whole page is filed under calculate_ti...with_padding(9) because apparently we're keeping the truncated title forever ππ«Ά 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