From: Zhao Yakui Date: Thu, 19 Dec 2013 09:03:31 +0000 (+0800) Subject: Explicitly declare the color blend operation for subpicture on BDW X-Git-Tag: android-x86-7.1-r1~950 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=662243418cb7199e41b3dffc6bd8d962146b1dab;p=android-x86%2Fhardware-intel-common-vaapi.git 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 --- 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;