summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-01-20 12:19:25 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2014-01-20 12:33:47 +0000
commit04ee452439d14e2f8941e989823cb81fb62858e7 (patch)
treea0a0738d92b6840be21c5f3a8159b1f8ccf10912
parent637e7c2186ccde65bed74dfd28f53a2a808e4101 (diff)
sna: Increase limit on number of possible outputs
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_display.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index 000d9ab7..f2748693 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -838,7 +838,7 @@ sna_crtc_apply(xf86CrtcPtr crtc)
struct sna_crtc *sna_crtc = to_sna_crtc(crtc);
xf86CrtcConfigPtr config = XF86_CRTC_CONFIG_PTR(crtc->scrn);
struct drm_mode_crtc arg;
- uint32_t output_ids[16];
+ uint32_t output_ids[32];
int output_count = 0;
int i;
@@ -861,7 +861,8 @@ sna_crtc_apply(xf86CrtcPtr crtc)
(uint32_t)output->possible_crtcs,
(uint32_t)output->possible_clones));
output_ids[output_count] = to_connector_id(output);
- output_count++;
+ if (++output_count == ARRAY_SIZE(output_ids))
+ return false;
}
VG_CLEAR(arg);