Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5620>
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");