diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-09-27 10:01:34 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-09-27 10:47:18 +0100 |
commit | 7206d0bb916fa69690a5f4fdcc5e7e81787c6c16 (patch) | |
tree | 48cb963a2dd4d5f470e5379c813152afb9d0ed8a /src | |
parent | 6ac1ac98c28d38b539f465c5ac488d879f1c2ab6 (diff) |
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 <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r-- | src/sna/kgem.c | 7 |
1 files changed, 0 insertions, 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)) { |