OSDN Git Service

drm/selftests: Add drm_rect selftests
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 22 Nov 2019 17:56:23 +0000 (19:56 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 28 Nov 2019 11:33:43 +0000 (13:33 +0200)
commit30218eb77d6b9a89e08ad9ea19b35c6bf1be468e
tree4c81b1fc30da38807c36bac1787a4862e36bb9b0
parent2020af2dbf734a16886d5e9e1f65841641db5f33
drm/selftests: Add drm_rect selftests

Add selftests for drm_rect. A few basic ones for clipped and unclipped
cases, and a few special ones for specific bugs we had in the code.

I'm too lazy to think of more corner cases to check at this time.
Maybe later.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191122175623.13565-5-ville.syrjala@linux.intel.com
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Benjamin Gaignard <benjamin.gaignard@st.com>
drivers/gpu/drm/selftests/Makefile
drivers/gpu/drm/selftests/drm_modeset_selftests.h
drivers/gpu/drm/selftests/test-drm_modeset_common.h
drivers/gpu/drm/selftests/test-drm_rect.c [new file with mode: 0644]
include/drm/drm_rect.h