summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-10-12 17:35:37 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2016-10-12 17:35:37 +0100
commiteb01cc549d4d5544833ff6da4d79bc63587fd5ca (patch)
tree89f678a2307828892d00e024665726d910f13297
parent696f58f69f2bac5717d19f7a1a2278fee50a083e (diff)
sna: Refresh mode list if the kernel updates
If the kernel changes its list of modes, make sure we update. (This is a losing battle since X will add whatever modes it finds from the EDID despite what the kernel is telling it.) Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_display.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index 39c07b30..15be27c4 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -5190,6 +5190,9 @@ output_check_status(struct sna *sna, struct sna_output *output)
if (status != XF86OutputStatusConnected)
return true;
+ if (output->num_modes != compat_conn.conn.count_modes)
+ return true;
+
if (output->edid_len == 0)
return false;