Home | History | Annotate | Download | only in test

Lines Matching refs:msc

145 	uint64_t msc = 0;
162 msc = ce->msc;
170 if ((int64_t)(msc - last_msc) < 0) {
171 printf("Invalid MSC: was %llu, now %llu\n",
172 (long long)last_msc, (long long)msc);
178 return msc;
185 uint64_t msc = 0;
202 msc = ce->msc;
211 return msc;
217 uint64_t msc, ust;
220 msc = check_msc(dpy, win, q, 0, NULL);
222 xcb_present_notify_msc(c, win, 0xc0ffee00, msc, 0, 0);
223 xcb_present_notify_msc(c, win, 0xc0ffee01, msc + 10, 0, 0);
226 ust = msc = 0;
238 msc -= ce->msc;
244 msc += ce->msc;
251 printf("10 frame interval: msc=%lld, ust=%lld\n",
252 (long long)msc, (long long)ust);
254 if (msc == 0)
257 return (ust + msc/2) / msc;
296 0, /* target msc */
312 0, /* target msc */
331 uint64_t msc;
334 msc = check_msc(dpy, win, Q, 0, NULL);
345 msc + 60, /* target msc */
366 return check_msc(dpy, win, Q, msc, ust);
379 uint64_t msc, ust;
403 0, /* target msc */
421 frame[n].msc = ce->msc;
433 if (frame[COUNT].msc - frame[0].msc != COUNT) {
435 COUNT, (int)(frame[COUNT].msc - frame[0].msc));
437 if (frame[n].msc - frame[0].msc != n + offset) {
438 printf("frame[%d]: msc=%03lld, ust=%lld\n", n,
439 (long long)(frame[n].msc - frame[0].msc),
441 offset = frame[n].msc - frame[0].msc - n;
459 uint64_t msc, ust;
481 msc = flush_flips(dpy, win, pixmap, Q, &ust);
493 msc + 60 + n*15*60, /* target msc */
507 msc + 60 + n*15*60, /* target msc */
541 int diff = (int64_t)(ce->msc - (15*60*ce->serial + msc + 60));
630 target + N_VBLANKS, /* target msc */
643 target, /* target msc */
657 target + n, /* target msc */
670 target + N_VBLANKS, /* target msc */
679 printf("\tFirst flip too early, MSC was %llu, expected %llu\n",
683 printf("\tFirst flip too late, MSC was %llu, expected %llu\n",
691 printf("\tLast flip too early, MSC was %llu, expected %llu\n",
695 printf("\tLast flip too late, MSC was %llu, expected %llu\n",
747 target + 60 + n, /* target msc */
761 target + 60 + n, /* target msc */
781 int diff = (int64_t)(ce->msc - (target + ce->serial + 60));
872 0, /* target msc */
889 target + 2*x, /* target msc */
911 uint64_t msc;
917 msc = target;
918 msc -= target % x;
919 msc += y;
920 if (msc <= target)
921 msc += x;
923 diff = (int64_t)(ce->msc - msc);
981 uint64_t msc, ust;
995 msc = check_msc(dpy, root, Q, 0, &ust);
996 printf("Initial msc=%llx, interval between frames %lldus\n",
997 (long long)msc, (long long)interval);
1000 xcb_present_notify_msc(c, root, n, msc + 60 + n*15*60, 0, 0);
1001 xcb_present_notify_msc(c, root, 0xdeadbeef, msc + 60 + n*15*60, 0, 0);
1036 int diff = (int64_t)(ce->msc - (15*60*ce->serial + msc + 60));
1047 fprintf(stderr, "\tnotify %d early by %d msc\n", ce->serial, -diff);
1054 fprintf(stderr, "\tnotify %d late by %d msc\n", ce->serial, diff);
1101 uint64_t msc, ust;
1128 msc = check_msc(dpy, win, Q, 0, &ust);
1129 printf("Initial msc=%llx, interval between frames %lldus\n",
1130 (long long)msc, (long long)interval);
1134 msc + ((long long)n<<32) + n,
1139 xcb_present_notify_msc(c, win, 0xdeadbeef, msc + 60*10, 0, 0);
1159 ce->serial, ce->msc - msc);
1180 uint64_t msc;
1185 msc = check_msc(dpy, root, Q, 0, NULL);
1187 xcb_present_notify_msc(c, root, N_VBLANKS, msc + N_VBLANKS, 0, 0);
1189 xcb_present_notify_msc(c, root, n, msc + n, 0, 0);
1205 diff = (int64_t)(ce->msc - msc - ce->serial);
1208 fprintf(stderr, "\tnotify %d early by %d msc\n",(int)ce->serial, -diff);
1215 fprintf(stderr, "\tnotify %d late by %d msc\n", (int)ce->serial, diff);
1242 uint64_t msc;
1250 msc = check_msc(dpy, root, Q, 0, NULL);
1252 xcb_present_notify_msc(c, root, n, msc + 60 + n, 0, 0);
1253 xcb_present_notify_msc(c, root, 0xdeadbeef, msc + 60 + n, 0, 0);
1270 int diff = (int64_t)(ce->msc - (msc + ce->serial + 60));
1273 fprintf(stderr, "\tnotify %d early by %d msc\n", ce->serial, -diff);
1280 fprintf(stderr, "\tnotify %d late by %d msc\n", ce->serial, diff);
1354 assert(target == ce->msc);
1355 target = ce->msc;
1370 uint64_t msc;
1376 msc = target;
1377 msc -= target % x;
1378 msc += y;
1379 if (msc <= target)
1380 msc += x;
1382 diff = (int64_t)(ce->msc - msc);
1385 fprintf(stderr, "\tnotify (%d, %d) early by %d msc (target %lld, reported %lld)\n", y, x, -diff, (long long)msc, (long long)ce->msc);
1392 fprintf(stderr, "\tnotify (%d, %d) late by %d msc (target %lld, reported %lld)\n", y, x, diff, (long long)msc, (long long)ce->msc);
1525 uint64_t msc;
1538 test->msc = check_msc(dpy, test->win, test->queue, test->msc, NULL);
1555 test->msc, /* target msc */
1572 test->msc + (test->flags & FUTURE ? 5 * 16 : 1), /* target msc */
1582 test->msc = check_msc(dpy, test->win, test->queue, test->msc, NULL);
1599 test.msc = last_msc;
1603 test.msc = check_msc(dpy, test.win, test.queue, test.msc, NULL);
1605 test.msc = check_msc(dpy, test.win, test.queue, test.msc, NULL);
1609 test.msc = check_msc(dpy, test.win, test.queue, test.msc, NULL);
1611 test.msc = check_msc(dpy, test.win, test.queue, test.msc, NULL);
1615 test.msc = check_msc(dpy, test.win, test.queue, test.msc, NULL);
1617 test.msc = check_msc(dpy, test.win, test.queue, test.msc, NULL);
1688 0, /* target msc */
1825 uint64_t msc;
1848 msc = wait_vblank(dpy, root, Q);
1861 msc + 2, /* target msc */
1877 msc + 3, /* target msc */
1961 0, /* target msc */
1997 0, /* target msc */
2116 uint64_t msc = 0;
2177 msc = check_msc(dpy, win, Q, msc, NULL);
2180 msc = check_msc(dpy, win, Q, msc, NULL);
2183 msc = check_msc(dpy, win, Q, msc, NULL);
2186 msc = check_msc(dpy, win, Q, msc, NULL);
2189 msc = check_msc(dpy, win, Q, msc, NULL);
2192 msc = check_msc(dpy, win, Q, msc, NULL);
2195 msc = check_msc(dpy, win, Q, msc, NULL);