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

Chris Wilson ickle at kemper.freedesktop.org
Fri Nov 13 05:19:57 PST 2015


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

New commits:
commit b5c1ceaac3c1114ca260f6a785e5fc8891eb1820
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Fri Nov 13 13:18:01 2015 +0000

    sna: Fix typo when comparing '=' ! '=='
    
    Reported-by: Arkadiusz Miskiewicz <arekm at maven.pl>
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index 6d6e76a..0ecc11f 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -1769,7 +1769,7 @@ restart:
 	if (kgem->batch_bo)
 		kgem->batch = kgem_bo_map__cpu(kgem, kgem->batch_bo);
 	if (kgem->batch == NULL) {
-		int ring = kgem->ring = KGEM_BLT;
+		int ring = kgem->ring == KGEM_BLT;
 		assert(ring < ARRAY_SIZE(kgem->requests));
 
 		if (kgem->batch_bo) {


More information about the xorg-commit mailing list