summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2013-12-30 12:42:47 +0800
committerYakui Zhao <yakui.zhao@intel.com>2013-12-30 12:42:47 +0800
commite92bb1a84b9443b573baf2d3dcfe9f6cf67203f3 (patch)
tree535c862fbb08d9e8f62acd8cc2731694e7e3bfcd
parent6522bdbb05e4df86516666de2a957b1de96d89b9 (diff)
downloadlibva-intel-driver-e92bb1a84b9443b573baf2d3dcfe9f6cf67203f3.tar.gz
libva-intel-driver-e92bb1a84b9443b573baf2d3dcfe9f6cf67203f3.tar.bz2
libva-intel-driver-e92bb1a84b9443b573baf2d3dcfe9f6cf67203f3.zip
Render/BDW: Initialize the blend_state for rendering
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
-rw-r--r--src/i965_render.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/i965_render.c b/src/i965_render.c
index bb974e7..1376c32 100644
--- a/src/i965_render.c
+++ b/src/i965_render.c
@@ -2799,7 +2799,7 @@ gen8_render_blend_state(VADriverContextP ctx)
global_blend_state = (struct gen8_global_blend_state*) cc_ptr;
- memset(global_blend_state, 0, sizeof(*global_blend_state));
+ memset(global_blend_state, 0, render_state->blend_state_size);
/* Global blend state + blend_state for Render Target */
blend_state = (struct gen8_blend_state_rt *)(global_blend_state + 1);
blend_state->blend1.logic_op_enable = 1;
@@ -4293,7 +4293,7 @@ gen8_subpicture_render_blend_state(VADriverContextP ctx)
global_blend_state = (struct gen8_global_blend_state*) cc_ptr;
- memset(global_blend_state, 0, sizeof(*global_blend_state));
+ memset(global_blend_state, 0, render_state->blend_state_size);
/* Global blend state + blend_state for Render Target */
blend_state = (struct gen8_blend_state_rt *)(global_blend_state + 1);
blend_state->blend0.color_blend_func = I965_BLENDFUNCTION_ADD;