drm/rect: Keep the clipped dst rectangle in place
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 22 Nov 2019 17:56:22 +0000 (19:56 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 28 Nov 2019 11:33:38 +0000 (13:33 +0200)
commit2020af2dbf734a16886d5e9e1f65841641db5f33
treef40060f8630689343fe1c1d0ac832cbf8010ab20
parent2e351705f18a80dea6398233ac21a02aff5b0597
drm/rect: Keep the clipped dst rectangle in place

Now that we've constrained the clipped source rectangle such
that it can't have negative dimensions doing the same for the
dst rectangle seems appropriate. Should at least result in
the clipped src and dst rectangles being a bit more consistent
with each other.

Cc: Benjamin Gaignard <benjamin.gaignard@st.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191122175623.13565-4-ville.syrjala@linux.intel.com
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Benjamin Gaignard <benjamin.gaignard@st.com>
drivers/gpu/drm/drm_rect.c