diff options
author | Zhao Yakui <yakui.zhao@intel.com> | 2013-12-27 15:05:44 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2014-02-27 10:30:07 +0800 |
commit | 60df99091d948cd9055fde776d79ef2cc72908f2 (patch) | |
tree | 9526c60693a51b74726751cef51391ecc5ac43a0 | |
parent | ba09098b6e83b32deb8785b9667fcf859242becb (diff) | |
download | libva-intel-driver-60df99091d948cd9055fde776d79ef2cc72908f2.tar.gz libva-intel-driver-60df99091d948cd9055fde776d79ef2cc72908f2.tar.bz2 libva-intel-driver-60df99091d948cd9055fde776d79ef2cc72908f2.zip |
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 <yakui.zhao@intel.com>
-rwxr-xr-x | src/i965_post_processing.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |