drm: add "auto" dithering method
Subsystems (2)
PATCH 1/1 drm: add "auto" dithering method
From: Ben Skeggs <[email protected]>
There's no convenient/reliable way for drivers to both obey the dithering mode property, and to be able to attempt to provide a good default in all cases.
This commit adds an "auto" method to the property which drivers can default to if they wish, whilst still allowing the user to override the choice as they do now.
--- drivers/gpu/drm/drm_crtc.c | 1 + include/drm/drm_mode.h | 1 + 2 files changed, 2 insertions(+), 0 deletions(-)
drivers/gpu/drm/drm_crtc.c +1 -0
@@ -80,6 +80,7 @@ static struct drm_prop_enum_list drm_dithering_mode_enum_list[] = { { DRM_MODE_DITHERING_OFF, "Off" }, { DRM_MODE_DITHERING_ON, "On" }, + { DRM_MODE_DITHERING_AUTO, "Automatic" }, }; /*
include/drm/drm_mode.h +1 -0
@@ -74,6 +74,7 @@/* Dithering mode options */ #define DRM_MODE_DITHERING_OFF 0#define DRM_MODE_DITHERING_ON 1 +#define DRM_MODE_DITHERING_AUTO 2/* Dirty info options */ #define DRM_MODE_DIRTY_OFF 0
Signature · 1 line
1.7.1.1
Dave Airlie
AppliedQuoted 9 lines · Ben Skeggs
From: Ben Skeggs <[email protected]>
There's no convenient/reliable way for drivers to both obey the dithering mode property, and to be able to attempt to provide a good default in all cases.
This commit adds an "auto" method to the property which drivers can default to if they wish, whilst still allowing the user to override the choice as they do now.
Pushed to drm-core-next.
Thanks,
Dave.