Enlarge some internal buffer for H.264 decoding on Ivybridge
authorXiang, Haihao <haihao.xiang@intel.com>
Wed, 2 May 2012 08:23:59 +0000 (16:23 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Wed, 2 May 2012 08:25:04 +0000 (16:25 +0800)
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
(cherry picked from commit c3f06e2b32197d403d96b548b6b7589b245e8aaa)

src/gen7_mfd.c

index 60c811f..e848043 100644 (file)
@@ -976,7 +976,7 @@ gen7_mfd_avc_decode_init(VADriverContextP ctx,
     dri_bo_unreference(gen7_mfd_context->bsd_mpc_row_store_scratch_buffer.bo);
     bo = dri_bo_alloc(i965->intel.bufmgr,
                       "bsd mpc row store",
-                      width_in_mbs * 96,
+                      width_in_mbs * 64 * 2,
                       0x1000);
     assert(bo);
     gen7_mfd_context->bsd_mpc_row_store_scratch_buffer.bo = bo;
@@ -985,7 +985,7 @@ gen7_mfd_avc_decode_init(VADriverContextP ctx,
     dri_bo_unreference(gen7_mfd_context->mpr_row_store_scratch_buffer.bo);
     bo = dri_bo_alloc(i965->intel.bufmgr,
                       "mpr row store",
-                      width_in_mbs * 64,
+                      width_in_mbs * 64 * 2,
                       0x1000);
     assert(bo);
     gen7_mfd_context->mpr_row_store_scratch_buffer.bo = bo;