drm/tests: Add test cases for drm_rect_intersect()
authorArthur Grillo <arthurgrillo@riseup.net>
Tue, 18 Apr 2023 23:01:42 +0000 (20:01 -0300)
committerMaíra Canal <mairacanal@riseup.net>
Mon, 24 Apr 2023 19:33:22 +0000 (16:33 -0300)
commit96c3161926c6aa81365f074e9c408ca31b7ca756
treee9f13c4827478c40a92a253e5b941548e63f5f91
parentf452cbd326dfa57c6f4ca8bc37879bf189f29cff
drm/tests: Add test cases for drm_rect_intersect()

Insert parameterized tests for the drm_rect_intersect() to ensure
correctness and prevent future regressions.

Also, create a helper for testing if two drm_rects are equal.

Signed-off-by: Arthur Grillo <arthurgrillo@riseup.net>
Reviewed-by: Maíra Canal <mcanal@igalia.com>
Signed-off-by: Maíra Canal <mairacanal@riseup.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20230418230146.461129-2-arthurgrillo@riseup.net
drivers/gpu/drm/tests/drm_rect_test.c