diff options
author | Axel Davy <[email protected]> | 2015-01-14 12:33:21 +0100 |
---|---|---|
committer | Axel Davy <[email protected]> | 2015-02-06 00:07:19 +0100 |
commit | 0a4aaf1d411360c2a557fb016ffcb41f2701b9a2 (patch) | |
tree | 2167058c8079475a18db08dfb6a42e0e6848ade4 /src/gallium/state_trackers/nine/nine_pipe.c | |
parent | bf0adf248f3562e6fb205b31d14f650ab0a14c8e (diff) |
st/nine: Implement AMD alpha to coverage
This D3D hack is supposed to be supported
by all AMD SM2+ cards. Apps use it without
checking if they are on AMD.
Reviewed-by: Tiziano Bacocco <[email protected]>
Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/nine_pipe.c')
-rw-r--r-- | src/gallium/state_trackers/nine/nine_pipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/nine/nine_pipe.c b/src/gallium/state_trackers/nine/nine_pipe.c index 8543b27b838..0da0b20263d 100644 --- a/src/gallium/state_trackers/nine/nine_pipe.c +++ b/src/gallium/state_trackers/nine/nine_pipe.c @@ -146,7 +146,7 @@ nine_convert_blend_state(struct cso_context *ctx, const DWORD *rs) blend.dither = !!rs[D3DRS_DITHERENABLE]; /* blend.alpha_to_one = 0; */ - /* blend.alpha_to_coverage = 0; */ /* XXX */ + blend.alpha_to_coverage = !!rs[NINED3DRS_ALPHACOVERAGE]; blend.rt[0].blend_enable = !!rs[D3DRS_ALPHABLENDENABLE]; if (blend.rt[0].blend_enable) { |