summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sna/sna_threads.c3
1 files changed, 3 insertions, 0 deletions
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;