From 9227acc9451b495516ba467b77702bd17aa11b79 Mon Sep 17 00:00:00 2001 From: "Li, Xiaowei A" Date: Fri, 14 Dec 2012 10:05:43 +0800 Subject: [PATCH] vc1: fix bitplane buffer size(HSW) This fixes buffer overflow in the newly allocated Gen buffer that holds VC-1 bitplanes. Signed-off-by: Li,Xiaowei --- src/gen75_mfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gen75_mfd.c b/src/gen75_mfd.c index 2b77f7b..2278a29 100644 --- a/src/gen75_mfd.c +++ b/src/gen75_mfd.c @@ -1807,7 +1807,7 @@ gen75_mfd_vc1_decode_init(VADriverContextP ctx, bo = dri_bo_alloc(i965->intel.bufmgr, "VC-1 Bitplane", - bitplane_width * bitplane_width, + bitplane_width * height_in_mbs, 0x1000); assert(bo); gen7_mfd_context->bitplane_read_buffer.bo = bo; -- 2.7.4