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

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

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