aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/freedreno_util.c
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2015-09-13 19:50:45 -0400
committerIlia Mirkin <[email protected]>2015-09-16 15:42:54 -0400
commitee6b95c82c3dbfad07e75ecdfd993e60fec2ac4f (patch)
tree54d951f375f0ad3bbd3c24dd57f96357b3c69df1 /src/gallium/drivers/freedreno/freedreno_util.c
parentcfa980f49356eb2d94178f8cc9d67d01b4e3d695 (diff)
freedreno/a3xx: add support for dual-source blending
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_util.c')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_util.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_util.c b/src/gallium/drivers/freedreno/freedreno_util.c
index 2acce06d148..c8f2127c910 100644
--- a/src/gallium/drivers/freedreno/freedreno_util.c
+++ b/src/gallium/drivers/freedreno/freedreno_util.c
@@ -104,10 +104,13 @@ fd_blend_factor(unsigned factor)
case PIPE_BLENDFACTOR_INV_CONST_ALPHA:
return FACTOR_ONE_MINUS_CONSTANT_ALPHA;
case PIPE_BLENDFACTOR_INV_SRC1_COLOR:
+ return FACTOR_ONE_MINUS_SRC1_COLOR;
case PIPE_BLENDFACTOR_INV_SRC1_ALPHA:
+ return FACTOR_ONE_MINUS_SRC1_ALPHA;
case PIPE_BLENDFACTOR_SRC1_COLOR:
+ return FACTOR_SRC1_COLOR;
case PIPE_BLENDFACTOR_SRC1_ALPHA:
- /* I don't think these are supported */
+ return FACTOR_SRC1_ALPHA;
default:
DBG("invalid blend factor: %x", factor);
return 0;