xf86-video-intel: src/sna/sna_accel.c

Chris Wilson ickle at kemper.freedesktop.org
Wed May 22 01:00:37 PDT 2013


 src/sna/sna_accel.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f2e0454f2df4289521b24de41fb41c68f7abf0ed
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Wed May 22 08:58:51 2013 +0100

    sna: Fix DBG typo and so fix build with --enable-debug
    
    s/hint/flags/ -- used the wrong variable name in an assert and upset the
    compiler.
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 0e4d8fe..1e58860 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -2947,7 +2947,7 @@ sna_drawable_use_bo(DrawablePtr drawable, unsigned flags, const BoxRec *box,
 	     box->x1, box->y1, box->x2, box->y2,
 	     flags));
 
-	assert((hint & REPLACES) == 0 || (hint & IGNORE_CPU));
+	assert((flags & REPLACES) == 0 || (flags & IGNORE_CPU));
 
 	assert(box->x2 > box->x1 && box->y2 > box->y1);
 	assert(pixmap->refcnt);


More information about the xorg-commit mailing list