[Libva] [libva-intel-driver PATCH 2/2] dec/hevc: Use a different equation for metadata tile column buffer on BSW
Zhao, Yakui
yakui.zhao at intel.com
Mon Jun 29 17:06:52 PDT 2015
On Mon, 2015-06-29 at 01:36 -0600, Xiang, Haihao wrote:
> Signed-off-by: Xiang, Haihao <haihao.xiang at intel.com>
LGTM.
Thanks
> ---
> src/gen9_mfd.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/src/gen9_mfd.c b/src/gen9_mfd.c
> index 52fa6ee..c435e30 100644
> --- a/src/gen9_mfd.c
> +++ b/src/gen9_mfd.c
> @@ -150,7 +150,10 @@ gen9_hcpd_hevc_decode_init(VADriverContextP ctx,
> size <<= 6;
> ALLOC_GEN_BUFFER((&gen9_hcpd_context->metadata_tile_line_buffer), "metadata tile line buffer", size);
>
> - size = (((gen9_hcpd_context->picture_height_in_pixels + 15) >> 4) * 176 + 89 * gen9_hcpd_context->picture_height_in_ctbs + 1023) >> 9;
> + if (IS_CHERRYVIEW(i965->intel.device_info))
> + size = (((gen9_hcpd_context->picture_height_in_pixels + 15) >> 4) * 256 + 9 * gen9_hcpd_context->picture_height_in_ctbs + 1023) >> 9;
> + else
> + size = (((gen9_hcpd_context->picture_height_in_pixels + 15) >> 4) * 176 + 89 * gen9_hcpd_context->picture_height_in_ctbs + 1023) >> 9;
> size <<= 6;
> ALLOC_GEN_BUFFER((&gen9_hcpd_context->metadata_tile_column_buffer), "metadata tile column buffer", size);
>
More information about the Libva
mailing list