[PATCH i-g-t] kms_ccs: stop crashing pls

Juha-Pekka Heikkilä juhapekka.heikkila at gmail.com
Thu Aug 19 14:47:40 UTC 2021


Chris had oneliner fix for this on internal trees, it should be sent
to upstream. Chris's oneliner just said igt_require(data->output);
after getting output.

/Juha-Pekka

On Thu, Aug 19, 2021 at 4:45 PM Petri Latvala <petri.latvala at intel.com> wrote:
>
> Signed-off-by: Petri Latvala <petri.latvala at intel.com>
> ---
>  tests/kms_ccs.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/tests/kms_ccs.c b/tests/kms_ccs.c
> index e60a6a77..c026d0cb 100644
> --- a/tests/kms_ccs.c
> +++ b/tests/kms_ccs.c
> @@ -513,7 +513,8 @@ static void test_output(data_t *data, const char* testformatstring)
>         igt_fixture {
>                 data->output = igt_get_single_output_for_pipe(&data->display,
>                                                               data->pipe);
> -               igt_output_set_pipe(data->output, data->pipe);
> +               if (!igt_warn_on(data->output == NULL))
> +                   igt_output_set_pipe(data->output, data->pipe);
>         }
>
>         for (int i = 0; i < ARRAY_SIZE(ccs_modifiers); i++) {
> --
> 2.29.2
>


More information about the Intel-gfx-trybot mailing list