drm/i915: Remove cursor use of properties for coordinates
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Fri, 4 Oct 2019 11:34:54 +0000 (13:34 +0200)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 10 Oct 2019 14:01:04 +0000 (16:01 +0200)
commit3a612765f4233993bf5cff302844bd3b6b5a7429
treed6ed8265dd7f7a346948f0a856839b5434e27dc2
parentd8bd3e157a17b03d2b0f380e143bf8204f75df94
drm/i915: Remove cursor use of properties for coordinates

We have a src and dect rectangle, use it instead of relying on
the core drm properties.

Because the core by default clips the src/dst properties, after
the drm_atomic_helper_check_plane_state() we manually set the
unclipped src/dst rectangles. We still need the call for
visibility checks, but this way we are able to use the src/dst
rects in the check/commit code.

This removes the special case in the watermark code for cursor w/h.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191004113514.17064-5-maarten.lankhorst@linux.intel.com
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
[mlankhorst: Clarify commit message to state we use unclipped src/dst
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/intel_pm.c