samp = 2;
break;
case TGSI_OPCODE_TXL:
+ case TGSI_OPCODE_TEX_LZ:
op = nir_texop_txl;
num_srcs = 2;
break;
src_number++;
}
- if (tgsi_inst->Instruction.Opcode == TGSI_OPCODE_TXL) {
- instr->src[src_number].src = nir_src_for_ssa(ttn_channel(b, src[0], W));
+ if (tgsi_inst->Instruction.Opcode == TGSI_OPCODE_TXL ||
+ tgsi_inst->Instruction.Opcode == TGSI_OPCODE_TEX_LZ) {
+ if (tgsi_inst->Instruction.Opcode == TGSI_OPCODE_TEX_LZ)
+ instr->src[src_number].src = nir_src_for_ssa(nir_imm_int(b, 0));
+ else
+ instr->src[src_number].src = nir_src_for_ssa(ttn_channel(b, src[0], W));
instr->src[src_number].src_type = nir_tex_src_lod;
src_number++;
}
[TGSI_OPCODE_SLT] = nir_op_slt,
[TGSI_OPCODE_SGE] = nir_op_sge,
[TGSI_OPCODE_MAD] = nir_op_ffma,
+ [TGSI_OPCODE_TEX_LZ] = 0,
[TGSI_OPCODE_LRP] = 0,
[TGSI_OPCODE_SQRT] = nir_op_fsqrt,
[TGSI_OPCODE_FRC] = nir_op_ffract,
break;
case TGSI_OPCODE_TEX:
+ case TGSI_OPCODE_TEX_LZ:
case TGSI_OPCODE_TXP:
case TGSI_OPCODE_TXL:
case TGSI_OPCODE_TXB: