diff options
author | Dave Airlie <airlied@redhat.com> | 2009-11-17 15:23:30 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-11-17 15:23:30 +1000 |
commit | ce8299962003de572122561a6f7f61eaccf633b2 (patch) | |
tree | 68c85def5a651290a5466d1064fdfe0942cbcb46 /src | |
parent | 06d68f7fa3870f9601e837e1834d33e8395008b1 (diff) |
kms: check for 0 mask for cloned outputs.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/drmmode_display.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c index d78a82ac..29c3ff17 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -951,12 +951,17 @@ uint32_t find_clones(ScrnInfoPtr scrn, xf86OutputPtr output) xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(scrn); int index_mask = 0; + if (drmmode_output->enc_clone_mask == 0) + return index_mask; + for (i = 0; i < xf86_config->num_output; i++) { clone_output = xf86_config->output[i]; clone_drmout = clone_output->driver_private; if (output == clone_output) continue; + if (clone_drmout->enc_mask == 0) + continue; if (drmmode_output->enc_clone_mask == clone_drmout->enc_mask) index_mask |= (1 << i); } |