From 97b443f589fb62ba060f09a371be273549f524d0 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 18 Sep 2013 11:44:53 +0100 Subject: sna: Fix off-by-one in computation of valid CRTC mask Signed-off-by: Chris Wilson --- src/sna/sna_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index 7b1ef883..7b1684f8 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -2612,7 +2612,7 @@ sna_mode_compute_possible_outputs(ScrnInfoPtr scrn) assert(config->num_output < 32); assert(config->num_crtc < 32); - crtc_mask = (1 << (config->num_crtc + 1)) - 1; + crtc_mask = (1 << config->num_crtc) - 1; /* Convert from encoder numbering to output numbering */ for (i = 0; i < config->num_output; i++) { -- cgit v1.2.3