Home
last modified time | relevance | path

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

/third_party/mesa3d/src/gallium/drivers/i915/
Di915_nir.c57 x = nir_fmul_imm(b, x, M_1_PI / 2.0); in i915_sincos_lower()
63 x = nir_fadd_imm(b, nir_fmul_imm(b, x, 2.0), -1.0); in i915_sincos_lower()
69 nir_fadd(b, nir_fmul_imm(b, x, 4.0), nir_fmul_imm(b, x_absx, -4.0)); in i915_sincos_lower()
73 return nir_fadd(b, nir_fmul_imm(b, nir_fsub(b, y_absy, y), 0.225), y); in i915_sincos_lower()
/third_party/mesa3d/src/compiler/nir/
Dnir_builtin_builder.c208 nir_fmul_imm(b, x, 0.9999793128310355f), in nir_atan()
209 nir_fmul_imm(b, x_3, -0.3326756418091246f), in nir_atan()
210 nir_fmul_imm(b, x_5, 0.1938924977115610f), in nir_atan()
211 nir_fmul_imm(b, x_7, -0.1173503194786851f), in nir_atan()
212 nir_fmul_imm(b, x_9, 0.0536813784310406f), in nir_atan()
213 nir_fmul_imm(b, x_11, -0.0121323213173444f), in nir_atan()
Dnir_builtin_builder.h92 return nir_fexp2(b, nir_fmul_imm(b, x, M_LOG2E)); in nir_fexp()
98 return nir_fmul_imm(b, nir_flog2(b, x), 1.0 / M_LOG2E); in nir_flog()
143 return nir_fmul_imm(b, val, 180.0 / M_PI); in nir_degrees()
216 return nir_fmul_imm(b, val, M_PI / 180.0); in nir_radians()
Dnir_lower_clip_halfz.c47 nir_fmul_imm(b, in lower_pos_write()
Dnir_lower_idiv.c127 rcp = nir_f2u32(bld, nir_fmul_imm(bld, rcp, 4294966784.0)); in emit_udiv()
Dnir_builder.h904 nir_fmul_imm(nir_builder *build, nir_ssa_def *x, double y) in nir_fmul_imm() function
984 return nir_fadd_imm(build, nir_fmul_imm(build, src0, src1), src2); in nir_ffma_imm12()
Dnir_lower_tex.c312 return nir_fmul_imm(b, &plane_tex->dest.ssa, in sample_plane()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_atifs_to_nir.c287 dst = nir_fmul_imm(t->b, dst, 2.0f); in emit_dstmod()
290 dst = nir_fmul_imm(t->b, dst, 4.0f); in emit_dstmod()
293 dst = nir_fmul_imm(t->b, dst, 8.0f); in emit_dstmod()
296 dst = nir_fmul_imm(t->b, dst, 0.5f); in emit_dstmod()
299 dst = nir_fmul_imm(t->b, dst, 0.25f); in emit_dstmod()
302 dst = nir_fmul_imm(t->b, dst, 0.125f); in emit_dstmod()
Dst_cb_drawpixels.c236 ds_comp[0] = nir_fsat(&b, nir_fmul_imm(&b, nir_u2f32(&b, ds[3]), 1.0/255.0)); in make_drawpix_zs_to_color_program_nir()
237 ds_comp[1] = nir_fsat(&b, nir_fmul_imm(&b, nir_u2f32(&b, ds[2]), 1.0/255.0)); in make_drawpix_zs_to_color_program_nir()
238 ds_comp[2] = nir_fsat(&b, nir_fmul_imm(&b, nir_u2f32(&b, ds[1]), 1.0/255.0)); in make_drawpix_zs_to_color_program_nir()
239 ds_comp[3] = nir_fsat(&b, nir_fmul_imm(&b, nir_u2f32(&b, ds[0]), 1.0/255.0)); in make_drawpix_zs_to_color_program_nir()
/third_party/mesa3d/src/panfrost/util/
Dpan_lower_sample_position.c55 nir_ssa_def *decoded = nir_fmul_imm(b, nir_i2f16(b, raw), 1.0 / 256.0); in pan_lower_sample_pos_impl()
/third_party/mesa3d/src/intel/compiler/
Dbrw_nir_lower_alpha_to_coverage.c65 nir_f2i32(b, nir_fmul_imm(b, nir_fsat(b, alpha), 16.0)); in build_dither_mask()
/third_party/mesa3d/src/compiler/spirv/
Dvtn_glsl450.c455 nir_fmul_imm(nb, nir_fsub(nb, nir_fexp(nb, src[0]), in handle_glsl450_alu()
463 nir_fmul_imm(nb, nir_fadd(nb, nir_fexp(nb, src[0]), in handle_glsl450_alu()
502 nir_fmul_imm(nb, nir_flog(nb, nir_fdiv(nb, nir_fadd(nb, src[0], one), in handle_glsl450_alu()
Dvtn_opencl.c548 return nir_fexp2(nb, nir_fmul_imm(nb, srcs[0], log(10) / log(2))); in handle_special()
552 return nir_fmul_imm(nb, nir_flog2(nb, srcs[0]), log(2) / log(10)); in handle_special()
/third_party/mesa3d/src/microsoft/clc/
Dclc_compiler.c749 nir_ssa_def *scaled_down_a = nir_fmul_imm(&b, alu->src[0].src.ssa, 0.25); in scale_fdiv()
750 nir_ssa_def *scaled_down_b = nir_fmul_imm(&b, alu->src[1].src.ssa, 0.25); in scale_fdiv()
751 nir_ssa_def *scaled_up_a = nir_fmul_imm(&b, alu->src[0].src.ssa, 16777216.0); in scale_fdiv()
752 nir_ssa_def *scaled_up_b = nir_fmul_imm(&b, alu->src[1].src.ssa, 16777216.0); in scale_fdiv()
/third_party/mesa3d/src/asahi/compiler/
Dagx_compile.c1130 nir_ssa_def *turns = nir_fmul_imm(b, x, M_1_PI * 0.5f); in agx_lower_sincos_impl()
1135 nir_ssa_def *quadrants = nir_fmul_imm(b, nir_ffract(b, turns), 4.0); in agx_lower_sincos_impl()
/third_party/mesa3d/src/panfrost/vulkan/
Dpanvk_vX_meta_copy.c465 texel = nir_fmul_imm(&b, nir_u2f32(&b, rg), 1.0 / 255); in panvk_meta_copy_img2img_shader()
468 nir_ssa_def *rg = nir_f2u32(&b, nir_fmul_imm(&b, texel, 255)); in panvk_meta_copy_img2img_shader()
/third_party/mesa3d/src/gallium/drivers/crocus/
Dcrocus_program.c984 nir_ssa_def *val = nir_fmul_imm(&b, &tex->dest.ssa, (1 << width) - 1); in crocus_setup_binding_table()
/third_party/mesa3d/docs/relnotes/
D19.0.0.rst1115 - compiler/nir: add nir_fadd_imm() and nir_fmul_imm() helpers
D20.0.0.rst1247 - zink: use nir_fmul_imm