sna/dri: Set the correct current_msc for the no readback path

If we are asked to render immediately, then in order to pass the tests
when comparing it to target, we need to set the current_msc to the
ultimate future value, -1.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-12-21 10:21:06 +00:00
parent 48e4dc4bd4
commit 8a67d3f808
1 changed files with 3 additions and 3 deletions

View File

@ -2090,10 +2090,10 @@ sna_dri_schedule_swap(ClientPtr client, DrawablePtr draw, DRI2BufferPtr front,
goto blit_fallback;
current_msc = vbl.reply.sequence;
} else
current_msc = 0;
current_msc = -1;
DBG(("%s: target_msc=%u, current_msc=%u, divisor=%u\n",
__FUNCTION__, *target_msc, current_msc, divisor));
DBG(("%s: target_msc=%u, current_msc=%u, divisor=%u\n", __FUNCTION__,
(uint32_t)*target_msc, (uint32_t)current_msc, (uint32_t)divisor));
if (divisor == 0 && current_msc >= *target_msc) {
if (can_exchange(sna, draw, front, back)) {