Home
last modified time | relevance | path

Searched refs:nir_imm_float (Results 1 – 25 of 59) sorted by relevance

123

/third_party/mesa3d/src/gallium/drivers/d3d12/
Dd3d12_lower_int_cubemap_to_array.c75 nir_ssa_def *positive = nir_fge(b, coord->rx, nir_imm_float(b, 0.0)); in evaluate_face_x()
76 nir_ssa_def *ima = nir_fdiv(b, nir_imm_float(b, -0.5), coord->arx); in evaluate_face_x()
78 …nir_ssa_def *x = nir_fadd(b, nir_fmul(b, nir_fmul(b, sign, ima), coord->rz), nir_imm_float(b, 0.5)… in evaluate_face_x()
79 nir_ssa_def *y = nir_fadd(b, nir_fmul(b, ima, coord->ry), nir_imm_float(b, 0.5)); in evaluate_face_x()
80 nir_ssa_def *face = nir_bcsel(b, positive, nir_imm_float(b, 0.0), nir_imm_float(b, 1.0)); in evaluate_face_x()
89 nir_ssa_def *positive = nir_fge(b, coord->ry, nir_imm_float(b, 0.0)); in evaluate_face_y()
90 nir_ssa_def *ima = nir_fdiv(b, nir_imm_float(b, 0.5), coord->ary); in evaluate_face_y()
92 nir_ssa_def *x = nir_fadd(b, nir_fmul(b, ima, coord->rx), nir_imm_float(b, 0.5)); in evaluate_face_y()
93 …nir_ssa_def *y = nir_fadd(b, nir_fmul(b, nir_fmul(b, sign, ima), coord->rz), nir_imm_float(b, 0.5)… in evaluate_face_y()
94 nir_ssa_def *face = nir_bcsel(b, positive, nir_imm_float(b, 2.0), nir_imm_float(b, 3.0)); in evaluate_face_y()
[all …]
Dd3d12_nir_lower_texcmp.c116 nir_ssa_def *one = nir_imm_float(b, 1.0); in lower_sample_tex_compare_impl()
117 nir_ssa_def *zero = nir_imm_float(b, 0.0); in lower_sample_tex_compare_impl()
/third_party/mesa3d/src/broadcom/compiler/
Dv3d_nir_lower_line_smooth.c45 nir_ssa_def *one = nir_imm_float(b, 1.0f); in lower_line_smooth_intrinsic()
105 nir_imm_float(&b, 0.5f)))); in initialise_coverage_var()
110 nir_imm_float(&b, 0.5f), in initialise_coverage_var()
112 nir_imm_float(&b, 1.0f / M_SQRT2), in initialise_coverage_var()
116 nir_imm_float(&b, 0.5f))))); in initialise_coverage_var()
119 nir_ssa_def *outside = nir_fge(&b, nir_imm_float(&b, 0.0f), coverage); in initialise_coverage_var()
126 nir_ssa_def *clamped = nir_fmin(&b, coverage, nir_imm_float(&b, 1.0f)); in initialise_coverage_var()
/third_party/mesa3d/src/compiler/nir/tests/
Dcomparison_pre_tests.cpp96 nir_ssa_def *one = nir_imm_float(&bld, 1.0f); in TEST_F()
148 nir_ssa_def *one = nir_imm_float(&bld, 1.0f); in TEST_F()
201 nir_ssa_def *one = nir_imm_float(&bld, 1.0f); in TEST_F()
253 nir_ssa_def *one = nir_imm_float(&bld, 1.0f); in TEST_F()
305 nir_ssa_def *one = nir_imm_float(&bld, 1.0f); in TEST_F()
306 nir_ssa_def *neg_one = nir_imm_float(&bld, -1.0f); in TEST_F()
358 nir_ssa_def *one = nir_imm_float(&bld, 1.0f); in TEST_F()
359 nir_ssa_def *neg_one = nir_imm_float(&bld, -1.0f); in TEST_F()
412 nir_ssa_def *one = nir_imm_float(&bld, 1.0f); in TEST_F()
413 nir_ssa_def *neg_one = nir_imm_float(&bld, -1.0f); in TEST_F()
[all …]
Dnegative_equal_tests.cpp137 nir_ssa_def *two = nir_imm_float(&bld, 2.0f);
138 nir_ssa_def *negative_two = nir_imm_float(&bld, -2.0f);
169 nir_ssa_def *two = nir_imm_float(&bld, 2.0f); in TEST_F()
/third_party/mesa3d/src/compiler/nir/
Dnir_convert_ycbcr.c40 nir_imm_float(b, pow(2, bpc) - 1)), in y_range()
41 nir_imm_float(b, -16.0f * pow(2, bpc - 8))), in y_range()
42 nir_frcp(b, nir_imm_float(b, 219.0f * pow(2, bpc - 8)))); in y_range()
58 nir_imm_float(b, -pow(2, bpc - 1) / (pow(2, bpc) - 1.0f))); in chroma_range()
63 nir_imm_float(b, pow(2, bpc) - 1)), in chroma_range()
64 nir_imm_float(b, -128.0f * pow(2, bpc - 8))), in chroma_range()
65 nir_frcp(b, nir_imm_float(b, 224.0f * pow(2, bpc - 8)))); in chroma_range()
Dnir_format_convert.h261 nir_imm_float(b, -1.0f)); in nir_format_snorm_to_float()
283 f = nir_fmin(b, nir_fmax(b, f, nir_imm_float(b, -1)), nir_imm_float(b, 1)); in nir_format_float_to_snorm()
294 nir_ssa_def *zero = nir_imm_float(b, 0); in nir_format_float_to_half()
304 nir_ssa_def *linear = nir_fmul(b, c, nir_imm_float(b, 12.92f)); in nir_format_linear_to_srgb()
306 nir_fsub(b, nir_fmul(b, nir_imm_float(b, 1.055f), in nir_format_linear_to_srgb()
307 nir_fpow(b, c, nir_imm_float(b, 1.0 / 2.4))), in nir_format_linear_to_srgb()
308 nir_imm_float(b, 0.055f)); in nir_format_linear_to_srgb()
310 return nir_fsat(b, nir_bcsel(b, nir_flt(b, c, nir_imm_float(b, 0.0031308f)), in nir_format_linear_to_srgb()
317 nir_ssa_def *linear = nir_fdiv(b, c, nir_imm_float(b, 12.92f)); in nir_format_srgb_to_linear()
319 nir_fpow(b, nir_fdiv(b, nir_fadd(b, c, nir_imm_float(b, 0.055f)), in nir_format_srgb_to_linear()
[all …]
Dnir_lower_wpos_center.c66 nir_imm_float(b, 0.0f), in update_fragcoord()
67 nir_imm_float(b, 0.0f))); in update_fragcoord()
Dnir_lower_point_size.c49 psiz = nir_fmax(b, psiz, nir_imm_float(b, min)); in lower_point_size_instr()
52 psiz = nir_fmin(b, psiz, nir_imm_float(b, max)); in lower_point_size_instr()
Dnir_lower_bool_to_float.c72 nir_imm_float(b, 0)); in lower_alu_instr()
108 nir_imm_float(b, 0)); in lower_alu_instr()
Dnir_lower_tex.c375 nir_imm_float(b, 1.0f), in lower_y_uv_external()
395 nir_imm_float(b, 1.0f), in lower_y_u_v_external()
414 nir_imm_float(b, 1.0f), in lower_yx_xuxv_external()
433 nir_imm_float(b, 1.0f), in lower_xy_uxvx_external()
487 nir_imm_float(b, 1.0f), in lower_xyuv_external()
505 nir_imm_float(b, 1.0f), in lower_yuv_external()
523 nir_imm_float(b, 1.0f), in lower_yu_yv_external()
689 nir_imm_float(b, -1.0f), in lower_gradient_cube_map()
691 nir_imm_float(b, 0.5f), in lower_gradient_cube_map()
865 comp[j] = nir_fmax(b, comp[j], nir_imm_float(b, 0.0)); in saturate_src()
/third_party/mesa3d/src/gallium/drivers/vc4/
Dvc4_nir_lower_io.c111 nir_imm_float(b, in vc4_nir_get_vattr_channel_vpm()
125 nir_imm_float(b, 2.0)), in vc4_nir_get_vattr_channel_vpm()
126 nir_imm_float(b, 1.0)); in vc4_nir_get_vattr_channel_vpm()
132 nir_imm_float(b, -128.0)); in vc4_nir_get_vattr_channel_vpm()
153 nir_imm_float(b, 1/32768.0f)); in vc4_nir_get_vattr_channel_vpm()
161 nir_imm_float(b, 1 / 65535.0)); in vc4_nir_get_vattr_channel_vpm()
213 dests[i] = nir_imm_float(b, 0.0); in vc4_nir_lower_vertex_attr()
255 result = nir_imm_float(b, 0.0); in vc4_nir_lower_fs_input()
258 result = nir_imm_float(b, 0.0); in vc4_nir_lower_fs_input()
261 result = nir_imm_float(b, 1.0); in vc4_nir_lower_fs_input()
[all …]
Dvc4_nir_lower_blend.c73 return nir_imm_float(b, 1.0); in vc4_blend_channel_f()
87 nir_imm_float(b, 1.0), in vc4_blend_channel_f()
90 return nir_imm_float(b, 1.0); in vc4_blend_channel_f()
100 return nir_imm_float(b, 0.0); in vc4_blend_channel_f()
102 return nir_fsub(b, nir_imm_float(b, 1.0), src[channel]); in vc4_blend_channel_f()
104 return nir_fsub(b, nir_imm_float(b, 1.0), src[3]); in vc4_blend_channel_f()
106 return nir_fsub(b, nir_imm_float(b, 1.0), dst[3]); in vc4_blend_channel_f()
108 return nir_fsub(b, nir_imm_float(b, 1.0), dst[channel]); in vc4_blend_channel_f()
110 return nir_fsub(b, nir_imm_float(b, 1.0), in vc4_blend_channel_f()
116 return nir_fsub(b, nir_imm_float(b, 1.0), in vc4_blend_channel_f()
[all …]
/third_party/mesa3d/src/microsoft/compiler/
Ddxil_nir_lower_int_samplers.c124 wrap_params->coords = nir_fmin(b, nir_fsub(b, size, nir_imm_float(b, 1.0f)), in wrap_clamp_to_edge()
125 nir_fmax(b, wrap_params->coords, nir_imm_float(b, 0.0f))); in wrap_clamp_to_edge()
142 return nir_bcsel(b, nir_fge(b, coord, nir_imm_float(b, 0.0f)), coord, in mirror()
143 nir_fneg(b, nir_fadd(b, nir_imm_float(b, 1.0f), coord))); in mirror()
150 …nir_ssa_def *coord_mod2size = nir_fmod(b, wrap_params->coords, nir_fmul(b, nir_imm_float(b, 2.0f),… in wrap_mirror_repeat()
153 wrap_params->coords = nir_fsub(b, nir_fsub(b, size, nir_imm_float(b, 1.0f)), mirror(b, a)); in wrap_mirror_repeat()
160 wrap_params->coords = nir_fmin(b, nir_fsub(b, size, nir_imm_float(b, 1.0f)), in wrap_mirror_clamp_to_edge()
161 … nir_fmax(b, mirror(b, wrap_params->coords), nir_imm_float(b, 0.0f))); in wrap_mirror_clamp_to_edge()
167 nir_ssa_def *is_low = nir_flt(b, wrap_params->coords, nir_imm_float(b, 0.0)); in wrap_clamp()
176 nir_ssa_def *is_low = nir_flt(b, wrap_params->coords, nir_fmul(b, size, nir_imm_float(b, -1.0))); in wrap_mirror_clamp()
[all …]
/third_party/mesa3d/src/intel/compiler/
Dbrw_nir_tcs_workarounds.c92 nir_ior(b, nir_bany(b, nir_flt(b, nir_imm_float(b, 1.0f), outer)), in emit_quads_workaround()
93 nir_bany(b, nir_flt(b, nir_imm_float(b, 1.0f), inner))); in emit_quads_workaround()
97 inner = nir_bcsel(b, nir_fge(b, nir_imm_float(b, 1.0f), inner), in emit_quads_workaround()
98 nir_imm_float(b, 2.0f), inner); in emit_quads_workaround()
Dbrw_nir_attribute_workarounds.c58 nir_fmul(b, val, nir_imm_float(b, 1.0f / 65536.0f)); in apply_attr_wa_instr()
98 nir_imm_float(b, -1.0f)); in apply_attr_wa_instr()
/third_party/mesa3d/src/mesa/program/
Dprog_to_nir.c129 return nir_imm_float(b, 0.0); in ptn_get_src()
220 chans[i] = nir_imm_float(b, 0.0); in ptn_get_src()
222 chans[i] = nir_imm_float(b, 1.0); in ptn_get_src()
303 ptn_move_dest_masked(b, dest, nir_imm_float(b, 1.0), WRITEMASK_W); in ptn_exp()
325 ptn_move_dest_masked(b, dest, nir_imm_float(b, 1.0), WRITEMASK_W); in ptn_log()
337 ptn_move_dest_masked(b, dest, nir_imm_float(b, 1.0), WRITEMASK_X); in ptn_dst()
352 ptn_move_dest_masked(b, dest, nir_imm_float(b, 1.0), WRITEMASK_XW); in ptn_lit()
355 nir_imm_float(b, 0.0)), WRITEMASK_Y); in ptn_lit()
360 nir_imm_float(b, 128.0)), in ptn_lit()
361 nir_imm_float(b, -128.0)); in ptn_lit()
[all …]
/third_party/mesa3d/src/gallium/drivers/r600/sfn/
Dsfn_instruction_tex.cpp151 nir_fmul(b, nir_imm_float(b, -0.5f), scale)); in lower_coord_shift_normalized()
157 nir_fmul(b, nir_imm_float(b, -0.5f), scale), in lower_coord_shift_normalized()
173 nir_imm_float(b, -0.5f)); in lower_coord_shift_unnormalized()
178 nir_imm_float(b, -0.5f)); in lower_coord_shift_unnormalized()
372 nir_imm_float(b, 1.5)); in r600_nir_lower_cube_to_2darray_impl()
377 z = nir_fmad(b, nir_fmax(b, slice, nir_imm_float(b, 0.0)), nir_imm_float(b, 8.0), in r600_nir_lower_cube_to_2darray_impl()
383 auto zero_dot_5 = nir_imm_float(b, 0.5); in r600_nir_lower_cube_to_2darray_impl()
Dsfn_nir_lower_alu.cpp81 nir_imm_float(b, 0.15915494), in lower()
82 nir_imm_float(b, 0.5))), in lower()
83 nir_imm_float(b, -0.5)); in lower()
/third_party/mesa3d/src/amd/common/
Dac_nir_cull.c48 nir_ssa_def *neg_w = nir_flt(b, pos[i][3], nir_imm_float(b, 0.0f)); in analyze_position_w()
71 nir_ssa_def *front_facing_cw = nir_flt(b, det, nir_imm_float(b, 0.0f)); in cull_face()
72 nir_ssa_def *front_facing_ccw = nir_flt(b, nir_imm_float(b, 0.0f), det); in cull_face()
109 …prim_outside_view = nir_ior(b, prim_outside_view, nir_flt(b, bbox_max[chan], nir_imm_float(b, -1.0… in cull_bbox()
110 …prim_outside_view = nir_ior(b, prim_outside_view, nir_flt(b, nir_imm_float(b, 1.0f), bbox_min[chan… in cull_bbox()
/third_party/mesa3d/src/amd/vulkan/
Dradv_nir_lower_ycbcr_textures.c68 nir_fdiv(b, nir_imm_float(b, 1.0f), nir_fmul(b, nir_imm_float(b, div_scale), max_value))); in implicit_downsampled_coord()
76 nir_imm_float(b, 1.0f / (float)div_scale)); in implicit_downsampled_coord_unnormalized()
98 comp[c] = nir_fdiv(b, comp[c], nir_imm_float(b, divisors[c])); in implicit_downsampled_coords()
193 nir_ssa_def *zero = nir_imm_float(builder, 0.0f); in build_swizzled_components()
194 nir_ssa_def *one = nir_imm_float(builder, 1.0f); in build_swizzled_components()
Dradv_meta.c566 comp[0] = nir_bcsel(vs_b, c0cmp, nir_imm_float(vs_b, -1.0), nir_imm_float(vs_b, 1.0)); in radv_meta_gen_rect_vertices_comp2()
568 comp[1] = nir_bcsel(vs_b, c1cmp, nir_imm_float(vs_b, -1.0), nir_imm_float(vs_b, 1.0)); in radv_meta_gen_rect_vertices_comp2()
570 comp[3] = nir_imm_float(vs_b, 1.0); in radv_meta_gen_rect_vertices_comp2()
579 return radv_meta_gen_rect_vertices_comp2(vs_b, nir_imm_float(vs_b, 0.0)); in radv_meta_gen_rect_vertices()
676 tmp = nir_fdiv(b, tmp, nir_imm_float(b, samples)); in radv_meta_build_resolve_shader_core()
/third_party/mesa3d/src/intel/vulkan/
Danv_nir_lower_ycbcr_textures.c76 nir_imm_float(b, 1.0f), in implicit_downsampled_coord()
78 nir_imm_float(b, div_scale), in implicit_downsampled_coord()
267 nir_ssa_def *zero = nir_imm_float(builder, 0.0f); in anv_nir_lower_ycbcr_textures_instr()
268 nir_ssa_def *one = nir_imm_float(builder, 1.0f); in anv_nir_lower_ycbcr_textures_instr()
/third_party/mesa3d/src/gallium/auxiliary/nir/
Dtgsi_to_nir.c542 nir_imm_float(&c->build, 1.0), in ttn_emulate_tgsi_front_face()
543 nir_imm_float(&c->build, -1.0)); in ttn_emulate_tgsi_front_face()
544 tgsi_frontface[1] = nir_imm_float(&c->build, 0.0); in ttn_emulate_tgsi_front_face()
545 tgsi_frontface[2] = nir_imm_float(&c->build, 0.0); in ttn_emulate_tgsi_front_face()
546 tgsi_frontface[3] = nir_imm_float(&c->build, 1.0); in ttn_emulate_tgsi_front_face()
866 return nir_imm_float(b, 0.0); in ttn_get_src()
983 ttn_move_dest_masked(b, dest, nir_imm_float(b, 1.0), TGSI_WRITEMASK_W); in ttn_exp()
1003 ttn_move_dest_masked(b, dest, nir_imm_float(b, 1.0), TGSI_WRITEMASK_W); in ttn_log()
1015 ttn_move_dest_masked(b, dest, nir_imm_float(b, 1.0), TGSI_WRITEMASK_X); in ttn_dst()
1030 ttn_move_dest_masked(b, dest, nir_imm_float(b, 1.0), TGSI_WRITEMASK_XW); in ttn_lit()
[all …]
/third_party/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_nir.c169 nir_imm_float(&b, 1.0 / M_PI) : in etna_lower_alu_impl()
170 nir_imm_float(&b, 2.0 / M_PI); in etna_lower_alu_impl()

123