[igt-dev] [v6 i-g-t 14/14] tests/kms_vblank: Reset the state before exiting the test
Nautiyal, Ankit K
ankit.k.nautiyal at intel.com
Wed May 19 06:24:29 UTC 2021
LGTM
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal at intel.com>
On 5/12/2021 10:35 PM, Bhanuprakash Modem wrote:
> Before starting the next subtest, clean up the states to default
> values, those are assumed by other tests.
>
> Cc: Imre Deak <imre.deak at intel.com>
> Cc: Ankit Nautiyal <ankit.k.nautiyal at intel.com>
> Cc: Daniel Vetter <daniel.vetter at ffwll.ch>
> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
> ---
> tests/kms_vblank.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/tests/kms_vblank.c b/tests/kms_vblank.c
> index e561e41d7..93b01eba0 100644
> --- a/tests/kms_vblank.c
> +++ b/tests/kms_vblank.c
> @@ -96,6 +96,8 @@ static void prepare_crtc(data_t *data, int fd, igt_output_t *output)
>
> static void cleanup_crtc(data_t *data, int fd, igt_output_t *output)
> {
> + igt_output_set_pipe(output, PIPE_NONE);
> + igt_display_commit(&data->display);
> igt_remove_fb(fd, &data->primary_fb);
> }
>
More information about the igt-dev
mailing list