sna: Do a quirk early check for short areas before threading

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-07-04 12:14:11 +01:00
parent 228a22fe8d
commit 04ddea075e
1 changed files with 3 additions and 0 deletions

View 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;