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>
This commit is contained in:
Chris Wilson 2013-03-19 07:57:30 +00:00
parent 308f0208de
commit f132452da1
1 changed files with 1 additions and 1 deletions

View File

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