[PATCH 06/11] drm/tests: helpers: Create an helper to allocate an atomic state
Javier Martinez Canillas
javierm at redhat.com
Wed Jul 19 20:01:24 UTC 2023
Maxime Ripard <mripard at kernel.org> writes:
> As we gain more tests, boilerplate to allocate an atomic state and free
> it starts to be there more and more as well.
>
> In order to reduce the allocation boilerplate, we can create an helper
> to create that atomic state, and call an action when the test is done.
> This will also clean up the exit path.
>
> Signed-off-by: Maxime Ripard <mripard at kernel.org>
> ---
Reviewed-by: Javier Martinez Canillas <javierm at redhat.com>
--
Best regards,
Javier Martinez Canillas
Core Platforms
Red Hat
More information about the dri-devel
mailing list