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

Chris Wilson ickle at kemper.freedesktop.org
Wed Sep 7 13:49:01 UTC 2016


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

New commits:
commit 5735b3ce3cff21f902e42532b324623a5283c2de
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Wed Sep 7 14:48:12 2016 +0100

    sna/dri2: Fix busy engine check
    
    We should be using the kernel's exec-id and not our own index.
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/sna/sna_dri2.c b/src/sna/sna_dri2.c
index 32832dd..0c697dd 100644
--- a/src/sna/sna_dri2.c
+++ b/src/sna/sna_dri2.c
@@ -1139,7 +1139,7 @@ static void sna_dri2_select_mode(struct sna *sna, struct kgem_bo *dst, struct kg
 	 * the cost of the query.
 	 */
 	mode = KGEM_RENDER;
-	if ((busy.busy & 0xffff) == KGEM_BLT)
+	if ((busy.busy & 0xffff) == I915_EXEC_BLT)
 		mode = KGEM_BLT;
 	kgem_bo_mark_busy(&sna->kgem,
 			  busy.handle == src->handle ? src : dst,


More information about the xorg-commit mailing list