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

Chris Wilson ickle at kemper.freedesktop.org
Wed Jun 18 13:36:17 PDT 2014


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

New commits:
commit 9489cc6c70abf53d9ca45228b0aa9fb1fc3f9b72
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Wed Jun 18 21:28:11 2014 +0100

    sna: Delete the silly typo
    
    Not checking DAMAGE_IS_ALL() correctly leads to an assertion failure.
    
    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 80d6787..941448b 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -4801,7 +4801,7 @@ static bool ignore_cpu_damage(struct sna *sna, struct sna_pixmap *priv, const Re
 		return true;
 
 	if (priv->cpu_damage != NULL) {
-		if (DAMAGE_IS_ALL(priv->cpu_damage == NULL))
+		if (DAMAGE_IS_ALL(priv->cpu_damage))
 			return false;
 
 		if (!box_inplace(priv->pixmap, &region->extents))


More information about the xorg-commit mailing list