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:
parent
696f58f69f
commit
eb01cc549d
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue