mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
[thread] change wavefront dependencies to depend on bitstream writing instead of recon
* Possible fix for non-deterministic behaviour
This commit is contained in:
parent
5271659f76
commit
aa36c1e86b
|
@ -895,13 +895,11 @@ static void encoder_state_encode_leaf(encoder_state_t * const state)
|
|||
|
||||
// Add local WPP dependancy to the LCU on the left.
|
||||
if (lcu->left) {
|
||||
kvz_threadqueue_job_dep_add(job[0], job[-1]);
|
||||
kvz_threadqueue_job_dep_add(bitstream_job[0], bitstream_job[-1]);
|
||||
kvz_threadqueue_job_dep_add(job[0], bitstream_job[-1]);
|
||||
}
|
||||
// Add local WPP dependancy to the LCU on the top.
|
||||
if (lcu->above) {
|
||||
kvz_threadqueue_job_dep_add(job[0], job[-state->tile->frame->width_in_lcu]);
|
||||
kvz_threadqueue_job_dep_add(bitstream_job[0], bitstream_job[-state->tile->frame->width_in_lcu]);
|
||||
kvz_threadqueue_job_dep_add(job[0], bitstream_job[-state->tile->frame->width_in_lcu]);
|
||||
}
|
||||
|
||||
kvz_threadqueue_submit(state->encoder_control->threadqueue, job[0]);
|
||||
|
|
Loading…
Reference in a new issue