/external/mesa3d/src/compiler/nir/ |
D | nir_lower_idiv.c | 107 q = nir_bcsel(bld, rt, nir_isub(bld, r, b), r); in convert_instr() 117 q = nir_bcsel(bld, r, b, q); in convert_instr() 123 q = nir_bcsel(bld, nir_ieq_imm(bld, q, 0), in convert_instr() 125 nir_bcsel(bld, r, nir_iadd(bld, q, denom), q)); in convert_instr() 157 quotient = nir_bcsel(bld, remainder_ge_den, in emit_udiv() 160 remainder = nir_bcsel(bld, remainder_ge_den, in emit_udiv() 166 return nir_bcsel(bld, remainder_ge_den, nir_isub(bld, remainder, denom), in emit_udiv() 169 return nir_bcsel(bld, remainder_ge_den, nir_iadd_imm(bld, quotient, 1), in emit_udiv() 180 lh_sign = nir_bcsel(bld, lh_sign, nir_imm_int(bld, -1), nir_imm_int(bld, 0)); in emit_idiv() 181 rh_sign = nir_bcsel(bld, rh_sign, nir_imm_int(bld, -1), nir_imm_int(bld, 0)); in emit_idiv() [all …]
|
D | nir_builtin_builder.h | 59 return nir_bcsel(b, nir_fneu(b, x, x), x, nir_bcsel(b, nir_fneu(b, y, y), y, res)); in nir_nan_check2() 77 return nir_bcsel(b, cond, res0, res1); in nir_iabs_diff() 86 return nir_bcsel(b, cond, res0, res1); in nir_uabs_diff() 175 return nir_nan_check2(b, x, y, nir_bcsel(b, cond, res, zero)); in nir_fdim() 205 return nir_bcsel(b, condy, y, nir_bcsel(b, condx, x, nir_fmax(b, x, y))); in nir_maxmag() 217 return nir_bcsel(b, condy, y, nir_bcsel(b, condx, x, nir_fmin(b, x, y))); in nir_minmag() 247 return nir_bcsel(b, nir_ieq_imm(b, s, 0), x, y); in nir_select() 269 return nir_bcsel(b, cond, in nir_ctz_u()
|
D | nir_builtin_builder.c | 81 nir_bcsel(b, in nir_nextafter() 87 nir_ssa_def *xp = nir_bcsel(b, condzero, one, nir_iadd(b, x, one)); in nir_nextafter() 91 nir_bcsel(b, nir_ixor(b, conddir, nir_flt(b, x, zero)), xp, xn); in nir_nextafter() 93 return nir_nan_check2(b, x, y, nir_bcsel(b, condeq, x, res)); in nir_nextafter() 110 nir_ssa_def *finfvec = nir_copysign(b, nir_bcsel(b, nir_feq(b, vec, finf), f1, f0), f1); in nir_normalize() 112 nir_ssa_def *temp = nir_bcsel(b, nir_feq(b, maxc, finf), finfvec, svec); in nir_normalize() 115 return nir_bcsel(b, nir_feq(b, maxc, f0), vec, res); in nir_normalize() 231 nir_ssa_def *s = nir_bcsel(b, flip, nir_fabs(b, x), y); in nir_atan2() 232 nir_ssa_def *t = nir_bcsel(b, flip, y, nir_fabs(b, x)); in nir_atan2() 254 nir_ssa_def *scale = nir_bcsel(b, nir_fge(b, nir_fabs(b, t), huge), in nir_atan2() [all …]
|
D | nir_lower_frexp.c | 96 nir_bcsel(b, is_not_zero, exponent_value, zero32)); in lower_frexp_sig() 103 nir_bcsel(b, is_not_zero, exponent_value, zero)); in lower_frexp_sig() 124 nir_bcsel(b, is_not_zero, exponent_bias, zero))); in lower_frexp_exp() 132 nir_bcsel(b, is_not_zero, exponent_bias, zero)); in lower_frexp_exp() 143 nir_bcsel(b, is_not_zero, exponent_bias, zero32)); in lower_frexp_exp()
|
D | nir_lower_int64.c | 117 return nir_pack_64_2x32_split(b, nir_bcsel(b, cond, x_lo, y_lo), in lower_bcsel64() 118 nir_bcsel(b, cond, x_hi, y_hi)); in lower_bcsel64() 203 return nir_bcsel(b, nir_ieq_imm(b, y, 0), x, in lower_ishl64() 204 nir_bcsel(b, nir_uge(b, y, nir_imm_int(b, 32)), in lower_ishl64() 247 return nir_bcsel(b, nir_ieq_imm(b, y, 0), x, in lower_ishr64() 248 nir_bcsel(b, nir_uge(b, y, nir_imm_int(b, 32)), in lower_ishr64() 290 return nir_bcsel(b, nir_ieq_imm(b, y, 0), x, in lower_ushr64() 291 nir_bcsel(b, nir_uge(b, y, nir_imm_int(b, 32)), in lower_ushr64() 340 return nir_bcsel(b, x_is_neg, nir_ineg(b, x), x); in lower_iabs64() 379 return nir_bcsel(b, lower_int64_compare(b, nir_op_ult, x, y), y, x); in lower_umax64() [all …]
|
D | nir_conversion_builder.h | 82 return nir_bcsel(b, cmp, nir_nextafter(b, lower_prec, inf), lower_prec); in nir_round_float_to_float() 93 return nir_bcsel(b, cmp, nir_nextafter(b, lower_prec, neg_inf), lower_prec); in nir_round_float_to_float() 96 return nir_bcsel(b, nir_flt(b, src, nir_imm_zero(b, 1, src->bit_size)), in nir_round_float_to_float() 144 return nir_bcsel(b, sign, nir_ineg(b, positive_rounded), in nir_round_int_to_float() 148 return nir_bcsel(b, sign, in nir_round_int_to_float() 153 return nir_bcsel(b, sign, in nir_round_int_to_float() 177 return nir_bcsel(b, nir_ieq(b, src, truncated), in nir_round_int_to_float() 359 res = nir_bcsel(b, low_cond, low, res); in nir_clamp_to_type_range() 361 res = nir_bcsel(b, high_cond, high, res); in nir_clamp_to_type_range()
|
D | nir_lower_double_ops.c | 101 res = nir_bcsel(b, nir_ior(b, nir_ige(b, nir_imm_int(b, 0), exp), in fix_inv_result() 107 res = nir_bcsel(b, nir_fneu(b, src, nir_imm_double(b, 0.0f)), in fix_inv_result() 301 src_flushed = nir_bcsel(b, in lower_sqrt_rsq() 307 res = nir_bcsel(b, nir_ior(b, nir_feq(b, src_flushed, nir_imm_double(b, 0.0)), in lower_sqrt_rsq() 342 nir_bcsel(b, in lower_trunc() 348 nir_bcsel(b, in lower_trunc() 359 nir_bcsel(b, in lower_trunc() 362 nir_bcsel(b, nir_ige(b, unbiased_exp, nir_imm_int(b, 53)), in lower_trunc() 380 return nir_bcsel(b, in lower_floor() 395 return nir_bcsel(b, in lower_ceil() [all …]
|
D | nir_lower_ubo_vec4.c | 152 result = nir_bcsel(b, in nir_lower_ubo_vec4_lower() 179 nir_bcsel(b, in nir_lower_ubo_vec4_lower()
|
D | nir_format_convert.h | 288 return nir_fsat(b, nir_bcsel(b, nir_flt(b, c, nir_imm_float(b, 0.0031308f)), in nir_format_linear_to_srgb() 301 return nir_fsat(b, nir_bcsel(b, nir_fge(b, nir_imm_float(b, 0.04045f), c), in nir_format_srgb_to_linear() 393 clamped = nir_bcsel(b, nir_ult(b, nir_imm_int(b, 0x7f800000), color), in nir_format_pack_r9g9b9e5()
|
D | nir_lower_tex.c | 559 Q = nir_bcsel(b, cond_z, in lower_gradient_cube_map() 561 nir_bcsel(b, cond_y, in lower_gradient_cube_map() 565 dQdx = nir_bcsel(b, cond_z, in lower_gradient_cube_map() 567 nir_bcsel(b, cond_y, in lower_gradient_cube_map() 571 dQdy = nir_bcsel(b, cond_z, in lower_gradient_cube_map() 573 nir_bcsel(b, cond_y, in lower_gradient_cube_map()
|
D | nir_opt_intrinsics.c | 76 nir_ssa_def *index = nir_bcsel(b, alu->src[0].src.ssa, index1, index2); in try_opt_bcsel_of_shuffle()
|
D | nir_lower_two_sided_color.c | 199 nir_ssa_def *color = nir_bcsel(b, face, front, back); in nir_lower_two_sided_color_block()
|
D | nir_opt_idiv_const.c | 80 return nir_bcsel(b, neg, nir_ineg(b, uq), uq); in build_idiv()
|
D | nir_lower_gs_intrinsics.c | 182 nir_bcsel(b, is_inc_prim, vtxcnt_per_primitive, nir_imm_int(b, 0)); in overwrite_incomplete_primitives()
|
D | nir_lower_alu.c | 198 hi = nir_bcsel(b, different_signs, in lower_alu_instr()
|
D | nir_lower_wpos_ytransform.c | 74 return nir_bcsel(b, nir_flt(b, src0, nir_imm_float(b, 0.0)), src1, src2); in nir_cmp()
|
/external/mesa3d/src/freedreno/vulkan/ |
D | tu_nir_lower_multiview.c | 60 nir_ssa_def *src = nir_bcsel(&b, cmp, orig_src, nir_imm_float(&b, 0.)); in lower_multiview_mask()
|
/external/mesa3d/src/intel/compiler/ |
D | brw_nir_tcs_workarounds.c | 105 inner = nir_bcsel(b, nir_fge(b, nir_imm_float(b, 1.0f), inner), in emit_quads_workaround()
|
/external/mesa3d/src/compiler/spirv/ |
D | vtn_glsl450.c | 237 return nir_bcsel(b, nir_flt(b, abs_x, half), result1, result0); in build_asin() 408 nir_bcsel(nb, nir_flt(nb, nir_fdot(nb, src[2], src[1]), in handle_glsl450_alu() 451 dest->def = nir_bcsel(nb, nir_flt(nb, k, zero), zero, result); in handle_glsl450_alu()
|
D | vtn_subgroup.c | 340 vtn_push_nir_ssa(b, w[2], nir_bcsel(nb, cond, current->def, next->def)); in vtn_handle_subgroup()
|
D | vtn_opencl.c | 743 return nir_bcsel(nb, nir_fge(nb, nir_fabs(nb, remainder), half), in handle_round() 790 outres[i] = nir_bcsel(&b->nb, sel, val0, val1); in handle_shuffle2()
|
/external/mesa3d/src/intel/vulkan/ |
D | anv_nir_lower_multiview.c | 124 shifted = nir_bcsel(b, nir_ilt(b, shift, nir_imm_int(b, 32)), in build_view_index()
|
/external/mesa3d/src/amd/vulkan/ |
D | radv_meta.c | 524 comp[0] = nir_bcsel(vs_b, c0cmp, in radv_meta_gen_rect_vertices_comp2() 528 comp[1] = nir_bcsel(vs_b, c1cmp, in radv_meta_gen_rect_vertices_comp2()
|
D | radv_query.c | 241 nir_ssa_def *result_size = nir_bcsel(&b, result_is_64bit, nir_imm_int(&b, 8), nir_imm_int(&b, 4)); in build_occlusion_query_shader() 368 nir_ssa_def *elem_size = nir_bcsel(&b, result_is_64bit, nir_imm_int(&b, 8), nir_imm_int(&b, 4)); in build_pipeline_statistics_query_shader() 623 nir_bcsel(&b, result_is_64bit, nir_imm_int(&b, 16), in build_tfb_query_shader() 768 nir_bcsel(&b, result_is_64bit, nir_imm_int(&b, 8), in build_timestamp_query_shader()
|
/external/mesa3d/src/gallium/auxiliary/nir/ |
D | tgsi_to_nir.c | 517 tgsi_frontface[0] = nir_bcsel(&c->build, in ttn_emulate_tgsi_front_face() 532 tgsi_frontface[0] = nir_bcsel(&c->build, in ttn_emulate_tgsi_front_face() 1042 nir_bcsel(b, in ttn_lit() 1097 ttn_move_dest(b, dest, nir_bcsel(b, in ttn_cmp() 1105 ttn_move_dest(b, dest, nir_bcsel(b, in ttn_ucmp()
|