sna: Do a quirk early check for short areas before threading
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 4 Jul 2014 11:14:11 +0000 (12:14 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 4 Jul 2014 11:19:25 +0000 (12:19 +0100)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/sna_threads.c

index f263d24..e2bb804 100644 (file)
@@ -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;