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

This commit is contained in:
Vincent Lejeune 2013-09-06 00:26:16 +02:00
parent 9f183eb7de
commit 8edbd7609b

View file

@ -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), ""),