Module: Mesa
Branch: master
Commit: 55bc8b139067f2596da654075a4fc6e5940e22dd
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=55bc8b139067f2596da654075a4fc6e5940e22dd

Author: Pauli Nieminen <[email protected]>
Date:   Wed Jul 29 01:28:33 2009 +0300

radeon: Cliprects has to be updated before doing anything with clip rectangles

Reported to fix corruption while dragging an active window by John Bridgman.

Signed-off-by: Pauli Nieminen <[email protected]>
Signed-off-by: Nicolai Hähnle <[email protected]>

---

 src/mesa/drivers/dri/radeon/radeon_common.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/radeon/radeon_common.c 
b/src/mesa/drivers/dri/radeon/radeon_common.c
index dde615a..7f503a9 100644
--- a/src/mesa/drivers/dri/radeon/radeon_common.c
+++ b/src/mesa/drivers/dri/radeon/radeon_common.c
@@ -887,10 +887,11 @@ void radeonUpdatePageFlipping(radeonContextPtr radeon)
 
 void radeon_window_moved(radeonContextPtr radeon)
 {
+       /* Cliprects has to be updated before doing anything else */
+       radeonSetCliprects(radeon);
        if (!radeon->radeonScreen->driScreen->dri2.enabled) {
                radeonUpdatePageFlipping(radeon);
        }
-       radeonSetCliprects(radeon);
 }
 
 void radeon_viewport(GLcontext *ctx, GLint x, GLint y, GLsizei width, GLsizei 
height)

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to