broadcom/vc5: Fix blendfactor zero handling.
authorEric Anholt <eric@anholt.net>
Thu, 5 Oct 2017 22:19:49 +0000 (15:19 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 10 Oct 2017 18:42:06 +0000 (11:42 -0700)
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

index dd055d49208d5a7a332be9d18e50bc83eb2640d0..9b82ff9071bd8d433fbd51e82d654c6c5ab344e0 100644 (file)
@@ -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: