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>
This commit is contained in:
Chris Wilson 2016-10-12 17:35:37 +01:00
parent 696f58f69f
commit eb01cc549d
1 changed files with 3 additions and 0 deletions

View File

@ -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;