From 7206d0bb916fa69690a5f4fdcc5e7e81787c6c16 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 27 Sep 2013 10:01:34 +0100 Subject: [PATCH] sna: Disable the promotion of large bo as flush We can rely on our aperture and idleness tracking to appropriate flush batches. Marking the large bo as flush interferes with the treatment of flush for externally named bo, such as DRI/PRIME. Signed-off-by: Chris Wilson --- src/sna/kgem.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/sna/kgem.c b/src/sna/kgem.c index 4a82d4a5..2a5820c8 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -4019,7 +4019,6 @@ struct kgem_bo *kgem_create_2d(struct kgem *kgem, assert(bo->pitch*kgem_aligned_height(kgem, height, bo->tiling) <= kgem_bo_size(bo)); assert_tiling(kgem, bo); bo->refcnt = 1; - bo->flush = true; return bo; } @@ -4387,12 +4386,6 @@ create: return NULL; } - if (bucket >= NUM_CACHE_BUCKETS) { - DBG(("%s: marking large bo for automatic flushing\n", - __FUNCTION__)); - bo->flush = true; - } - bo->unique_id = kgem_get_unique_id(kgem); if (tiling == I915_TILING_NONE || gem_set_tiling(kgem->fd, handle, tiling, pitch)) {