drm/tests: Add test cases for drm_rect_calc_vscale()
authorArthur Grillo <arthurgrillo@riseup.net>
Tue, 18 Apr 2023 23:01:44 +0000 (20:01 -0300)
committerMaíra Canal <mairacanal@riseup.net>
Mon, 24 Apr 2023 19:33:24 +0000 (16:33 -0300)
commit881e2a9cc11fb53b1de10d951a11a69d23035bbf
tree4b8a2fe451b8b5f6551815990692fb65f1e53c7c
parent1f01f2247e3c4ed55c96afccd0072cd31793c604
drm/tests: Add test cases for drm_rect_calc_vscale()

Insert parameterized test for the drm_rect_calc_vscale() to ensure
correctness and prevent future regressions. Besides the test for the
usual case, tests the exceptions.

It uses the same struct from drm_rect_calc_hscale().

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-4-arthurgrillo@riseup.net
drivers/gpu/drm/tests/drm_rect_test.c