radeon/vce: determine idr by pic type
authorBoyuan Zhang <boyuan.zhang@amd.com>
Thu, 7 Dec 2017 21:10:13 +0000 (16:10 -0500)
committerLeo Liu <leo.liu@amd.com>
Fri, 15 Dec 2017 21:04:05 +0000 (16:04 -0500)
commit130e1d142fcae560db0f97b2534e8133a4405b99
treebe9dbb284a1cf77276c667214d67955c801abeda
parentc87d91b9d87c6837df16cf0537b9e964cc94106c
radeon/vce: determine idr by pic type

Vaapi encode interface provides idr frame flags, where omx interface doesn't.
Therefore, change to use picture type to determine idr frame, which will
work for both interfaces.

Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
src/gallium/drivers/radeon/radeon_vce_52.c