diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2021-03-30 21:42:54 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2021-04-19 18:28:03 +0300 |
commit | 4028988ea52971891e8b9c672673fd0de53bcf61 (patch) | |
tree | ea9e7d69b9641b4f70366143125114a1d46e347e /drivers/gpu/drm/i915/display/intel_atomic_plane.h | |
parent | b876e79d7bffb2e6f78c291ddcd1f76c4e3fe5c5 (diff) | |
download | linux-4028988ea52971891e8b9c672673fd0de53bcf61.tar.gz linux-4028988ea52971891e8b9c672673fd0de53bcf61.tar.bz2 linux-4028988ea52971891e8b9c672673fd0de53bcf61.zip |
drm/i915: Reuse intel_adjusted_rate() for pfit pixel rate adjustment
Replace the hand rolled pfit downscale calculations with
intel_adjusted_rate().
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210330184254.6290-2-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_atomic_plane.h')
-rw-r--r-- | drivers/gpu/drm/i915/display/intel_atomic_plane.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_atomic_plane.h b/drivers/gpu/drm/i915/display/intel_atomic_plane.h index 5c78a087ed86..dc4d05e75e1c 100644 --- a/drivers/gpu/drm/i915/display/intel_atomic_plane.h +++ b/drivers/gpu/drm/i915/display/intel_atomic_plane.h @@ -10,6 +10,7 @@ struct drm_plane; struct drm_property; +struct drm_rect; struct intel_atomic_state; struct intel_crtc; struct intel_crtc_state; @@ -18,6 +19,9 @@ struct intel_plane_state; extern const struct drm_plane_helper_funcs intel_plane_helper_funcs; +unsigned int intel_adjusted_rate(const struct drm_rect *src, + const struct drm_rect *dst, + unsigned int rate); unsigned int intel_plane_pixel_rate(const struct intel_crtc_state *crtc_state, const struct intel_plane_state *plane_state); |