drm/vc4: tests: Add unit test suite for the PV muxing
authorMaxime Ripard <maxime@cerno.tech>
Thu, 1 Dec 2022 15:11:50 +0000 (16:11 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 8 Dec 2022 08:56:56 +0000 (09:56 +0100)
commit76ec18dc5afadb64257578ff91c1067331f2fcaa
treed0fe98331284beaf62bd6b740d37f5bf4042c4a8
parentda43ff045c3fc4c11e4956cf42c59aba7e5ed39e
drm/vc4: tests: Add unit test suite for the PV muxing

The HVS to PixelValve muxing code is fairly error prone and has a bunch
of arbitrary constraints due to the hardware setup.

Let's create a test suite that makes sure that the possible combinations
work and the invalid ones don't.

Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: MaĆ­ra Canal <mcanal@igalia.com>
Link: https://lore.kernel.org/r/20221123-rpi-kunit-tests-v3-19-4615a663a84a@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/vc4/Makefile
drivers/gpu/drm/vc4/tests/vc4_mock.h
drivers/gpu/drm/vc4/tests/vc4_mock_output.c
drivers/gpu/drm/vc4/tests/vc4_test_pv_muxing.c [new file with mode: 0644]