drm/i915 : Added a new 'window size' property for connector
Subsystems (3)
RFC 1/1 drm/i915 : Added a new 'window size' property for connector
From: Akash Goel <[email protected]>
Added a new 'window size' property for connectors. This can be used to control the output window size of Panel fitter.
Also addd a new mode 'Manual' to existing 'scaling mode' property.
Signed-off-by G Pallavi <[email protected]>
Signed-off-by Akash Goel <[email protected]>
--- drivers/gpu/drm/drm_crtc.c | 1 + drivers/gpu/drm/i915/intel_dp.c | 58 ++++++++++++++++++--- drivers/gpu/drm/i915/intel_drv.h | 8 +++ drivers/gpu/drm/i915/intel_panel.c | 104 +++++++++++++++++++++++++++++++++++++ include/drm/drm_crtc.h | 3 ++ include/uapi/drm/drm_mode.h | 1 + 6 files changed, 167 insertions(+), 8 deletions(-)
drivers/gpu/drm/drm_crtc.c +1 -0
@@ -123,6 +123,7 @@ static const struct drm_prop_enum_list drm_scaling_mode_enum_list[] = { DRM_MODE_SCALE_FULLSCREEN, "Full" }, { DRM_MODE_SCALE_CENTER, "Center" }, { DRM_MODE_SCALE_ASPECT, "Full aspect" }, + { DRM_MODE_SCALE_MANUAL, "Manual" }, };/*
drivers/gpu/drm/i915/intel_dp.c +50 -8
82 lines not on this page · raw message
drivers/gpu/drm/i915/intel_drv.h +8 -0
@@ -157,6 +157,8 @@ struct intel_panel {struct drm_display_mode *fixed_mode;struct drm_display_mode *downclock_mode;int fitting_mode; +u32 display_window_size; +bool display_window_size_changed;/* backlight */ struct {
@@ -841,9 +843,15 @@ void intel_fixed_panel_mode(const struct drm_display_mode *fixed_mode,void intel_pch_panel_fitting (struct intel_crtc *crtc,struct intel_crtc_config *pipe_config,int fitting_mode); +void intel_pch_manual_panel_fitting (struct intel_crtc *intel_crtc, +struct intel_crtc_config *pipe_config, +u32 display_window_size);void intel_gmch_panel_fitting (struct intel_crtc *crtc,struct intel_crtc_config *pipe_config,int fitting_mode); +void intel_gmch_manual_panel_fitting (struct intel_crtc *crtc, +struct intel_crtc_config *pipe_config, +u32 display_window_size);void intel_panel_set_backlight (struct intel_connector *connector,u32 level,u32 max);int intel_panel_setup_backlight (struct drm_connector *connector);
drivers/gpu/drm/i915/intel_panel.c +104 -0
116 lines not on this page · raw message
include/drm/drm_crtc.h +3 -0
@@ -902,6 +902,9 @@ struct drm_mode_config {struct drm_property *scaling_mode_property;struct drm_property *dirty_info_property; +/* Panel fitter output property */ +struct drm_property *window_size_property; +/* dumb ioctl parameters */ uint32_t preferred_depth, prefer_shadow;
include/uapi/drm/drm_mode.h +1 -0
@@ -87,6 +87,7 @@#define DRM_MODE_SCALE_FULLSCREEN 1/* Full screen, ignore aspect */ #define DRM_MODE_SCALE_CENTER 2/* Centered, no scaling */ #define DRM_MODE_SCALE_ASPECT 3/* Full screen, preserve aspect */ +#define DRM_MODE_SCALE_MANUAL 4/* User can control display window size */ /* Dithering mode options */ #define DRM_MODE_DITHERING_OFF 0
Signature · 1 line
1.8.5.2