From 5208d2889e36831e27b7b943b6b1a9dcf4368009 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 5 Oct 2017 15:19:49 -0700 Subject: 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. --- src/gallium/drivers/vc5/vc5_emit.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/drivers/vc5') 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: -- cgit v1.2.3