sti_hqvdp_check_hw_scaling(9)
β¨ NAME β¨
sti_hqvdp_check_hw_scaling β okay so the official NAME line is literally empty bestie, like the manpage said "name? never heard of her" and just left a little dash π so we're going with the function signature itself, iykyk
πΈ SYNOPSIS πΈ
bool sti_hqvdp_check_hw_scaling (struct sti_hqvdp *hqvdp , struct
drm_display_mode *mode , int src_w , int src_h , int dst_w , int dst_h
);
She returns a bool, she takes six arguments, and she's out here doing a whole vibe check on your scaling request π₯
π ARGUMENTS π
hqvdpβ thehqvdppointer, your main character struct fr frmodeβ the display mode, and yes it comes with timing constraints attached, she's got baggage (respectfully) πsrc_wβ source widthsrc_hβ source heightdst_wβ destination widthdst_hβ destination height
π¦ DESCRIPTION π¦
So what she actually does: she checks if the hardware is able to perform the scaling request π That's it, that's the whole job.
The firmware scaling limitation is literally this, no cap:
CEIL(1/Zy) <= FLOOR(LFW)
where:
- Zy =
OutputHeight / InputHeight - LFW =
(Tx * IPClock) / (MaxNbCycles * Cp) - Tx : Total video mode horizontal resolution
- IPClock : HQVDP IP clock (Mhz)
- MaxNbCycles :
max(InputWidth, OutputWidth) - Cp : Video mode pixel clock (Mhz)
It's giving math class but make it hardware β¨ like the firmware said "these are my boundaries" and she's just out here respecting them π«Ά
π RETURN π
True if the HW can scale. That's the whole return story bestie, either she can or she can't π
π SEE ALSO π
Kernel file ./drivers/gpu/drm/sti/sti_hqvdp.c β go read her, she's iconic β
And the whole friend group:
sti_hqvdp_get_free_cmd(9)sti_hqvdp_get_curr_cmd(9)sti_hqvdp_get_next_cmd(9)sti_hqvdp_update_hvsrc(9)sti_hqvdp_disable(9)sti_hqvdp_vtg_cb(9)sti_hqvdp_start_xp70(9)
Okay that's the whole page bestie, mwah π This lil slice of kernel wisdom lives in ./drivers/gpu/drm/sti, dated October 2026, and it's the Kernel API Manual section, sti_hqvdp_check_hw_scaling(9) β go scale something gorgeous π§ββοΈπ
π¦ 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