Explicitly declare the color blend operation for subpicture on BDW
authorZhao Yakui <yakui.zhao@intel.com>
Thu, 19 Dec 2013 09:03:31 +0000 (17:03 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Thu, 27 Feb 2014 02:26:24 +0000 (10:26 +0800)
Without this it still can work. This is only human-readable.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
src/i965_render.c

index 9fea827..d79f6b1 100644 (file)
@@ -4266,6 +4266,7 @@ gen8_subpicture_render_blend_state(VADriverContextP ctx)
     memset(global_blend_state, 0, sizeof(*global_blend_state));
     /* 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;
     blend_state->blend0.dest_blend_factor = I965_BLENDFACTOR_INV_SRC_ALPHA;
     blend_state->blend0.src_blend_factor = I965_BLENDFACTOR_SRC_ALPHA;
     blend_state->blend0.alpha_blend_func = I965_BLENDFUNCTION_ADD;