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

Chris Wilson ickle at kemper.freedesktop.org
Fri Sep 28 01:27:10 PDT 2012


 src/sna/kgem.c |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 13f7a9e267fbefd3326569e89b840bef31d77996
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Fri Sep 28 09:25:12 2012 +0100

    sna: Restore LLC cache level after using a buffer for scanout (uncached)
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index 0ea14f0..7826aad 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -1354,6 +1354,10 @@ static void kgem_bo_clear_scanout(struct kgem *kgem, struct kgem_bo *bo)
 	bo->needs_flush = true;
 	bo->flush = false;
 	bo->reusable = true;
+
+	if (kgem->has_llc &&
+	    gem_set_cacheing(kgem->fd, bo->handle, SNOOPED))
+		bo->reusable = false;
 }
 
 static void _kgem_bo_delete_buffer(struct kgem *kgem, struct kgem_bo *bo)


More information about the xorg-commit mailing list