[PATCH i-g-t] kms_ccs: stop crashing pls
Petri Latvala
petri.latvala at intel.com
Thu Aug 19 13:48:34 UTC 2021
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