diff options
author | Adam Jackson <ajax@redhat.com> | 2018-04-16 14:08:27 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2018-04-17 10:26:25 -0400 |
commit | 78b6f940217c127f0f345b7710aa5994c6ded99c (patch) | |
tree | c776859d9af1eef178bfefcd593be334b2c30cdd /hw/xfree86 | |
parent | 4e92c51ce4d6ab50c1507a23a01c6be0d1954d79 (diff) |
modesetting: Fix inverted check in dri2 WaitMSC
ms_queue_vblank() returns false on failure.
Reported-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Tested-by: Mike Lothian <mike@fireburn.co.uk>
Diffstat (limited to 'hw/xfree86')
-rw-r--r-- | hw/xfree86/drivers/modesetting/dri2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xfree86/drivers/modesetting/dri2.c b/hw/xfree86/drivers/modesetting/dri2.c index fd36aa118..96eaaaaf7 100644 --- a/hw/xfree86/drivers/modesetting/dri2.c +++ b/hw/xfree86/drivers/modesetting/dri2.c @@ -749,7 +749,7 @@ ms_dri2_schedule_wait_msc(ClientPtr client, DrawablePtr draw, CARD64 target_msc, target_msc = current_msc; ret = ms_queue_vblank(crtc, MS_QUEUE_ABSOLUTE, target_msc, &queued_msc, seq); - if (ret) { + if (!ret) { static int limit = 5; if (limit) { xf86DrvMsg(scrn->scrnIndex, X_WARNING, |