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

Chris Wilson ickle at kemper.freedesktop.org
Fri Aug 9 13:49:17 PDT 2013


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

New commits:
commit de379943b49b94cc065fd55ad7ca1067e1802a31
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Fri Aug 9 16:37:29 2013 +0100

    sna: Allow LLC to reuse any active write buffer
    
    The inplace write distinction is not important on LLC, so pick any
    buffer that is on the GPU and available for reuse.
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index fea7dcb..429699f 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -5675,7 +5675,7 @@ struct kgem_bo *kgem_create_buffer(struct kgem *kgem,
 			assert(bo->mmapped);
 			assert(!IS_CPU_MAP(bo->base.map) || kgem->has_llc || bo->base.snoop);
 
-			if ((bo->write & ~flags) & KGEM_BUFFER_INPLACE) {
+			if (!kgem->has_llc && (bo->write & ~flags) & KGEM_BUFFER_INPLACE) {
 				DBG(("%s: skip write %x buffer, need %x\n",
 				     __FUNCTION__, bo->write, flags));
 				continue;


More information about the xorg-commit mailing list