gallium: Dual source support in blend_factor_to_shader

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5620>
This commit is contained in:
Icecream95 2020-06-25 22:50:15 +12:00 committed by Marge Bot
parent bedd4b44de
commit 58c0e1d005

View File

@ -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");