mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-05 11:18:11 +02:00
Fix reversed test that broke vblank waiting on FreeBSD.
Pointy hat to: anholt
This commit is contained in:
parent
3d69766ea6
commit
5e9fad3588
2 changed files with 2 additions and 2 deletions
|
|
@ -142,7 +142,7 @@ do { \
|
|||
#define DRM_HZ hz
|
||||
|
||||
#define DRM_WAIT_ON( ret, queue, timeout, condition ) \
|
||||
while (condition) { \
|
||||
while (!condition) { \
|
||||
ret = tsleep( &(queue), PZERO | PCATCH, "drmwtq", (timeout) ); \
|
||||
if ( ret ) \
|
||||
return ret; \
|
||||
|
|
|
|||
|
|
@ -142,7 +142,7 @@ do { \
|
|||
#define DRM_HZ hz
|
||||
|
||||
#define DRM_WAIT_ON( ret, queue, timeout, condition ) \
|
||||
while (condition) { \
|
||||
while (!condition) { \
|
||||
ret = tsleep( &(queue), PZERO | PCATCH, "drmwtq", (timeout) ); \
|
||||
if ( ret ) \
|
||||
return ret; \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue