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>
This commit is contained in:
parent
4e92c51ce4
commit
78b6f94021
|
@ -749,7 +749,7 @@ ms_dri2_schedule_wait_msc(ClientPtr client, DrawablePtr draw, CARD64 target_msc,
|
||||||
target_msc = current_msc;
|
target_msc = current_msc;
|
||||||
|
|
||||||
ret = ms_queue_vblank(crtc, MS_QUEUE_ABSOLUTE, target_msc, &queued_msc, seq);
|
ret = ms_queue_vblank(crtc, MS_QUEUE_ABSOLUTE, target_msc, &queued_msc, seq);
|
||||||
if (ret) {
|
if (!ret) {
|
||||||
static int limit = 5;
|
static int limit = 5;
|
||||||
if (limit) {
|
if (limit) {
|
||||||
xf86DrvMsg(scrn->scrnIndex, X_WARNING,
|
xf86DrvMsg(scrn->scrnIndex, X_WARNING,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user