diff options
| author | Ville Syrjälä <[email protected]> | 2024-05-28 21:56:44 +0300 |
|---|---|---|
| committer | Ville Syrjälä <[email protected]> | 2024-05-31 13:43:15 +0300 |
| commit | 5316dd0d617bb98956f75cb33982efe1b26d8f19 (patch) | |
| tree | e07884fcee48ca7a15df3847e4258c51eefb0a5b /tools/perf/scripts/python/exported-sql-viewer.py | |
| 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ä <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Jani Nikula <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions