diff options
author | Marek Olšák <[email protected]> | 2012-07-22 06:36:58 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-08-15 19:20:57 +0200 |
commit | 6517225078a6a56c9fb3c1ea9f310992e6400b77 (patch) | |
tree | dbdb13f852802d6df5667a170af6d60ba96033dc /src/gallium/drivers/r600/r600_state.c | |
parent | 26cb887ea213be2445e0fd64364d9264ed4fbfd2 (diff) |
r600g: implement alpha-to-coverage
Diffstat (limited to 'src/gallium/drivers/r600/r600_state.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_state.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gallium/drivers/r600/r600_state.c b/src/gallium/drivers/r600/r600_state.c index 831630a83b1..ce6b12f4383 100644 --- a/src/gallium/drivers/r600/r600_state.c +++ b/src/gallium/drivers/r600/r600_state.c @@ -754,6 +754,13 @@ static void *r600_create_blend_state(struct pipe_context *ctx, r600_pipe_state_add_reg(rstate, R_028804_CB_BLEND_CONTROL, bc); } + r600_pipe_state_add_reg(rstate, R_028D44_DB_ALPHA_TO_MASK, + S_028D44_ALPHA_TO_MASK_ENABLE(state->alpha_to_coverage) | + S_028D44_ALPHA_TO_MASK_OFFSET0(2) | + S_028D44_ALPHA_TO_MASK_OFFSET1(2) | + S_028D44_ALPHA_TO_MASK_OFFSET2(2) | + S_028D44_ALPHA_TO_MASK_OFFSET3(2)); + blend->alpha_to_one = state->alpha_to_one; return rstate; } @@ -2120,8 +2127,6 @@ void r600_init_atom_start_cs(struct r600_context *rctx) r600_store_value(cb, 0); /* R_028D2C_DB_SRESULTS_COMPARE_STATE1 */ r600_store_value(cb, 0); /* R_028D30_DB_PRELOAD_CONTROL */ - r600_store_context_reg(cb, R_028D44_DB_ALPHA_TO_MASK, 0xAA00); - r600_store_context_reg(cb, R_028820_PA_CL_NANINF_CNTL, 0); r600_store_context_reg(cb, R_028A48_PA_SC_MPASS_PS_CNTL, 0); |