mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 13:00:09 +01:00
r600g/llvm: Undef z and w component of 2D TXP inst
This commit is contained in:
parent
9f183eb7de
commit
8edbd7609b
1 changed files with 2 additions and 1 deletions
|
|
@ -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), ""),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue