drm_rect_clip_scaled(9)
π drm_rect_clip_scaled(9) π
okay bestie, welcome to the Kernel API Manual entry for drm_rect_clip_scaled(9) β yes, the manual name is folded in right here like a little name tag π«Ά
β¨ NAME β¨
drm_rect_clip_scaled β the function that does a scaled clip operation π
πΈ SYNOPSIS πΈ
bool drm_rect_clip_scaled (struct drm_rect *src , struct drm_rect *dst ,
const struct drm_rect *clip );
π¦ ARGUMENTS π¦
srcβ source window rectangle. the origin one, lowkey important πdstβ destination window rectangle. the one that gets clipped, bestie πclipβ clip rectangle. the boundary icon doing the clipping β¨
π DESCRIPTION π
So here's the tea: this clips rectangle dst by rectangle clip. Then it clips rectangle src by the corresponding amounts, retaining the vertical and horizontal scaling factors from src to dst. no cap, that's the whole vibe check π
β RETURN β
Returns true if rectangle dst is still visible after being clipped, and false otherwise. periodt π«
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/drm_rect.c drm_rect_intersect(9)drm_rect_calc_hscale(9)drm_rect_calc_vscale(9)drm_rect_debug_print(9)drm_rect_rotate(9)drm_rect_rotate_inv(9)
xoxo, your kernel bestie π β signed from ./drivers/gpu/drm, dated October 2026, page drm_rect_clip_scaled(9). 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