Skip to contentSkip to conversation

Updated wfb patch

PATCH okias 1 participant 1 message Jun 24, 2009

lore
Share & tools
lore

okias

author
#0 lore raw

Fixed one useless int, duplicated line and added Signed-off-by...

Signature · 2 lines
Jabber/XMPP: [email protected]
SIP VoIP: sip:17474537254-rne+wJe3e/u3Jhga2bR/9VaTQe2KTcn/@public.gmane.org

fix nouveau_wfb_finish_wrap

---

src/nouveau_wfb.c +6 -7
@@ -175,20 +175,19 @@ nouveau_wfb_setup_wrap(ReadMemoryProcPtr
 void
 nouveau_wfb_finish_wrap(DrawablePtr pDraw)
 {
-	struct wfb_pixmap *wfb = &wfb_pixmap[0];
+	struct wfb_pixmap *wfb;
 	PixmapPtr ppix;
-	int i;
+	int wrap;
 
 	ppix = NVGetDrawablePixmap(pDraw);
 	if (!ppix)
 		return;
 
-	for (i = 0; i < 6; i++) {
-		if (wfb->ppix != ppix)
-			continue;
-
+	wrap = 0;
+	while(wfb_pixmap[wrap].ppix) {
+		wfb = &wfb_pixmap[wrap];
 		wfb->ppix = NULL;
-		break;
+		wrap++;
 	}
 }
 

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau