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:
parent
48e4dc4bd4
commit
8a67d3f808
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue