mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-23 07:46:15 +00:00
flip_test: skip check for last_received_ts for the first event
The old way worked too, but just skipping the test for the first event is more logical/simpler thing to do. Signed-off-by: Imre Deak <imre.deak@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
b28caa0ac0
commit
8a2593bd3c
@ -362,6 +362,9 @@ static void check_state(struct test_output *o, struct event_state *es)
|
|||||||
exit(5);
|
exit(5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (es->count == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
if (!timercmp(&es->last_received_ts, &es->current_ts, <)) {
|
if (!timercmp(&es->last_received_ts, &es->current_ts, <)) {
|
||||||
fprintf(stderr, "%s ts before the %s was issued!\n",
|
fprintf(stderr, "%s ts before the %s was issued!\n",
|
||||||
es->name, es->name);
|
es->name, es->name);
|
||||||
@ -372,9 +375,6 @@ static void check_state(struct test_output *o, struct event_state *es)
|
|||||||
exit(6);
|
exit(6);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (es->count == 0)
|
|
||||||
return;
|
|
||||||
|
|
||||||
/* This bounding matches the one in DRM_IOCTL_WAIT_VBLANK. */
|
/* This bounding matches the one in DRM_IOCTL_WAIT_VBLANK. */
|
||||||
if (es->current_seq - (es->last_seq + es->seq_step) > 1UL << 23) {
|
if (es->current_seq - (es->last_seq + es->seq_step) > 1UL << 23) {
|
||||||
fprintf(stderr, "unexpected %s seq %u, should be >= %u\n",
|
fprintf(stderr, "unexpected %s seq %u, should be >= %u\n",
|
||||||
@ -862,9 +862,6 @@ static void run_test_on_crtc(struct test_output *o, int crtc, int duration)
|
|||||||
if (o->flags & TEST_CHECK_TS)
|
if (o->flags & TEST_CHECK_TS)
|
||||||
sleep(1);
|
sleep(1);
|
||||||
|
|
||||||
gettimeofday(&o->flip_state.last_ts, NULL);
|
|
||||||
gettimeofday(&o->vblank_state.last_ts, NULL);
|
|
||||||
|
|
||||||
if (do_page_flip(o, o->fb_ids[1])) {
|
if (do_page_flip(o, o->fb_ids[1])) {
|
||||||
fprintf(stderr, "failed to page flip: %s\n", strerror(errno));
|
fprintf(stderr, "failed to page flip: %s\n", strerror(errno));
|
||||||
exit(4);
|
exit(4);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user