direction_for_rotation(9)
π NAME π
okay so bestie, welcome to the Kernel API Manual β the main character here is direction_for_rotation, and it is literally about getting the correct reading direction for a given rotation. π
β¨ SYNOPSIS β¨
enum pixel_read_direction direction_for_rotation (unsigned int rotation
);
π§ ARGUMENTS π§
rotationβ the rotation to analyze, bestie. It corresponds to the fieldframe_info.rotation. π«
πΈ DESCRIPTION πΈ
This function uses the rotation setting of a source plane to compute the reading direction in that plane which corresponds to a "left to right writing" in the CRTC. periodt. π
For example, if the buffer is reflected on the X axis, the pixel must be read from right to left to be written from left to right on the CRTC. no cap, that is the whole vibe. β¨
π¦ SEE ALSO π¦
- Kernel file
./drivers/gpu/drm/vkms/vkms_composer.c pre_mul_alpha_blend(9)clamp_line_coordinates(9)blend_line(9)blend(9)vkms_composer_worker(9)
mwah π this cutie is from the ./drivers/gpu/drm/vkms source/version, dated October 2026, and the page is direction_for_rotation(9) β bye bestie, go slay some rotation logic π«Ά
π¦ 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