4 #include "pipe/p_state.h"
7 * When faking RGBX render target formats with RGBA ones, the blender is still
8 * supposed to treat the destination's alpha channel as 1 instead of the
9 * garbage that's there. Return a blend factor that will take that into
13 util_blend_dst_alpha_to_one(int factor
)
16 case PIPE_BLENDFACTOR_DST_ALPHA
:
17 return PIPE_BLENDFACTOR_ONE
;
18 case PIPE_BLENDFACTOR_INV_DST_ALPHA
:
19 return PIPE_BLENDFACTOR_ZERO
;
25 #endif /* U_BLEND_H */