projects
/
platform
/
upstream
/
xf86-video-intel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
228a22f
)
sna: Do a quirk early check for short areas before threading
author
Chris Wilson
<chris@chris-wilson.co.uk>
Fri, 4 Jul 2014 11:14:11 +0000
(12:14 +0100)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/src/sna/sna_threads.c
b/src/sna/sna_threads.c
index
f263d24
..
e2bb804
100644
(file)
--- 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;