diff options
author | Zhao Yakui <yakui.zhao@intel.com> | 2014-04-22 11:05:18 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2014-04-23 14:25:37 +0800 |
commit | 4082c9db1eef45bc117fc151d60a178926ab9f73 (patch) | |
tree | 225985415639347a16e8bc1f32e5ee2aafb9b251 | |
parent | 42258e128f19b93aa102672d5f61eb73d9f9808f (diff) |
VPP: Set the alpha channel when doing the conversion from NV12 to RGBA on Ivy/Haswell/BDW
Currently zero is written to alpha channel when doing the conversion
from NV12 to RGBA(BGRA), which affects the following the rendering operation.
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
-rw-r--r-- | src/gen8_post_processing.c | 1 | ||||
-rwxr-xr-x | src/i965_post_processing.c | 1 | ||||
-rwxr-xr-x | src/i965_post_processing.h | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/src/gen8_post_processing.c b/src/gen8_post_processing.c index adafefa..5bfd042 100644 --- a/src/gen8_post_processing.c +++ b/src/gen8_post_processing.c @@ -999,6 +999,7 @@ gen8_pp_plx_avs_initialize(VADriverContextP ctx, struct i965_post_processing_con pp_static_parameter->grf2.avs_wa_width = src_width; pp_static_parameter->grf2.avs_wa_one_div_256_width = (float) 1.0 / (256 * src_width); pp_static_parameter->grf2.avs_wa_five_div_256_width = (float) 5.0 / (256 * src_width); + pp_static_parameter->grf2.alpha = 255; pp_static_parameter->grf3.sampler_load_horizontal_scaling_step_ratio = (float) pp_avs_context->src_w / dw; pp_static_parameter->grf4.sampler_load_vertical_scaling_step = (float) src_rect->height / src_height / dst_rect->height; diff --git a/src/i965_post_processing.c b/src/i965_post_processing.c index 2602712..82f594c 100755 --- a/src/i965_post_processing.c +++ b/src/i965_post_processing.c @@ -3015,6 +3015,7 @@ gen7_pp_plx_avs_initialize(VADriverContextP ctx, struct i965_post_processing_con pp_static_parameter->grf2.avs_wa_width = dw; pp_static_parameter->grf2.avs_wa_one_div_256_width = (float) 1.0 / (256 * dw); pp_static_parameter->grf2.avs_wa_five_div_256_width = (float) 5.0 / (256 * dw); + pp_static_parameter->grf2.alpha = 255; pp_static_parameter->grf3.sampler_load_horizontal_scaling_step_ratio = (float) pp_avs_context->src_w / dw; pp_static_parameter->grf4.sampler_load_vertical_scaling_step = (float) src_rect->height / src_height / dst_rect->height; diff --git a/src/i965_post_processing.h b/src/i965_post_processing.h index ffc9d1c..add1a8e 100755 --- a/src/i965_post_processing.h +++ b/src/i965_post_processing.h @@ -393,7 +393,7 @@ struct gen7_pp_static_parameter unsigned int di_destination_packed_y_component_offset:8; unsigned int di_destination_packed_u_component_offset:8; unsigned int di_destination_packed_v_component_offset:8; - unsigned int pad0:8; + unsigned int alpha:8; } grf2; struct { |