mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-06 07:06:10 +00:00
t/hsv: Improve latency when debugging by pushing debug frame after all other frames
This commit is contained in:
parent
b05cf3667a
commit
63ca028b83
|
@ -307,15 +307,16 @@ push_frame(struct xrt_frame_sink *xsink, struct xrt_frame *xf)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (f->debug != NULL) {
|
|
||||||
f->debug->push_frame(f->debug, xf);
|
|
||||||
}
|
|
||||||
|
|
||||||
push_buf(f, xf, f->sinks[0], &f->frame0);
|
push_buf(f, xf, f->sinks[0], &f->frame0);
|
||||||
push_buf(f, xf, f->sinks[1], &f->frame1);
|
push_buf(f, xf, f->sinks[1], &f->frame1);
|
||||||
push_buf(f, xf, f->sinks[2], &f->frame2);
|
push_buf(f, xf, f->sinks[2], &f->frame2);
|
||||||
push_buf(f, xf, f->sinks[3], &f->frame3);
|
push_buf(f, xf, f->sinks[3], &f->frame3);
|
||||||
|
|
||||||
|
// Push the debug frame last, there might be a conversion involved.
|
||||||
|
if (f->debug != NULL) {
|
||||||
|
f->debug->push_frame(f->debug, xf);
|
||||||
|
}
|
||||||
|
|
||||||
assert(f->frame0 == NULL);
|
assert(f->frame0 == NULL);
|
||||||
assert(f->frame1 == NULL);
|
assert(f->frame1 == NULL);
|
||||||
assert(f->frame2 == NULL);
|
assert(f->frame2 == NULL);
|
||||||
|
|
Loading…
Reference in a new issue