radeon/vce: use util function to get h264 profile idc
authorBoyuan Zhang <boyuan.zhang@amd.com>
Tue, 23 Oct 2018 15:20:33 +0000 (11:20 -0400)
committerLeo Liu <leo.liu@amd.com>
Fri, 26 Oct 2018 17:23:06 +0000 (13:23 -0400)
commit55cf565698b05cd900c37ace02235f874d1ac093
treed236d12cda12692f8646820b095358fc2ad3bd57
parentb15d0200a9a0eae8e2d69b70e8a3164040f17ed6
radeon/vce: use util function to get h264 profile idc

Use utility function for converting h264 pipe video profile to profile idc,
instead of using array.

Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com>
Acked-by: Christian König <christian.koenig at amd.com>
src/gallium/drivers/radeon/radeon_vce_40_2_2.c
src/gallium/drivers/radeon/radeon_vce_52.c