Lines Matching refs:alpha_config

2087 static void vop2_parse_alpha(struct vop2_alpha_config *alpha_config,  in vop2_parse_alpha()  argument
2090 int src_glb_alpha_en = is_opaque(alpha_config->src_glb_alpha_value) ? 0 : 1; in vop2_parse_alpha()
2091 int dst_glb_alpha_en = is_opaque(alpha_config->dst_glb_alpha_value) ? 0 : 1; in vop2_parse_alpha()
2092 int src_color_mode = alpha_config->src_premulti_en ? in vop2_parse_alpha()
2094 int dst_color_mode = alpha_config->dst_premulti_en ? in vop2_parse_alpha()
2102 if (!alpha_config->src_pixel_alpha_en) in vop2_parse_alpha()
2104 else if (alpha_config->src_pixel_alpha_en && !src_glb_alpha_en) in vop2_parse_alpha()
2121 alpha->src_color_ctrl.bits.glb_alpha = alpha_config->src_glb_alpha_value >> 8; in vop2_parse_alpha()
2128 alpha->dst_color_ctrl.bits.glb_alpha = alpha_config->dst_glb_alpha_value >> 8; in vop2_parse_alpha()
2138 if (alpha_config->dst_pixel_alpha_en && !dst_glb_alpha_en) in vop2_parse_alpha()
2163 struct vop2_alpha_config alpha_config; in vop2_setup_cluster_alpha() local
2179 alpha_config.src_premulti_en = premulti_en; in vop2_setup_cluster_alpha()
2180 alpha_config.dst_premulti_en = false; in vop2_setup_cluster_alpha()
2181 alpha_config.src_pixel_alpha_en = src_pixel_alpha_en; in vop2_setup_cluster_alpha()
2182 alpha_config.dst_pixel_alpha_en = true; /* alpha value need transfer to next mix */ in vop2_setup_cluster_alpha()
2183 alpha_config.src_glb_alpha_value = src_glb_alpha_val; in vop2_setup_cluster_alpha()
2184 alpha_config.dst_glb_alpha_value = dst_glb_alpha_val; in vop2_setup_cluster_alpha()
2185 vop2_parse_alpha(&alpha_config, &alpha); in vop2_setup_cluster_alpha()
2202 struct vop2_alpha_config alpha_config; in vop2_setup_alpha() local
2213 alpha_config.dst_pixel_alpha_en = true; /* alpha value need transfer to next mix */ in vop2_setup_alpha()
2245 alpha_config.src_premulti_en = premulti_en; in vop2_setup_alpha()
2250 alpha_config.dst_premulti_en = false; in vop2_setup_alpha()
2251 alpha_config.src_pixel_alpha_en = pixel_alpha_en; in vop2_setup_alpha()
2252 alpha_config.src_glb_alpha_value = plane->state->alpha; in vop2_setup_alpha()
2253 alpha_config.dst_glb_alpha_value = dst_global_alpha; in vop2_setup_alpha()
2256 alpha_config.dst_premulti_en = true; in vop2_setup_alpha()
2257 alpha_config.src_pixel_alpha_en = true; in vop2_setup_alpha()
2258 alpha_config.src_glb_alpha_value = DRM_BLEND_ALPHA_OPAQUE; in vop2_setup_alpha()
2259 alpha_config.dst_glb_alpha_value = DRM_BLEND_ALPHA_OPAQUE; in vop2_setup_alpha()
2262 alpha_config.dst_premulti_en = true; in vop2_setup_alpha()
2263 alpha_config.src_pixel_alpha_en = pixel_alpha_en; in vop2_setup_alpha()
2264 alpha_config.src_glb_alpha_value = plane->state->alpha; in vop2_setup_alpha()
2265 alpha_config.dst_glb_alpha_value = DRM_BLEND_ALPHA_OPAQUE; in vop2_setup_alpha()
2268 vop2_parse_alpha(&alpha_config, &alpha); in vop2_setup_alpha()
2284 alpha_config.src_premulti_en = gpremulti_en; in vop2_setup_alpha()
2285 alpha_config.dst_premulti_en = true; in vop2_setup_alpha()
2286 alpha_config.src_pixel_alpha_en = true; in vop2_setup_alpha()
2287 alpha_config.src_glb_alpha_value = DRM_BLEND_ALPHA_OPAQUE; in vop2_setup_alpha()
2288 alpha_config.dst_glb_alpha_value = DRM_BLEND_ALPHA_OPAQUE; in vop2_setup_alpha()
2289 vop2_parse_alpha(&alpha_config, &alpha); in vop2_setup_alpha()