DRM database property: scaling mode

Back to index

Details

Name
scaling mode
Flags
<none>
Type
enum
Attached to
connector
Specification
{"None", "Full", "Center", "Full aspect"}

Documentation

This property defines how a non-native mode is upscaled to the native
mode of an LCD panel:

None:
	No upscaling happens, scaling is left to the panel. Not all
	drivers expose this mode.
Full:
	The output is upscaled to the full resolution of the panel,
	ignoring the aspect ratio.
Center:
	No upscaling happens, the output is centered within the native
	resolution the panel.
Full aspect:
	The output is upscaled to maximize either the width or height
	while retaining the aspect ratio.

This property should be set up by calling
drm_connector_attach_scaling_mode_property(). Note that drivers
can also expose this property to external outputs, in which case they
must support "None", which should be the default (since external screens
have a built-in scaler).

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