summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-12-24 02:48:18 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-12-24 02:50:47 +0000
commit73df0c7ab7c3a9edf0be2439c7e7ab07c0d75ecf (patch)
tree9bfbc9cb6a6d1cdf654b1643de3898e0a377f7fb
parentef66c5b5ad221211948ec795ade031591c3f0ac7 (diff)
sna: Tune region upload inplace threshold
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_accel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 9cde9492..460b29f0 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -816,8 +816,8 @@ static inline bool region_inplace(struct sna *sna,
return ((region->extents.x2 - region->extents.x1) *
(region->extents.y2 - region->extents.y1) *
- pixmap->drawable.bitsPerPixel >> 15)
- >= sna->kgem.half_cpu_cache_pages/2;
+ pixmap->drawable.bitsPerPixel >> 12)
+ >= sna->kgem.half_cpu_cache_pages;
}
bool