sna/dri2: Handle intermixing of exchanges and blits

Graphics / X.Org / xf86-video-intel - Chris Wilson [chris-wilson.co.uk] - 16 June 2015 11:11 UTC

Since there were two paths performing similar tasks for swapping a windowed buffer, they would get easily confused and queue themselves in conflict with each other as they behaved slightly differently wrt to rapid swaps. Almagamate the two paths such that the behaviour is the same -with the complication being in tracking the spare active buffer.

Fixes (some at least!) flickering from commit 72d208a7f2f0e8f2d93483e535154f34a8a26d81 Author: Chris Wilson Date: Thu Mar 5 12:26:15 2015 +0000

sna/dri2: Perform swap elision on windows for swap-interval==0

f1f2e72 sna/dri2: Handle intermixing of exchanges and blits
src/sna/sna_dri2.c | 314 ++++++++++++++++++++++------------------------------
1 file changed, 131 insertions(+), 183 deletions(-)

Upstream: cgit.freedesktop.org


  • Share