Mesa (master): gallium: Dual source support in blend_factor_to_shader
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jul 15 01:54:45 UTC 2020
Module: Mesa
Branch: master
Commit: 58c0e1d00564f46a8264b2ce3275920890dd8b14
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=58c0e1d00564f46a8264b2ce3275920890dd8b14
Author: Icecream95 <ixn at keemail.me>
Date: Thu Jun 25 22:50:15 2020 +1200
gallium: Dual source support in blend_factor_to_shader
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5620>
---
src/gallium/auxiliary/util/u_blend.h | 8 ++++----
1 file 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");
More information about the mesa-commit
mailing list