From 35afbb0e3bfda8fdb9bbb2b981af7c661ebdf440 Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Tue, 24 Jan 2017 16:04:46 +0100 Subject: lib/igt_kms.c: Always set pipe_changed. The pipe may be reset when doing a modeset in a fork, changing it back after the fork exited caused the output not to be updated. This resulted in a -EINVAL when doing atomic commit. Signed-off-by: Maarten Lankhorst --- lib/igt_kms.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/igt_kms.c b/lib/igt_kms.c index d104734a..77de678e 100644 --- a/lib/igt_kms.c +++ b/lib/igt_kms.c @@ -2624,8 +2624,7 @@ void igt_output_set_pipe(igt_output_t *output, enum pipe pipe) display->pipes[pipe].mode_changed = true; } - if (pipe != output->config.pipe) - output->config.pipe_changed = true; + output->config.pipe_changed = true; igt_output_refresh(output, false); } -- cgit v1.2.3