summaryrefslogtreecommitdiff
path: root/src/sna/sna_trapezoids.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-08-04 12:50:41 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-08-04 13:10:26 +0100
commit2536ad044b259eb3ce3e7b1ccf2c59ab3fe37d06 (patch)
tree0ec2b660a8760970734cae468b0243314bc5b991 /src/sna/sna_trapezoids.c
parent2cdd57c804706bcf558d16d3370c1880ef482af1 (diff)
sna: Tweak threading thresholds
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_trapezoids.c')
-rw-r--r--src/sna/sna_trapezoids.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sna/sna_trapezoids.c b/src/sna/sna_trapezoids.c
index 04c8448c..e3b406eb 100644
--- a/src/sna/sna_trapezoids.c
+++ b/src/sna/sna_trapezoids.c
@@ -2556,7 +2556,7 @@ trapezoids_fallback(struct sna *sna,
if (!scratch)
return;
- num_threads = sna_use_threads(width, height, 4);
+ num_threads = sna_use_threads(width, height, 8);
if (num_threads == 1) {
if (depth < 8) {
image = pixman_image_create_bits(format, width, height,
@@ -4280,7 +4280,7 @@ mono_trapezoids_span_converter(struct sna *sna,
!unbounded)
num_threads = sna_use_threads(mono.clip.extents.x2 - mono.clip.extents.x1,
mono.clip.extents.y2 - mono.clip.extents.y1,
- 16);
+ 32);
if (num_threads > 1) {
struct mono_span_thread threads[num_threads];
int y, h;
@@ -5795,7 +5795,7 @@ trapezoid_span_inplace__x8r8g8b8(CARD8 op,
num_threads = sna_use_threads(4*(region.extents.x2 - region.extents.x1),
region.extents.y2 - region.extents.y1,
- 8);
+ 16);
DBG(("%s: %dx%d, format=%x, op=%d, lerp?=%d, num_threads=%d\n",
__FUNCTION__,
@@ -6166,7 +6166,7 @@ trapezoid_span_inplace(struct sna *sna,
num_threads = sna_use_threads(region.extents.x2 - region.extents.x1,
region.extents.y2 - region.extents.y1,
- 8);
+ 16);
if (num_threads == 1) {
struct tor tor;