drm/vc4: tests: Use custom plane state for mock
authorMaxime Ripard <maxime@cerno.tech>
Fri, 14 Apr 2023 09:24:37 +0000 (11:24 +0200)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:00 +0000 (11:35 +0000)
commit8d5e1439b513959b6efb59435d1d8fd72481c14d
tree740e257bd43a0cb63eb058bec39b0b701d9fb15a
parent5c89884e06a28bfdb0eb39cb4e209a770ed663a6
drm/vc4: tests: Use custom plane state for mock

The current mock planes were just using the regular drm_plane_state,
while the driver expect struct vc4_plane_state that subclasses
drm_plane_state.

Hook the proper implementations of reset, duplicate_state, destroy and
atomic_check to create vc4_plane_state.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/vc4/tests/vc4_mock_plane.c
drivers/gpu/drm/vc4/vc4_drv.h
drivers/gpu/drm/vc4/vc4_plane.c