From: Eric Anholt Date: Thu, 5 Oct 2017 22:19:49 +0000 (-0700) Subject: broadcom/vc5: Fix blendfactor zero handling. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5208d2889e36831e27b7b943b6b1a9dcf4368009;p=mesa.git broadcom/vc5: Fix blendfactor zero handling. I cut the line out to move it up to the top, when putting "0" in the switch made the compiler complain that that wasn't a valid enum. --- diff --git a/src/gallium/drivers/vc5/vc5_emit.c b/src/gallium/drivers/vc5/vc5_emit.c index dd055d49208..9b82ff9071b 100644 --- a/src/gallium/drivers/vc5/vc5_emit.c +++ b/src/gallium/drivers/vc5/vc5_emit.c @@ -36,6 +36,7 @@ vc5_factor(enum pipe_blendfactor factor) switch (factor) { case PIPE_BLENDFACTOR_ZERO: + return V3D_BLEND_FACTOR_ZERO; case PIPE_BLENDFACTOR_ONE: return V3D_BLEND_FACTOR_ONE; case PIPE_BLENDFACTOR_SRC_COLOR: