diff options
author | Zhao Yakui <yakui.zhao@intel.com> | 2013-12-27 15:05:44 +0800 |
---|---|---|
committer | Yakui Zhao <yakui.zhao@intel.com> | 2013-12-27 15:05:44 +0800 |
commit | 1ddeadfcaaa4ce81c464dd0d6080ade20f7658b1 (patch) | |
tree | f1a67de858fbd2709a4866b428fdd28a6abdca80 | |
parent | a2ce7ea28ecd4d54afa863e4a20c6c0eea7c7809 (diff) | |
download | libva-intel-driver-1ddeadfcaaa4ce81c464dd0d6080ade20f7658b1.tar.gz libva-intel-driver-1ddeadfcaaa4ce81c464dd0d6080ade20f7658b1.tar.bz2 libva-intel-driver-1ddeadfcaaa4ce81c464dd0d6080ade20f7658b1.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 ef4a5b3..1ad1a38 100755 --- a/src/i965_post_processing.c +++ b/src/i965_post_processing.c @@ -3602,7 +3602,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; |