Home
last modified time | relevance | path

Searched refs:orig_cmp (Results 1 – 1 of 1) sorted by relevance

/third_party/mesa3d/src/compiler/nir/
Dnir_opt_comparison_pre.c137 rewrite_compare_instruction(nir_builder *bld, nir_alu_instr *orig_cmp, in rewrite_compare_instruction() argument
140 bld->cursor = nir_before_instr(&orig_cmp->instr); in rewrite_compare_instruction()
154 nir_ssa_def *const a = nir_ssa_for_alu_src(bld, orig_cmp, 0); in rewrite_compare_instruction()
155 nir_ssa_def *const b = nir_ssa_for_alu_src(bld, orig_cmp, 1); in rewrite_compare_instruction()
165 ? nir_build_alu(bld, orig_cmp->op, zero, fadd, NULL, NULL) in rewrite_compare_instruction()
166 : nir_build_alu(bld, orig_cmp->op, fadd, zero, NULL, NULL); in rewrite_compare_instruction()
183 mov_cmp->dest.write_mask = orig_cmp->dest.write_mask; in rewrite_compare_instruction()
185 orig_cmp->dest.dest.ssa.num_components, in rewrite_compare_instruction()
186 orig_cmp->dest.dest.ssa.bit_size, NULL); in rewrite_compare_instruction()
191 nir_ssa_def_rewrite_uses(&orig_cmp->dest.dest.ssa, in rewrite_compare_instruction()
[all …]