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:
parent
308f0208de
commit
f132452da1
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue