mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
r600g/llvm: Fix texelFetchOffset-2D
This commit is contained in:
parent
32c9cbb38f
commit
9a95fb1605
1 changed files with 6 additions and 0 deletions
|
|
@ -460,6 +460,12 @@ static void llvm_emit_tex(
|
|||
for (c = 1; c < emit_data->arg_count; ++c)
|
||||
args[c] = emit_data->args[c];
|
||||
|
||||
if (emit_data->inst->Instruction.Opcode == TGSI_OPCODE_TXF) {
|
||||
args[1] = LLVMBuildShl(gallivm->builder, args[1], lp_build_const_int32(gallivm, 1), "");
|
||||
args[2] = LLVMBuildShl(gallivm->builder, args[2], lp_build_const_int32(gallivm, 1), "");
|
||||
args[3] = LLVMBuildShl(gallivm->builder, args[3], lp_build_const_int32(gallivm, 1), "");
|
||||
}
|
||||
|
||||
sampler_src = emit_data->inst->Instruction.NumSrcRegs-1;
|
||||
|
||||
args[c++] = lp_build_const_int32(gallivm,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue