diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2013-10-21 19:01:58 +0300 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-10-28 17:56:00 +0100 |
commit | 92e76c8c7e436a07af3e0b594480ff8689add078 (patch) | |
tree | d40b6eca356bc4817aad58825c18f4e671da1f1f /tools/perf/scripts/python/netdev-times.py | |
parent | b4ed448447970aab11ee33ac28716baaff68fbb8 (diff) |
drm/i915: Clamp cursor coordinates to int16_t range
We store cursor_x/y as int16_t internally, but the user provided
coordinates are int32_t. Clamp the coordinates so that they don't
overflow the int16_t. Since the cursor is only 64x64 in size, the
clamping can't cause any visual changes.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions