]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
drm/i915: Do not adjust scale when out of bounds, v2.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 3 May 2018 11:22:15 +0000 (13:22 +0200)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Fri, 4 May 2018 09:35:14 +0000 (11:35 +0200)
commit9c1659ebe77d7e111dac4bdc7e082136d223ffb5
tree7d9f3e07634123b45213cb74e0b4f6972b5920d8
parentf96bdf564f3e7511aecdd4c35cc18ac5e0750a2f
drm/i915: Do not adjust scale when out of bounds, v2.

With the previous patch drm_atomic_helper_check_plane_state correctly
calculates clipping and the xf86-video-intel ddx is fixed to fall back
to GPU correctly when SetPlane fails, we can remove the hack where
we try to pan/zoom when out of min/max scaling range. This was already
poor behavior where the screen didn't show what was requested, and now
instead we reject it outright. This simplifies check_sprite_plane a lot.

Changes since v1:
- Set crtc_h to the height correctly.
- Reject < 3x3 rectangles instead of making them invisible for <gen9.
  For gen9+ skl_update_scaler_plane will reject them.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180503112217.37292-4-maarten.lankhorst@linux.intel.com
Acked-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_sprite.c