summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-01-29 13:55:20 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-01-29 14:47:12 +0000
commit624d9843abda9ca6bd1b004d70a6fdc082ba9653 (patch)
tree37768cb02eeb0c1185e3a97f79e4e73eec899ff4
parent5c6255ba2f12f04938fd586ca02562ee3cae05af (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.c3
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,