diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-03-19 07:57:30 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-03-19 07:57:30 +0000 |
commit | f132452da14fd09a2a3926cc9c034cb2e8c2f1a9 (patch) | |
tree | 0491af175a1239f055e162b562c5dd1ef248cbdf | |
parent | 308f0208de59620190dd3cb65b3243d2e8a7bd87 (diff) |
sna: Ignore vsync waits on tiny scanline ranges
If the update is only a couple of lines tall, any tear will not be
visible - so just ignore programming the wait into the GPU.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_display.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index a80a3c16..abb340a7 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -3005,7 +3005,7 @@ sna_wait_for_scanline(struct sna *sna, if (y2 > crtc->bounds.y2 - crtc->bounds.y1) y2 = crtc->bounds.y2 - crtc->bounds.y1; DBG(("%s: clipped range = %d, %d\n", __FUNCTION__, y1, y2)); - if (y2 <= y1) + if (y2 <= y1 + 4) return false; full_height = y1 == 0 && y2 == crtc->bounds.y2 - crtc->bounds.y1; |