mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-23 23:41:13 +00:00
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:
parent
bedd4b44de
commit
58c0e1d005
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user