aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorIcecream95 <[email protected]>2020-06-25 22:50:15 +1200
committerMarge Bot <[email protected]>2020-07-15 01:30:00 +0000
commit58c0e1d00564f46a8264b2ce3275920890dd8b14 (patch)
tree82858f07b9dd06815f4fc7d722128c80641654d5 /src/gallium
parentbedd4b44de3a5c4a06899a86eb8094e8877338d6 (diff)
gallium: Dual source support in blend_factor_to_shader
Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5620>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/util/u_blend.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/util/u_blend.h b/src/gallium/auxiliary/util/u_blend.h
index ed3f7589345..d5f9050bc32 100644
--- a/src/gallium/auxiliary/util/u_blend.h
+++ b/src/gallium/auxiliary/util/u_blend.h
@@ -82,12 +82,12 @@ util_blend_factor_to_shader(enum pipe_blendfactor factor)
return BLEND_FACTOR_CONSTANT_ALPHA;
case PIPE_BLENDFACTOR_SRC1_COLOR:
- case PIPE_BLENDFACTOR_SRC1_ALPHA:
case PIPE_BLENDFACTOR_INV_SRC1_COLOR:
+ return BLEND_FACTOR_SRC1_COLOR;
+
case PIPE_BLENDFACTOR_INV_SRC1_ALPHA:
- /* unimplemented */
- assert(0);
- return BLEND_FACTOR_ZERO;
+ case PIPE_BLENDFACTOR_SRC1_ALPHA:
+ return BLEND_FACTOR_SRC1_ALPHA;
default:
unreachable("Invalid factor");