radeon/vcn: determine idr by pic type
authorBoyuan Zhang <boyuan.zhang@amd.com>
Thu, 30 Nov 2017 16:58:32 +0000 (11:58 -0500)
committerLeo Liu <leo.liu@amd.com>
Fri, 15 Dec 2017 21:04:05 +0000 (16:04 -0500)
commitc87d91b9d87c6837df16cf0537b9e964cc94106c
tree0d1cc58fe8346dfd5b0633959765e6593416cb02
parent5d03a68640dcf216484e37c316d2d91db9994a66
radeon/vcn: 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>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/drivers/radeon/radeon_vcn_enc.c