Skip to content
Snippets Groups Projects
Commit 9be8d292 authored by Robert Drab's avatar Robert Drab Committed by Francesco Pham
Browse files

xf86drm.c-Add-drmWaitVBlank-hack.patch: Fix busy wait loop


Signed-off-by: default avatarRobert Drab <robert.drab@huawei.com>
parent db38cff7
No related branches found
No related tags found
1 merge request!88openharmony-standard-3.0: add patches and initialization changes to fix ACTS failures
...@@ -35,9 +35,10 @@ index b49d42f..0e2805a 100644 ...@@ -35,9 +35,10 @@ index b49d42f..0e2805a 100644
if (cur.tv_sec > timeout.tv_sec + 1 || if (cur.tv_sec > timeout.tv_sec + 1 ||
(cur.tv_sec == timeout.tv_sec && cur.tv_nsec >= (cur.tv_sec == timeout.tv_sec && cur.tv_nsec >=
timeout.tv_nsec)) { timeout.tv_nsec)) {
@@ -2187,9 +2188,11 @@ drm_public int drmWaitVBlank(int fd, drmVBlankPtr vbl) @@ -2187,9 +2188,12 @@ drm_public int drmWaitVBlank(int fd, drmVBlankPtr vbl)
break; break;
} }
+ usleep(10000);
} }
- } while (ret && errno == EINTR); - } while (ret && errno == EINTR);
+ } while (ret && (errno == EINTR || errno == ENOTSUP)); + } while (ret && (errno == EINTR || errno == ENOTSUP));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment