diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-09-26 16:20:06 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-09-27 10:47:18 +0100 |
commit | 7025956558cfc391b553c9adb39d2a38fe494946 (patch) | |
tree | 8388db02f8448e493cea507d7deb727f052a3b10 | |
parent | 455754ca8d2762c6294e6db6b405da7959ab8a0f (diff) |
sna: Mark all large cached buffers as purgeable
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/kgem.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c index d68bda56..4a82d4a5 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -2019,7 +2019,7 @@ static void __kgem_bo_destroy(struct kgem *kgem, struct kgem_bo *bo) assert(bo->exec == NULL); assert(list_is_empty(&bo->request)); - if (bo->map__cpu == NULL) { + if (bo->map__cpu == NULL || bucket(bo) >= NUM_CACHE_BUCKETS) { if (!kgem_bo_set_purgeable(kgem, bo)) goto destroy; @@ -3897,7 +3897,6 @@ struct kgem_bo *kgem_create_2d(struct kgem *kgem, if (tiling < 0) exact = true, tiling = -tiling; - DBG(("%s(%dx%d, bpp=%d, tiling=%d, exact=%d, inactive=%d, cpu-mapping=%d, gtt-mapping=%d, scanout?=%d, prime?=%d, temp?=%d)\n", __FUNCTION__, width, height, bpp, tiling, exact, !!(flags & CREATE_INACTIVE), |