st/va/postproc: reallocate interlaced destination buffer
authorThong Thai <thong.thai@amd.com>
Fri, 28 Feb 2020 15:56:49 +0000 (10:56 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 3 Mar 2020 15:17:26 +0000 (15:17 +0000)
commit3f31c54842d4d2e1e78dad6cab57e45cb616b344
tree477ba561238c46ae929f53167fcd3c680819d794
parent2d32248f49ebc25d76eb32d6f7a41bb0fd2c489a
st/va/postproc: reallocate interlaced destination buffer

When the source buffer is progressive source, re-allocate the
destination buffer as progressive if it isn't already - otherwise
transcoding will fail.

Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/1418
Signed-off-by: Thong Thai <thong.thai@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4001>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4001>
src/gallium/state_trackers/va/postproc.c