drm/i915: Move the cursor rotation handling into intel_cursor_check_surface()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 15 Oct 2019 15:27:57 +0000 (18:27 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 18 Oct 2019 14:04:34 +0000 (17:04 +0300)
commit30a027dcccc27051b3145ff9bb756d79038ad320
treede8df1cfb2f19ff9154b39975a8209b0cfd6d103
parentc6e07ada8eaa3ff66868a8bd6b1b9cdfa6d9fe21
drm/i915: Move the cursor rotation handling into intel_cursor_check_surface()

Unlike other planes the cursor currently handles 180 degree rotation
adjustment during the hardware programming phase. Let's move that
stuff into intel_cursor_check_surface() to match how we do things
with other plane types.

And while at we'll plop in the final src x/y coordinates (which will
actually always be zero) into the src rect and color_plane[0].x/y,
just for some extra consistency.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191015152757.12231-1-ville.syrjala@linux.intel.com
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
drivers/gpu/drm/i915/display/intel_display.c