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:
parent
228a22fe8d
commit
04ddea075e
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue