[Libva] [libva-intel-driver PATCH 2/2] dec/hevc: Use a different equation for metadata tile column buffer on BSW

Xiang, Haihao haihao.xiang at intel.com
Fri Jun 26 09:23:07 PDT 2015


Signed-off-by: Xiang, Haihao <haihao.xiang at intel.com>
---
 src/gen9_mfd.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/gen9_mfd.c b/src/gen9_mfd.c
index a3fef85..260c9bf 100644
--- a/src/gen9_mfd.c
+++ b/src/gen9_mfd.c
@@ -156,7 +156,11 @@ gen9_hcpd_hevc_decode_init(VADriverContextP ctx,
     size <<= 6;
     ALLOC_HCPD_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_HCPD_BUFFER((&gen9_hcpd_context->metadata_tile_column_buffer), "metadata tile column buffer", size);
 
-- 
1.9.1



More information about the Libva mailing list