diff options
author | Axel Davy <axel.davy@ens.fr> | 2016-04-03 10:52:22 +0200 |
---|---|---|
committer | Axel Davy <axel.davy@ens.fr> | 2016-05-18 23:37:14 +0200 |
commit | f297e7de0f3fc0bd4fec483d4bf778a9678992c7 (patch) | |
tree | 8b2594ae0de94f77438307fe943e9812ea76f93b /src/gallium/state_trackers/nine/nine_pipe.c | |
parent | edc5cdced56756bfda898a4ed5bd480cd07c2d7e (diff) | |
download | external_mesa3d-f297e7de0f3fc0bd4fec483d4bf778a9678992c7.zip external_mesa3d-f297e7de0f3fc0bd4fec483d4bf778a9678992c7.tar.gz external_mesa3d-f297e7de0f3fc0bd4fec483d4bf778a9678992c7.tar.bz2 |
st/nine: ATOC has effect only with ALPHATESTENABLE
ATOC extension does something only when alpha test is enabled.
Use a second bit to encode the difference with ATIATOC.
Signed-off-by: Axel Davy <axel.davy@ens.fr>
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 461b416..fc708c2 100644 --- a/src/gallium/state_trackers/nine/nine_pipe.c +++ b/src/gallium/state_trackers/nine/nine_pipe.c @@ -162,7 +162,7 @@ nine_convert_blend_state(struct pipe_blend_state *blend_state, const DWORD *rs) blend.dither = !!rs[D3DRS_DITHERENABLE]; /* blend.alpha_to_one = 0; */ - blend.alpha_to_coverage = !!rs[NINED3DRS_ALPHACOVERAGE]; + blend.alpha_to_coverage = rs[NINED3DRS_ALPHACOVERAGE] & 1; blend.rt[0].blend_enable = !!rs[D3DRS_ALPHABLENDENABLE]; if (blend.rt[0].blend_enable) { |