Lines Matching refs:alpha
91 u32 alpha;
172 dtg->alpha = 255;
175 ((dtg->alpha << DEFAULT_FG_ALPHA_POS) & DEFAULT_FG_ALPHA_MASK);
264 bool dcss_dtg_global_alpha_changed(struct dcss_dtg *dtg, int ch_num, int alpha)
269 return alpha != dtg->alpha;
273 const struct drm_format_info *format, int alpha)
275 /* we care about alpha only when channel 0 is concerned */
280 * Use global alpha if pixel format does not have alpha channel or the
281 * user explicitly chose to use global alpha (i.e. alpha is not OPAQUE).
283 if (!format->has_alpha || alpha != 255)
284 dtg->alpha_cfg = (alpha << DEFAULT_FG_ALPHA_POS) & DEFAULT_FG_ALPHA_MASK;
285 else /* use per-pixel alpha otherwise */
288 dtg->alpha = alpha;