mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-12 10:26:12 +00:00
tests/flip_test: don't complain about timestamps in the future
those can happen due to the scanline vblank timestamp adjuster ...
This commit is contained in:
parent
4c7fc65cb6
commit
cdad308a4b
@ -161,7 +161,7 @@ static void page_flip_handler(int fd, unsigned int frame, unsigned int sec,
|
|||||||
|
|
||||||
timersub(&pageflip_ts, &now, &diff);
|
timersub(&pageflip_ts, &now, &diff);
|
||||||
|
|
||||||
if (diff.tv_sec > 0 || diff.tv_usec > 2000) {
|
if (diff.tv_sec > 0 || (diff.tv_sec > 0 && diff.tv_usec > 2000)) {
|
||||||
fprintf(stderr, "pageflip timestamp delayed for too long: %is, %iusec\n",
|
fprintf(stderr, "pageflip timestamp delayed for too long: %is, %iusec\n",
|
||||||
(int) diff.tv_sec, (int) diff.tv_usec);
|
(int) diff.tv_sec, (int) diff.tv_usec);
|
||||||
exit(5);
|
exit(5);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user