mbox series

[v2,0/4] drm/rect: Bugfixes and selftests

Message ID 20191122175623.13565-1-ville.syrjala@linux.intel.com (mailing list archive)
Headers show
Series drm/rect: Bugfixes and selftests | expand

Message

Ville Syrjälä Nov. 22, 2019, 5:56 p.m. UTC
From: Ville Syrjälä <ville.syrjala@linux.intel.com>

My earlier fixes for drm_rect + div-by-zero fix + some
selftests that Daniel requested.

Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Benjamin Gaignard <benjamin.gaignard@st.com>
Cc: Daniel Vetter <daniel@ffwll.ch>

Ville Syrjälä (4):
  drm/rect: Avoid division by zero
  drm/rect: Keep the scaled clip bounded
  drm/rect: Keep the clipped dst rectangle in place
  drm/selftests: Add drm_rect selftests

 drivers/gpu/drm/drm_rect.c                    |  36 +--
 drivers/gpu/drm/selftests/Makefile            |   3 +-
 .../gpu/drm/selftests/drm_modeset_selftests.h |   4 +
 .../drm/selftests/test-drm_modeset_common.h   |   7 +
 drivers/gpu/drm/selftests/test-drm_rect.c     | 220 ++++++++++++++++++
 include/drm/drm_rect.h                        |   2 +
 6 files changed, 257 insertions(+), 15 deletions(-)
 create mode 100644 drivers/gpu/drm/selftests/test-drm_rect.c

Comments

Benjamin GAIGNARD Nov. 27, 2019, 10:19 a.m. UTC | #1
On 11/22/19 6:56 PM, Ville Syrjala wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> My earlier fixes for drm_rect + div-by-zero fix + some
> selftests that Daniel requested.
>
> Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> Cc: Benjamin Gaignard <benjamin.gaignard@st.com>
> Cc: Daniel Vetter <daniel@ffwll.ch>

Thanks to have handle this.

Reviewed-by: Benjamin Gaignard <benjamin.gaignard@st.com>
>
> Ville Syrjälä (4):
>    drm/rect: Avoid division by zero
>    drm/rect: Keep the scaled clip bounded
>    drm/rect: Keep the clipped dst rectangle in place
>    drm/selftests: Add drm_rect selftests
>
>   drivers/gpu/drm/drm_rect.c                    |  36 +--
>   drivers/gpu/drm/selftests/Makefile            |   3 +-
>   .../gpu/drm/selftests/drm_modeset_selftests.h |   4 +
>   .../drm/selftests/test-drm_modeset_common.h   |   7 +
>   drivers/gpu/drm/selftests/test-drm_rect.c     | 220 ++++++++++++++++++
>   include/drm/drm_rect.h                        |   2 +
>   6 files changed, 257 insertions(+), 15 deletions(-)
>   create mode 100644 drivers/gpu/drm/selftests/test-drm_rect.c
>