sna/dri2: Mark the pending backbuffer copy as active

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

In order to perform swap elision for windows, we defer the blit until the next vblank and then do whatever was the last buffer to be presented by the client. Whilst that copy is pending, in the same manner as a pending flip, we cannot hand that buffer back to the client for use (or else they will render over top of it before we copy from it, or even worse we copy from it in the middle of rendering).

dcb4d32 sna/dri2: Mark the pending backbuffer copy as active
src/sna/sna_dri2.c | 49 ++++++++++++++++++++++++++++++++++++++++++++++---
1 file changed, 46 insertions(+), 3 deletions(-)

Upstream: cgit.freedesktop.org


  • Share