hardware/intel/intel-driver
Révision | 142f38867d44dfa85b9502bce48e6d66f75f8141 (tree) |
---|---|
l'heure | 2016-05-27 14:24:35 |
Auteur | Zhao Yakui <yakui.zhao@inte...> |
Commiter | Xiang, Haihao |
Release the corresponding buffers for VP9 encoding
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Reviewed-by: Sean V Kelley <sean.v.kelley@intel.com>
@@ -2835,6 +2835,13 @@ i965_BeginPicture(VADriverContextP ctx, | ||
2835 | 2835 | obj_context->codec_state.encode.slice_index = 0; |
2836 | 2836 | obj_context->codec_state.encode.vps_sps_seq_index = 0; |
2837 | 2837 | i965_release_buffer_store(&obj_context->codec_state.encode.encmb_map); |
2838 | + | |
2839 | + if (obj_config->profile == VAProfileVP9Profile0) { | |
2840 | + for (i = 0; i < ARRAY_ELEMS(obj_context->codec_state.encode.misc_param); i++) | |
2841 | + i965_release_buffer_store(&obj_context->codec_state.encode.misc_param[i]); | |
2842 | + | |
2843 | + i965_release_buffer_store(&obj_context->codec_state.encode.seq_param_ext); | |
2844 | + } | |
2838 | 2845 | } else { |
2839 | 2846 | obj_context->codec_state.decode.current_render_target = render_target; |
2840 | 2847 | i965_release_buffer_store(&obj_context->codec_state.decode.pic_param); |