From 662243418cb7199e41b3dffc6bd8d962146b1dab Mon Sep 17 00:00:00 2001 From: Zhao Yakui Date: Thu, 19 Dec 2013 17:03:31 +0800 Subject: [PATCH] Explicitly declare the color blend operation for subpicture on BDW Without this it still can work. This is only human-readable. Signed-off-by: Zhao Yakui --- src/i965_render.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/i965_render.c b/src/i965_render.c index 9fea827..d79f6b1 100644 --- a/src/i965_render.c +++ b/src/i965_render.c @@ -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; -- 2.7.4