DRM database property: rotation

Back to index

Details

Name
rotation
Flags
<none>
Type
bitmask
Attached to
plane
Specification
{"rotate-0", "rotate-90", "rotate-180", "rotate-270", "reflect-x", "reflect-y"}

Documentation

Rotation is set up with drm_plane_create_rotation_property(). It adds a
rotation and reflection step between the source and destination rectangles.
Without this property the rectangle is only scaled, but not rotated or
reflected.

Possbile values:

"rotate-<degrees>":
	Signals that a drm plane is rotated <degrees> degrees in counter
	clockwise direction.

"reflect-<axis>":
	Signals that the contents of a drm plane is reflected along the
	<axis> axis, in the same way as mirroring.

reflect-x::

		|o |    | o|
		|  | -> |  |
		| v|    |v |

reflect-y::

		|o |    | ^|
		|  | -> |  |
		| v|    |o |

Driver support

✗ adp
✓ amdgpu
✗ apple
✗ ast
✗ bochs-drm
✗ drm-rp1-dsi
✗ evdi
✗ exynos
✗ gma500
✓ i915
✓ imx-dcss
✗ imx-drm
✗ imx-lcdif
✗ jmgpu
✗ kirin
✓ mediatek
✓ meson
✗ mga2
✗ mgag200
✓ msm
✓ msm_drm
✗ mxsfb-drm
✗ nouveau
✓ nvidia-drm
✓ omapdrm
✗ panel-mipi-dbi
✗ pvr
✗ qxl
✗ radeon
✗ rcar-du
✓ rockchip
✓ rvdisplay
✗ simpledrm
✗ smifb
✓ spacemit
✓ starfive
✗ stm
✗ sun4i-drm
✗ sunxi-drm
✓ tegra
✗ tilcdc
✗ v3d
✗ vboxvideo
✓ vc4
✗ virtio_gpu
✗ vivante
✓ vkms
✗ vmwgfx
✓ vs-drm
✓ xe
✗ xlnx