diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2024-05-28 21:56:44 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2024-05-31 13:43:15 +0300 |
commit | 5316dd0d617bb98956f75cb33982efe1b26d8f19 (patch) | |
tree | e07884fcee48ca7a15df3847e4258c51eefb0a5b /drivers/gpu/drm/i915/display/intel_crtc.c | |
parent | 9677dd01ca1ada359f22cd129ccaeab9cd383567 (diff) |
drm/i915: Simplify scanline_offset handling for gen2
Currently intel_crtc_scanline_offset() is careful to always
return a positive offset. That is not actually necessary
as long as we take care of negative values when applying the
offset in __intel_get_crtc_scanline().
This simplifies intel_crtc_scanline_offset(), and makes
the scanline_offfset arithmetic more symmetric between
the forward (__intel_get_crtc_scanline()) and reverse
(intel_crtc_scanline_to_hw()) directions.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240528185647.7765-5-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_crtc.c')
0 files changed, 0 insertions, 0 deletions