hardware/intel/intel-driver
Revisión | fc1cecc71353cbe7ebbd74b2476712b4712cae51 (tree) |
---|---|
Tiempo | 2014-12-14 01:42:17 |
Autor | Xiang, Haihao <haihao.xiang@inte...> |
Commiter | Xiang, Haihao |
HEVC: gen9_hcpd_bsd_object()
Issue HCP_BSD_OBJECT to start decoding
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
(cherry picked from commit bb11760356acf67a620bec96ae4b1b9327eec53b)
@@ -822,6 +822,23 @@ gen9_hcpd_slice_state(VADriverContextP ctx, | ||
822 | 822 | ADVANCE_BCS_BATCH(batch); |
823 | 823 | } |
824 | 824 | |
825 | +static void | |
826 | +gen9_hcpd_bsd_object(VADriverContextP ctx, | |
827 | + VASliceParameterBufferHEVC *slice_param, | |
828 | + struct gen9_hcpd_context *gen9_hcpd_context) | |
829 | +{ | |
830 | + struct intel_batchbuffer *batch = gen9_hcpd_context->base.batch; | |
831 | + | |
832 | + BEGIN_BCS_BATCH(batch, 3); | |
833 | + | |
834 | + OUT_BCS_BATCH(batch, HCP_BSD_OBJECT | (3 - 2)); | |
835 | + | |
836 | + OUT_BCS_BATCH(batch, slice_param->slice_data_size); | |
837 | + OUT_BCS_BATCH(batch, slice_param->slice_data_offset); | |
838 | + | |
839 | + ADVANCE_BCS_BATCH(batch); | |
840 | +} | |
841 | + | |
825 | 842 | static VAStatus |
826 | 843 | gen9_hcpd_hevc_decode_picture(VADriverContextP ctx, |
827 | 844 | struct decode_state *decode_state, |
@@ -874,6 +891,7 @@ gen9_hcpd_hevc_decode_picture(VADriverContextP ctx, | ||
874 | 891 | gen9_hcpd_slice_state(ctx, pic_param, slice_param, next_slice_param, gen9_hcpd_context); |
875 | 892 | gen9_hcpd_ref_idx_state(ctx, pic_param, slice_param, gen9_hcpd_context); |
876 | 893 | gen9_hcpd_weightoffset_state(ctx, slice_param, gen9_hcpd_context); |
894 | + gen9_hcpd_bsd_object(ctx, slice_param, gen9_hcpd_context); | |
877 | 895 | slice_param++; |
878 | 896 | } |
879 | 897 | } |