radeon/vcn: enable h264 decode entension support
authorLeo Liu <leo.liu@amd.com>
Fri, 23 Jun 2017 17:21:09 +0000 (13:21 -0400)
committerLeo Liu <leo.liu@amd.com>
Tue, 27 Jun 2017 14:59:44 +0000 (10:59 -0400)
It's enabled through message buffer for UVD

Signed-off-by: Leo Liu <leo.liu@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
src/gallium/drivers/radeon/radeon_vcn_dec.c
src/gallium/drivers/radeon/radeon_vcn_dec.h

index 82dfa71633a3b8aa00ca9dd9e45bc18b9d26121e..bd93b849db0f33af7d626b450c790c84dad3bdc9 100644 (file)
@@ -111,6 +111,7 @@ static rvcn_dec_message_avc_t get_h264_msg(struct radeon_decoder *dec,
        result.sps_info_flags |= pic->pps->sps->mb_adaptive_frame_field_flag << 1;
        result.sps_info_flags |= pic->pps->sps->frame_mbs_only_flag << 2;
        result.sps_info_flags |= pic->pps->sps->delta_pic_order_always_zero_flag << 3;
+       result.sps_info_flags |= 1 << RDECODE_SPS_INFO_H264_EXTENSION_SUPPORT_FLAG_SHIFT;
 
        result.bit_depth_luma_minus8 = pic->pps->sps->bit_depth_luma_minus8;
        result.bit_depth_chroma_minus8 = pic->pps->sps->bit_depth_chroma_minus8;
index d5516b6e90c26bd41b7813fc731ece78ffcca618..accffef6d90cc1ae652d49470d0ee2d8c181548e 100644 (file)
 
 #define RDECODE_FEEDBACK_PROFILING                     0x00000001
 
+#define RDECODE_SPS_INFO_H264_EXTENSION_SUPPORT_FLAG_SHIFT     7
+
 typedef struct rvcn_dec_message_index_s {
        unsigned int    message_id;
        unsigned int    offset;