From 60df99091d948cd9055fde776d79ef2cc72908f2 Mon Sep 17 00:00:00 2001 From: Zhao Yakui Date: Fri, 27 Dec 2013 15:05:44 +0800 Subject: [PATCH] Use the correct sub-context for VPP on BDW to avoid the NULL pointer The structure of sub-context is updated for VPP in the commit of 4faf6bf47f8e4e2fe587e3bb6a004340edd59c4c. So BDW should update the correct sub-context.Otherwise the segment fault will be triggered. Signed-off-by: Zhao Yakui --- src/i965_post_processing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i965_post_processing.c b/src/i965_post_processing.c index 28b5817..aa0311d 100755 --- a/src/i965_post_processing.c +++ b/src/i965_post_processing.c @@ -3519,7 +3519,7 @@ gen8_pp_plx_avs_initialize(VADriverContextP ctx, struct i965_post_processing_con void *filter_param) { /* TODO: Add the sampler_8x8 state */ - struct pp_avs_context *pp_avs_context = (struct pp_avs_context *)&pp_context->private_context; + struct pp_avs_context *pp_avs_context = (struct pp_avs_context *)&pp_context->pp_avs_context; struct gen7_pp_static_parameter *pp_static_parameter = pp_context->pp_static_parameter; struct gen8_sampler_8x8_avs *sampler_8x8; struct i965_sampler_8x8_coefficient *sampler_8x8_state; -- 2.7.4