diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-09-08 07:13:47 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-09-08 07:13:47 +0100 |
commit | db01c9d627412f05f5e5448b5f4c1d3814d522fa (patch) | |
tree | ec9c559426992752b3b8dc20f74e31fc4c1a5a86 | |
parent | da0c9638d7c54b12990531fc478b2dd523ed4db9 (diff) |
sna: Fix backlight assertion after only hiding planes
If we only hide the planes, we do not turn off any outputs and so can
skip resetting the backlight entirely.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_display.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index 46fd81fc..a14f789d 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -6310,7 +6310,8 @@ void sna_mode_reset(struct sna *sna) struct sna_output *sna_output = to_sna_output(config->output[i]); assert(sna_output != NULL); - assert(sna_output->dpms_mode == DPMSModeOff); + if (sna_output->dpms_mode != DPMSModeOff) + continue; if (!sna_output->backlight.iface) continue; |