Home
last modified time | relevance | path

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

/third_party/mesa3d/src/compiler/nir/
Dnir_builtin_builder.c87 x = nir_fmul(b, x, nir_imm_floatN_t(b, 1.0, x->bit_size)); in nir_nextafter()
115 nir_ssa_def *f0 = nir_imm_floatN_t(b, 0.0, vec->bit_size); in nir_normalize()
116 nir_ssa_def *f1 = nir_imm_floatN_t(b, 1.0, vec->bit_size); in nir_normalize()
117 nir_ssa_def *finf = nir_imm_floatN_t(b, INFINITY, vec->bit_size); in nir_normalize()
134 nir_ssa_def *f2 = nir_imm_floatN_t(b, 2.0, x->bit_size); in nir_smoothstep()
135 nir_ssa_def *f3 = nir_imm_floatN_t(b, 3.0, x->bit_size); in nir_smoothstep()
181 nir_ssa_def *one = nir_imm_floatN_t(b, 1.0f, bit_size); in nir_atan()
256 nir_ssa_def *zero = nir_imm_floatN_t(b, 0, bit_size); in nir_atan2()
257 nir_ssa_def *one = nir_imm_floatN_t(b, 1, bit_size); in nir_atan2()
288 nir_ssa_def *huge = nir_imm_floatN_t(b, huge_val, bit_size); in nir_atan2()
[all …]
Dnir_conversion_builder.h81 nir_ssa_def *inf = nir_imm_floatN_t(b, INFINITY, dest_bit_size); in nir_round_float_to_float()
92 nir_ssa_def *neg_inf = nir_imm_floatN_t(b, -INFINITY, dest_bit_size); in nir_round_float_to_float()
263 *low = nir_imm_floatN_t(b, ilow, src_bit_size); in nir_get_clamp_limits()
264 *high = nir_imm_floatN_t(b, ihigh, src_bit_size); in nir_get_clamp_limits()
276 *low = nir_imm_floatN_t(b, 0.0f, src_bit_size); in nir_get_clamp_limits()
277 *high = nir_imm_floatN_t(b, uhigh, src_bit_size); in nir_get_clamp_limits()
324 *low = nir_imm_floatN_t(b, flow, src_bit_size); in nir_get_clamp_limits()
325 *high = nir_imm_floatN_t(b, fhigh, src_bit_size); in nir_get_clamp_limits()
Dnir_lower_blend.c87 nir_ssa_def *one = nir_imm_floatN_t(b, 1.0, src->bit_size); in nir_alpha_saturate()
104 return nir_imm_floatN_t(b, 0.0, src->bit_size); in nir_blend_factor_value()
268 return nir_fclamp(b, x, nir_imm_floatN_t(b, -1.0, x->bit_size), in nir_fsat_signed()
269 nir_imm_floatN_t(b, +1.0, x->bit_size)); in nir_fsat_signed()
319 nir_ssa_def *zero = nir_imm_floatN_t(b, 0.0, dst->bit_size); in nir_blend()
320 nir_ssa_def *one = nir_imm_floatN_t(b, 1.0, dst->bit_size); in nir_blend()
Dnir_lower_frexp.c36 nir_ssa_def *zero = nir_imm_floatN_t(b, 0, x->bit_size); in lower_frexp_sig()
123 nir_ssa_def *zero = nir_imm_floatN_t(b, 0, x->bit_size); in lower_frexp_exp()
Dnir_builder.h227 nir_imm_floatN_t(nir_builder *build, double x, unsigned bit_size) in nir_imm_floatN_t() function
236 return nir_imm_floatN_t(build, x, 16); in nir_imm_float16()
242 return nir_imm_floatN_t(build, x, 32); in nir_imm_float()
248 return nir_imm_floatN_t(build, x, 64); in nir_imm_double()
719 return nir_fadd(build, x, nir_imm_floatN_t(build, y, x->bit_size)); in nir_fadd_imm()
725 return nir_fmul(build, x, nir_imm_floatN_t(build, y, x->bit_size)); in nir_fmul_imm()
850 return nir_ffma(build, src0, nir_imm_floatN_t(build, src1, src0->bit_size), in nir_ffma_imm12()
851 nir_imm_floatN_t(build, src2, src0->bit_size)); in nir_ffma_imm12()
857 return nir_ffma(build, src0, nir_imm_floatN_t(build, src1, src0->bit_size), src2); in nir_ffma_imm1()
863 return nir_ffma(build, src0, src1, nir_imm_floatN_t(build, src2, src0->bit_size)); in nir_ffma_imm2()
Dnir_builtin_builder.h152 nir_ssa_def *zero = nir_imm_floatN_t(b, 0.0, x->bit_size); in nir_fdim()
203 nir_ssa_def *nan = nir_imm_floatN_t(b, NAN, x->bit_size); in nir_nan()
Dnir_lower_texcoord_replace.c95 nir_ssa_def *one = nir_imm_floatN_t(&b, 1.0, new_coord->bit_size); in nir_lower_texcoord_replace_impl()
Dnir_lower_flrp.c87 nir_fadd(bld, nir_imm_floatN_t(bld, 1.0f, c->bit_size), neg_c); in replace_with_single_ffma()
120 nir_fadd(bld, nir_imm_floatN_t(bld, 1.0f, c->bit_size), neg_c); in replace_with_strict()
Dnir_opt_comparison_pre.c162 nir_imm_floatN_t(bld, 0.0, orig_add->dest.dest.ssa.bit_size); in rewrite_compare_instruction()
Dnir_lower_int64.c695 nir_imm_floatN_t(b, -1, dest_bit_size), in lower_2f()
696 nir_imm_floatN_t(b, 1, dest_bit_size)); in lower_2f()
772 nir_ssa_def *div = nir_imm_floatN_t(b, 1ULL << 32, x->bit_size); in lower_f2()
779 res = nir_bcsel(b, nir_flt(b, x_sign, nir_imm_floatN_t(b, 0, x->bit_size)), in lower_f2()
Dnir_lower_tex.c383 nir_imm_floatN_t(b, offset_vals[0], a->bit_size), in convert_yuv_to_rgb()
384 nir_imm_floatN_t(b, offset_vals[1], a->bit_size), in convert_yuv_to_rgb()
385 nir_imm_floatN_t(b, offset_vals[2], a->bit_size), in convert_yuv_to_rgb()
Dnir_search.c545 cval = nir_imm_floatN_t(build, c->data.d, bit_size); in construct_value()
/third_party/mesa3d/src/compiler/spirv/
Dvtn_glsl450.c172 nir_ssa_def *one = nir_imm_floatN_t(b, 1.0f, x->bit_size); in build_asin()
173 nir_ssa_def *half = nir_imm_floatN_t(b, 0.5f, x->bit_size); in build_asin()
184 nir_a_minus_bc(b, nir_imm_floatN_t(b, M_PI_2f, x->bit_size), in build_asin()
272 #define NIR_IMM_FP(n, v) (nir_imm_floatN_t(n, v, src[0]->bit_size))
346 nir_ssa_def *inf = nir_imm_floatN_t(&b->nb, INFINITY, src[0]->bit_size); in handle_glsl450_alu()
371 nir_ssa_def *inf = nir_imm_floatN_t(&b->nb, INFINITY, src[0]->bit_size); in handle_glsl450_alu()
407 dest->def = nir_fsub(nb, nir_imm_floatN_t(nb, 1.0f, cmp->bit_size), cmp); in handle_glsl450_alu()
532 nir_imm_floatN_t(nb, -clamped_x, bit_size), in handle_glsl450_alu()
533 nir_imm_floatN_t(nb, clamped_x, bit_size)); in handle_glsl450_alu()
545 nir_imm_floatN_t(nb, 0, bit_size), in handle_glsl450_alu()
[all …]
Dvtn_opencl.c846 nir_ssa_def *half = nir_imm_floatN_t(nb, 0.5, src->bit_size); in handle_round()
Dvtn_alu.c741 nir_ssa_def *inf = nir_imm_floatN_t(&b->nb, INFINITY, src[0]->bit_size); in vtn_handle_alu()
/third_party/mesa3d/src/gallium/drivers/d3d12/
Dd3d12_lower_image_casts.c174 nir_imm_floatN_t(b, i == 3 ? 1.0f : 0.0f, to_desc->channel[0].size) : in convert_value()
/third_party/mesa3d/src/freedreno/ir3/
Dir3_nir.c299 ai = nir_fadd(b, ai, nir_imm_floatN_t(b, 0.5, src->bit_size)); in ir3_nir_lower_array_sampler_cb()
/third_party/mesa3d/src/microsoft/vulkan/
Ddzn_nir.c688 res = nir_fmul(&b, res, nir_imm_floatN_t(&b, 1.0f / nsamples, type_sz)); in dzn_nir_blit_fs()
/third_party/mesa3d/src/panfrost/lib/
Dpan_blitter.c557 nir_imm_floatN_t(&b, 1.0f / nsamples, type_sz)); in pan_blitter_get_blit_shader()
/third_party/mesa3d/src/amd/vulkan/
Dradv_pipeline.c4244 channels[i] = is_float ? nir_imm_floatN_t(&b, 1.0f, intrin->dest.ssa.bit_size) in radv_lower_vs_input()