loop_filter_rows_mt: unify worker count calculation
authorJames Zern <jzern@google.com>
Sun, 7 Apr 2019 00:07:13 +0000 (17:07 -0700)
committerJames Zern <jzern@google.com>
Sat, 13 Apr 2019 06:50:08 +0000 (23:50 -0700)
commite8b2750904fd78cf168fa196b38d35594b060e8a
tree088087482d35b53b01ead6a03d83cea3372a0898
parentb758ba795a04d551caa3c1af2806cdf0c075803a
loop_filter_rows_mt: unify worker count calculation

fixes a deadlock with an odd number of threads that go from < number of
tiles to >. the previous calculations were out of sync so going from
e.g., 8 tiles to 2 with 3 threads would result in scheduling only 2
workers, but thread_loop_filter_rows() would expect 3.

BUG=webm:1618

Change-Id: I78c967a8c3c927d929e13c949808a5ef443ebacb
test/vp9_end_to_end_test.cc
vp9/common/vp9_thread_common.c
vp9/common/vp9_thread_common.h