diff options
author | Eric Anholt <[email protected]> | 2012-04-25 13:58:07 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-05-23 10:46:15 -0700 |
commit | 29362875f2613ad87abe7725ce3c56c36d16cf9b (patch) | |
tree | b244e2081aaa2067cb1f99f0330d9e23137edf5c /src/mesa/drivers/dri/i965/brw_util.c | |
parent | 175ad8050e3337f7065306017ea4eb8eae599f6d (diff) |
i965/gen6+: Add support for GL_ARB_blend_func_extended.
v2: Add support for gen6, and don't turn it on if blending is
disabled. (fixes GPU hang), and note it in docs/GL3.txt
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_util.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_util.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_util.c b/src/mesa/drivers/dri/i965/brw_util.c index d28d9abcb33..5441c5e5bc5 100644 --- a/src/mesa/drivers/dri/i965/brw_util.c +++ b/src/mesa/drivers/dri/i965/brw_util.c @@ -89,6 +89,16 @@ GLuint brw_translate_blend_factor( GLenum factor ) return BRW_BLENDFACTOR_CONST_ALPHA; case GL_ONE_MINUS_CONSTANT_ALPHA: return BRW_BLENDFACTOR_INV_CONST_ALPHA; + + case GL_SRC1_COLOR: + return BRW_BLENDFACTOR_SRC1_COLOR; + case GL_SRC1_ALPHA: + return BRW_BLENDFACTOR_SRC1_ALPHA; + case GL_ONE_MINUS_SRC1_COLOR: + return BRW_BLENDFACTOR_INV_SRC1_COLOR; + case GL_ONE_MINUS_SRC1_ALPHA: + return BRW_BLENDFACTOR_INV_SRC1_ALPHA; + default: assert(0); return BRW_BLENDFACTOR_ZERO; |