diff options
author | Vincent Lejeune <[email protected]> | 2013-02-13 18:49:30 +0100 |
---|---|---|
committer | Vincent Lejeune <[email protected]> | 2013-02-18 15:08:50 +0100 |
commit | 90e6f47ac8c8fdbfd097ef099895cd2ae005eb55 (patch) | |
tree | 3b02b20f793fa8011e9589bcf992d61eec81584a /src/gallium/drivers/r600/r600_llvm.c | |
parent | ef8fde6acbc575487388389b3af5eab18eae4537 (diff) |
r600g/llvm: Fix alpha_to_one piglit tests
Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
Diffstat (limited to 'src/gallium/drivers/r600/r600_llvm.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_llvm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_llvm.c b/src/gallium/drivers/r600/r600_llvm.c index 7a416882cbc..59047e7779b 100644 --- a/src/gallium/drivers/r600/r600_llvm.c +++ b/src/gallium/drivers/r600/r600_llvm.c @@ -234,6 +234,8 @@ static void llvm_emit_epilogue(struct lp_build_tgsi_context * bld_base) elements[chan] = LLVMBuildLoad(base->gallivm->builder, ctx->soa.outputs[i][chan], ""); } + if (ctx->alpha_to_one && ctx->type == TGSI_PROCESSOR_FRAGMENT && ctx->r600_outputs[i].name == TGSI_SEMANTIC_COLOR) + elements[3] = lp_build_const_float(base->gallivm, 1.0f); LLVMValueRef output = lp_build_gather_values(base->gallivm, elements, 4); if (ctx->type == TGSI_PROCESSOR_VERTEX) { |