summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc5/vc5_emit.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2017-10-05 15:19:49 -0700
committerEric Anholt <[email protected]>2017-10-10 11:42:06 -0700
commit5208d2889e36831e27b7b943b6b1a9dcf4368009 (patch)
tree5f49116a7eaa61c7d3ff5639906e4f00615e4249 /src/gallium/drivers/vc5/vc5_emit.c
parentffdba7fd4c47ba455eb7bb86b24275d2c0266737 (diff)
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.
Diffstat (limited to 'src/gallium/drivers/vc5/vc5_emit.c')
-rw-r--r--src/gallium/drivers/vc5/vc5_emit.c1
1 files changed, 1 insertions, 0 deletions
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: