st/va: force to submit two consecutive single jobs
authorBoyuan Zhang <boyuan.zhang@amd.com>
Tue, 29 Nov 2016 18:27:10 +0000 (13:27 -0500)
committerLeo Liu <leo.liu@amd.com>
Mon, 5 Dec 2016 14:23:38 +0000 (09:23 -0500)
commit8206882392c9cc070e21d6fbc90368c94235d8cd
tree61b8eddb1b2816fd672dc142b6ddb145a78e15d0
parent7b811c362a0b0cfb9a8c503cacf9be57d1ed2c7a
st/va: force to submit two consecutive single jobs

The gop_size in rate control is the budget window for internal rate
control calculation, and shouldn't always equal to idr period. Define
a coefficient to let budget window contains a number of idr period for
proper rate control calculation. Adjust the number of i/p frame remaining
accordingly.

v2: fixed regression issues introduced by previous version

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=98005
Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
src/gallium/state_trackers/va/picture.c
src/gallium/state_trackers/va/surface.c
src/gallium/state_trackers/va/va_private.h