From 4a209e9d17e8c188458888dd14dcab7e02117ed4 Mon Sep 17 00:00:00 2001 From: "Sergey Semyonov (Serge)" Date: Tue, 17 Dec 2013 14:52:07 +0000 Subject: [PATCH] intel-2D: fix tearing in fullscreen mode git-svn-id: svn://kolibrios.org@4374 a494cfbc-eb01-0410-851d-a64ba20cac60 --- contrib/sdk/sources/Intel-2D/sna/sna.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/contrib/sdk/sources/Intel-2D/sna/sna.c b/contrib/sdk/sources/Intel-2D/sna/sna.c index 2046d4820b..2b204bfe8f 100644 --- a/contrib/sdk/sources/Intel-2D/sna/sna.c +++ b/contrib/sdk/sources/Intel-2D/sna/sna.c @@ -485,8 +485,8 @@ sna_wait_for_scanline(struct sna *sna, * never occur */ y1 = clip->t - crtc->t; - if (y1 < 0) - y1 = 0; + if (y1 < 1) + y1 = 1; y2 = clip->b - crtc->t; if (y2 > crtc->b - crtc->t) y2 = crtc->b - crtc->t; @@ -970,6 +970,7 @@ int sna_blit_tex(bitmap_t *bitmap, bool scale, int dst_x, int dst_y, __lock_acquire_recursive(__sna_lock); +#if 1 { rect_t crtc, clip; @@ -986,6 +987,7 @@ int sna_blit_tex(bitmap_t *bitmap, bool scale, int dst_x, int dst_y, kgem_set_mode(&sna_device->kgem, KGEM_RENDER, sna_fb.fb_bo); sna_wait_for_scanline(sna_device, &crtc, &clip); } +#endif if( sna_device->render.blit_tex(sna_device, PictOpSrc,scale, &src, src_bo,