From: Ville Syrjälä <ville.syrjala@xxxxxxxxxxxxxxx> My earlier fixes for drm_rect + div-by-zero fix + some selftests that Daniel requested. Cc: Maarten Lankhorst <maarten.lankhorst@xxxxxxxxxxxxxxx> Cc: Benjamin Gaignard <benjamin.gaignard@xxxxxx> Cc: Daniel Vetter <daniel@xxxxxxxx> 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 -- 2.23.0 _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel