Blame SOURCES/0001-rrcrtc-brackets-are-hard-lets-go-shopping.patch

70130e
From dd0c31d6b7559bb0dda6283a5d345d537f1d6b42 Mon Sep 17 00:00:00 2001
70130e
From: Dave Airlie <airlied@gmail.com>
70130e
Date: Tue, 30 Jul 2013 13:17:45 +1000
70130e
Subject: [PATCH] rrcrtc: brackets are hard, lets go shopping.
70130e
70130e
Slaving two outputs on a secondary GPU to a primary GPU testing
70130e
picked this up, in that we'd try to resize to the totally the
70130e
wrong thing, then as usual segfault in the rotation code.
70130e
70130e
Signed-off-by: Dave Airlie <airlied@redhat.com>
70130e
---
70130e
 randr/rrcrtc.c | 7 ++++---
70130e
 1 file changed, 4 insertions(+), 3 deletions(-)
70130e
70130e
diff --git a/randr/rrcrtc.c b/randr/rrcrtc.c
70130e
index 2f76b62..40b01f0 100644
70130e
--- a/randr/rrcrtc.c
70130e
+++ b/randr/rrcrtc.c
70130e
@@ -474,7 +474,7 @@ rrCheckPixmapBounding(ScreenPtr pScreen,
70130e
 
70130e
     xorg_list_for_each_entry(slave, &pScreen->output_slave_list, output_head) {
70130e
         rrScrPriv(slave);
70130e
-        for (c = 0; c < pScrPriv->numCrtcs; c++)
70130e
+        for (c = 0; c < pScrPriv->numCrtcs; c++) {
70130e
             if (pScrPriv->crtcs[c] == rr_crtc) {
70130e
                 newbox.x1 = x;
70130e
                 newbox.x2 = x + w;
70130e
@@ -489,8 +489,9 @@ rrCheckPixmapBounding(ScreenPtr pScreen,
70130e
                 newbox.y1 = pScrPriv->crtcs[c]->y;
70130e
                 newbox.y2 = pScrPriv->crtcs[c]->y + pScrPriv->crtcs[c]->mode->mode.height;
70130e
             }
70130e
-        RegionInit(&new_crtc_region, &newbox, 1);
70130e
-        RegionUnion(&total_region, &total_region, &new_crtc_region);
70130e
+	    RegionInit(&new_crtc_region, &newbox, 1);
70130e
+	    RegionUnion(&total_region, &total_region, &new_crtc_region);
70130e
+	}
70130e
     }
70130e
 
70130e
     newsize = RegionExtents(&total_region);
70130e
-- 
70130e
1.8.2.1
70130e