diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-01-29 13:55:20 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-01-29 14:47:12 +0000 |
commit | 624d9843abda9ca6bd1b004d70a6fdc082ba9653 (patch) | |
tree | 37768cb02eeb0c1185e3a97f79e4e73eec899ff4 | |
parent | 5c6255ba2f12f04938fd586ca02562ee3cae05af (diff) |
sna: Ignore map status and pick the first inactive bo for reuse
This fixes the performance regression introduced with e583af9cca,
(sna: Experiment with creating large objects as CPU bo), as we ended up
creating fresh bo and incurring setup and thrashing overhead, when we
already had plenty cached.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/kgem.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c index d062a1d6..1d7b8e92 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -2501,9 +2501,6 @@ search_inactive: continue; } - if ((flags & CREATE_CPU_MAP) == 0 && IS_CPU_MAP(bo->map)) - continue; - if (bo->tiling != tiling || (tiling != I915_TILING_NONE && bo->pitch != pitch)) { if (tiling != gem_set_tiling(kgem->fd, |