Mesa (master): r600g/llvm: Undef z and w component of 2D TXP inst

Vincent Lejeune vlj at kemper.freedesktop.org
Wed Oct 2 15:38:01 UTC 2013


Module: Mesa
Branch: master
Commit: 8edbd7609b161a61d47c6caa1ed7b1756f80f07a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8edbd7609b161a61d47c6caa1ed7b1756f80f07a

Author: Vincent Lejeune <vljn at ovi.com>
Date:   Fri Sep  6 00:26:16 2013 +0200

r600g/llvm: Undef z and w component of 2D TXP inst

---

 src/gallium/drivers/r600/r600_llvm.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_llvm.c b/src/gallium/drivers/r600/r600_llvm.c
index 3fe6a81..b1b88b8 100644
--- a/src/gallium/drivers/r600/r600_llvm.c
+++ b/src/gallium/drivers/r600/r600_llvm.c
@@ -433,7 +433,8 @@ static void llvm_emit_tex(
 		}
 	}
 
-	if (emit_data->inst->Instruction.Opcode == TGSI_OPCODE_TEX) {
+	if (emit_data->inst->Instruction.Opcode == TGSI_OPCODE_TEX ||
+		emit_data->inst->Instruction.Opcode == TGSI_OPCODE_TXP) {
 		LLVMValueRef Vector[4] = {
 			LLVMBuildExtractElement(gallivm->builder, emit_data->args[0],
 				lp_build_const_int32(gallivm, 0), ""),




More information about the mesa-commit mailing list