diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-09-18 11:44:53 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-09-18 11:44:53 +0100 |
commit | 97b443f589fb62ba060f09a371be273549f524d0 (patch) | |
tree | 07754098d3864cb27aae0f79fb521d49de83a3e0 /src | |
parent | efffc42f227131792920391f9a87238743b2c490 (diff) |
sna: Fix off-by-one in computation of valid CRTC mask
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r-- | src/sna/sna_display.c | 2 |
1 files changed, 1 insertions, 1 deletions
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++) { |