summaryrefslogtreecommitdiff
path: root/lib/igt_kms.c
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2017-01-24 16:04:46 +0100
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2017-01-26 11:58:24 +0100
commit35afbb0e3bfda8fdb9bbb2b981af7c661ebdf440 (patch)
tree75ee92cc2c8b9e53412f8726fcb1e7299dd83e3c /lib/igt_kms.c
parentce9783325933905a4a2f69047583a3c855e424de (diff)
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 <maarten.lankhorst@linux.intel.com>
Diffstat (limited to 'lib/igt_kms.c')
-rw-r--r--lib/igt_kms.c3
1 files changed, 1 insertions, 2 deletions
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);
}