[Mesa-dev] [PATCH 3/4] r600g/llvm: Undef z and w component of 2D TXP inst
Vincent Lejeune
vljn at ovi.com
Mon Sep 30 14:46:28 PDT 2013
---
src/gallium/drivers/r600/r600_llvm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/r600/r600_llvm.c b/src/gallium/drivers/r600/r600_llvm.c
index 54291a1..c700f26 100644
--- a/src/gallium/drivers/r600/r600_llvm.c
+++ b/src/gallium/drivers/r600/r600_llvm.c
@@ -431,7 +431,7 @@ 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), ""),
--
1.8.3.1
More information about the mesa-dev
mailing list