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/gen6_wm_state.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/gen6_wm_state.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/gen6_wm_state.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/gen6_wm_state.c b/src/mesa/drivers/dri/i965/gen6_wm_state.c index 28b3c2989c3..cba2a5741ff 100644 --- a/src/mesa/drivers/dri/i965/gen6_wm_state.c +++ b/src/mesa/drivers/dri/i965/gen6_wm_state.c @@ -162,6 +162,13 @@ upload_wm_state(struct brw_context *brw) dw5 |= GEN6_WM_16_DISPATCH_ENABLE; } + /* CACHE_NEW_WM_PROG | _NEW_COLOR */ + if (brw->wm.prog_data->dual_src_blend && + (ctx->Color.BlendEnabled & 1) && + ctx->Color.Blend[0]._UsesDualSrc) { + dw5 |= GEN6_WM_DUAL_SOURCE_BLEND_ENABLE; + } + /* _NEW_LINE */ if (ctx->Line.StippleFlag) dw5 |= GEN6_WM_LINE_STIPPLE_ENABLE; |