summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqing.zhang <qing.zhang@intel.com>2014-04-22 03:16:29 +0800
committerqing.zhang <qing.zhang@intel.com>2014-04-24 02:40:07 +0800
commitf500221ba71ecd10b29696c64aa8e0e97dbed2be (patch)
tree0be3d78a1f4bb9f71d039d8b5c2c16ecdbe64b05
parent3a777e008d4a54587548437582bcd3aad05a7f8e (diff)
downloadlibva-intel-driver-f500221ba71ecd10b29696c64aa8e0e97dbed2be.tar.gz
libva-intel-driver-f500221ba71ecd10b29696c64aa8e0e97dbed2be.tar.bz2
libva-intel-driver-f500221ba71ecd10b29696c64aa8e0e97dbed2be.zip
buffer from vaimage. Be verified in Tizen IVI. Origin: http://cgit.freedesktop.org/vaapi/intel-driver/commit/src/i965_post_processing.c?id=0d3462360f624750233d77771d55f48bc00039e5 Bug-Tizen: PTREL-789 Change-Id: I6115c0b4fb91079089a199835e5d0aa30b248dbe Signed-off-by: Qing Zhang <qing.zhang@intel.com>
-rwxr-xr-xsrc/i965_post_processing.c1
-rwxr-xr-xsrc/i965_post_processing.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/i965_post_processing.c b/src/i965_post_processing.c
index 0c3d7f8..9c0054d 100755
--- a/src/i965_post_processing.c
+++ b/src/i965_post_processing.c
@@ -3587,6 +3587,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 bbf64c7..1d64232 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 {