Lines Matching refs:blend_factor
5207 static inline bool is_dst_blend(int blend_factor) in is_dst_blend() argument
5209 return (blend_factor == PIPE_BLENDFACTOR_DST_ALPHA || in is_dst_blend()
5210 blend_factor == PIPE_BLENDFACTOR_INV_DST_ALPHA); in is_dst_blend()
5213 static inline int conv_a8_blend(int blend_factor) in conv_a8_blend() argument
5215 if (blend_factor == PIPE_BLENDFACTOR_DST_ALPHA) in conv_a8_blend()
5217 if (blend_factor == PIPE_BLENDFACTOR_INV_DST_ALPHA) in conv_a8_blend()
5219 return blend_factor; in conv_a8_blend()
5222 static inline int conv_dst_blend(int blend_factor) in conv_dst_blend() argument
5224 if (blend_factor == PIPE_BLENDFACTOR_DST_ALPHA) in conv_dst_blend()
5226 if (blend_factor == PIPE_BLENDFACTOR_INV_DST_ALPHA) in conv_dst_blend()
5228 return blend_factor; in conv_dst_blend()
5231 static inline bool is_const_blend(int blend_factor) in is_const_blend() argument
5233 return (blend_factor == PIPE_BLENDFACTOR_CONST_COLOR || in is_const_blend()
5234 blend_factor == PIPE_BLENDFACTOR_CONST_ALPHA || in is_const_blend()
5235 blend_factor == PIPE_BLENDFACTOR_INV_CONST_COLOR || in is_const_blend()
5236 blend_factor == PIPE_BLENDFACTOR_INV_CONST_ALPHA); in is_const_blend()