From 04ddea075e9e07cf3158594130d5ba7d1f50f7f1 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 4 Jul 2014 12:14:11 +0100 Subject: sna: Do a quirk early check for short areas before threading Signed-off-by: Chris Wilson --- src/sna/sna_threads.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/sna') diff --git a/src/sna/sna_threads.c b/src/sna/sna_threads.c index f263d241..e2bb8042 100644 --- a/src/sna/sna_threads.c +++ b/src/sna/sna_threads.c @@ -259,6 +259,9 @@ int sna_use_threads(int width, int height, int threshold) if (max_threads <= 0) return 1; + if (height <= num_threads) + return height; + if (width < 128) height /= 128/width; -- cgit v1.2.3