diff --git a/src/gallium/auxiliary/util/u_blend.h b/src/gallium/auxiliary/util/u_blend.h index 7fccdb26d31..e9308b57fc4 100644 --- a/src/gallium/auxiliary/util/u_blend.h +++ b/src/gallium/auxiliary/util/u_blend.h @@ -136,8 +136,8 @@ static inline bool util_blend_uses_dest(struct pipe_rt_blend_state rt) { return rt.blend_enable && - (util_blend_factor_uses_dest(rt.rgb_src_factor, false) || - util_blend_factor_uses_dest(rt.alpha_src_factor, true) || + (util_blend_factor_uses_dest((enum pipe_blendfactor)rt.rgb_src_factor, false) || + util_blend_factor_uses_dest((enum pipe_blendfactor)rt.alpha_src_factor, true) || rt.rgb_dst_factor != PIPE_BLENDFACTOR_ZERO || rt.alpha_dst_factor != PIPE_BLENDFACTOR_ZERO); }