diff options
| author | Nemesa Garg <nemesa.garg@intel.com> | 2026-04-02 11:43:10 +0530 |
|---|---|---|
| committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2026-04-07 18:21:26 +0300 |
| commit | 28f60e912cc21d4f5e208661e9c4ffe8488046a9 (patch) | |
| tree | 1c4ad17550e35b0f3464a93dfbcf21bc2aeb3d21 /tools/perf/scripts/python/stackcollapse.py | |
| parent | ff1b43b7db95650976f9568bb0d62e59ec66e605 (diff) | |
drm/i915/pfit: Prevent negative coordinates in center mode
When the pipe_src width or height are greater than adjusted_mode hdisplay
and vdisplay, computed x and y offsets for center mode can be negative.
Writing negative values into the pch_fit registers result in a state error.
Add a check to clamp these values so that they are never negative.
v2: Compare in terms of pipe_src width and height.[Ville]
v3: Change width/height to pipe_src_w/h in logging. [Ville]
Signed-off-by: Nemesa Garg <nemesa.garg@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20260402061310.111073-1-nemesa.garg@intel.com
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
