From 6bab82b91d64af2e31d9f5fe7705c68caf09004b Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 7 Aug 2015 13:25:14 +0100 Subject: [PATCH] sna: Always prefer a fresh allocation for the batch if !llc An unwanted subtle change in preference from commit 8c465d0fbf84b1d29c54d620f09063d2b7ccfeb8 Author: Chris Wilson Date: Fri Aug 7 10:15:42 2015 +0100 sna: Fallback after a bo allocation failure for the batch Signed-off-by: Chris Wilson --- src/sna/kgem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sna/kgem.c b/src/sna/kgem.c index 9925628b..33f9f7e4 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -3858,7 +3858,7 @@ out_16384: size = kgem->nbatch * sizeof(uint32_t); #endif - if (!kgem->batch_bo) { + if (!kgem->batch_bo || !kgem->has_llc) { bo = kgem_create_linear(kgem, size, CREATE_NO_THROTTLE); if (bo) { write: