Home
last modified time | relevance | path

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

1234

/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 …]
/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.c62 nir_imm_float(b, 0.0f), in update_fragcoord()
63 nir_imm_float(b, 0.0f))); in update_fragcoord()
Dnir_builder.c456 z = nir_imm_float(b, 0.0); in nir_gen_rect_vertices()
458 w = nir_imm_float(b, 1.0); in nir_gen_rect_vertices()
481 comp[0] = nir_bcsel(b, c0cmp, nir_imm_float(b, -1.0), nir_imm_float(b, 1.0)); in nir_gen_rect_vertices()
482 comp[1] = nir_bcsel(b, c1cmp, nir_imm_float(b, 1.0), nir_imm_float(b, -1.0)); in nir_gen_rect_vertices()
Dnir_lower_point_smooth.c75 nir_discard_if(b, nir_feq(b, nir_imm_float(b, 0.0f), coverage)); in lower_point_smooth()
78 nir_ssa_def *one = nir_imm_float(b, 1.0f); in lower_point_smooth()
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()
/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()
110 nir_imm_float(&b, 0.5f)))); in initialise_coverage_var()
115 nir_imm_float(&b, 0.5f), in initialise_coverage_var()
117 nir_imm_float(&b, 1.0f / M_SQRT2), in initialise_coverage_var()
121 nir_imm_float(&b, 0.5f))))); in initialise_coverage_var()
124 nir_ssa_def *outside = nir_fge(&b, nir_imm_float(&b, 0.0f), coverage); in initialise_coverage_var()
131 nir_ssa_def *clamped = nir_fmin(&b, coverage, nir_imm_float(&b, 1.0f)); in initialise_coverage_var()
/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/gallium/drivers/zink/
Dzink_lower_cubemap_to_array.c94 nir_ssa_def *positive = nir_fge(b, coord->rx, nir_imm_float(b, 0.0)); in evaluate_face_x()
95 nir_ssa_def *ima = nir_fdiv(b, nir_imm_float(b, -0.5), coord->arx); in evaluate_face_x()
97 …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()
98 nir_ssa_def *y = nir_fadd(b, nir_fmul(b, ima, coord->ry), nir_imm_float(b, 0.5)); in evaluate_face_x()
99 nir_ssa_def *face = nir_bcsel(b, positive, nir_imm_float(b, 0.0), nir_imm_float(b, 1.0)); in evaluate_face_x()
111 nir_ssa_def *positive = nir_fge(b, coord->ry, nir_imm_float(b, 0.0)); in evaluate_face_y()
112 nir_ssa_def *ima = nir_fdiv(b, nir_imm_float(b, 0.5), coord->ary); in evaluate_face_y()
114 nir_ssa_def *x = nir_fadd(b, nir_fmul(b, ima, coord->rx), nir_imm_float(b, 0.5)); in evaluate_face_y()
115 …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()
116 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 …]
/third_party/mesa3d/src/microsoft/compiler/
Ddxil_nir_lower_int_cubemaps.c139 nir_ssa_def *positive = nir_fge(b, coord->rx, nir_imm_float(b, 0.0)); in evaluate_face_x()
140 nir_ssa_def *ima = nir_fdiv(b, nir_imm_float(b, -0.5), coord->arx); in evaluate_face_x()
142 …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()
143 nir_ssa_def *y = nir_fadd(b, nir_fmul(b, ima, coord->ry), nir_imm_float(b, 0.5)); in evaluate_face_x()
144 nir_ssa_def *face = nir_bcsel(b, positive, nir_imm_float(b, 0.0), nir_imm_float(b, 1.0)); in evaluate_face_x()
158 nir_ssa_def *positive = nir_fge(b, coord->ry, nir_imm_float(b, 0.0)); in evaluate_face_y()
159 nir_ssa_def *ima = nir_fdiv(b, nir_imm_float(b, 0.5), coord->ary); in evaluate_face_y()
161 nir_ssa_def *x = nir_fadd(b, nir_fmul(b, ima, coord->rx), nir_imm_float(b, 0.5)); in evaluate_face_y()
162 …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()
163 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 …]
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/gallium/drivers/r600/sfn/
Dsfn_nir_lower_alu.cpp108 nir_imm_float(b, 0.15915494), in lower()
109 nir_imm_float(b, 0.5))); in lower()
113 nir_fadd(b, fract, nir_imm_float(b, -0.5)) : in lower()
114 nir_ffma(b, fract, nir_imm_float(b, 2.0f * M_PI), in lower()
115 nir_imm_float(b, -M_PI)); in lower()
Dsfn_nir_lower_tex.cpp44 nir_fmul(b, nir_imm_float(b, -0.5f), scale)); in lower_coord_shift_normalized()
50 nir_fmul(b, nir_imm_float(b, -0.5f), scale), in lower_coord_shift_normalized()
66 nir_imm_float(b, -0.5f)); in lower_coord_shift_unnormalized()
71 nir_imm_float(b, -0.5f)); in lower_coord_shift_unnormalized()
265 nir_imm_float(b, 1.5)); in r600_nir_lower_cube_to_2darray_impl()
270 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()
276 auto zero_dot_5 = nir_imm_float(b, 0.5); in r600_nir_lower_cube_to_2darray_impl()
/third_party/mesa3d/src/gallium/drivers/d3d12/
Dd3d12_lower_image_casts.c124 nir_imm_float(b, 1.0f)); in convert_value()
132 unpacked = nir_vector_insert_imm(b, unpacked, nir_imm_float(b, 1.0f), 3); in convert_value()
139 nir_vec2(b, nir_imm_float(b, 0.0f), nir_imm_float(b, 1.0f)) in convert_value()
142 vec2s[0] = nir_vector_insert_imm(b, vec2s[0], nir_imm_float(b, 0.0f), 1); in convert_value()
151 unpacked = nir_vector_insert_imm(b, unpacked, nir_imm_float(b, 1.0f), 3); in convert_value()
158 nir_vec2(b, nir_imm_float(b, 0.0f), nir_imm_float(b, 1.0f)) in convert_value()
161 vec2s[0] = nir_vector_insert_imm(b, vec2s[0], nir_imm_float(b, 0.0f), 1); in convert_value()
/third_party/mesa3d/src/amd/vulkan/
Dradv_rt_common.c97 inv_dir = nir_fclamp(b, inv_dir, nir_imm_float(b, -FLT_MAX), nir_imm_float(b, FLT_MAX)); in intersect_ray_amd_software_box()
150 nir_iand(b, nir_fge(b, tmax, nir_fmax(b, nir_imm_float(b, 0.0f), tmin)), in intersect_ray_amd_software_box()
226 k = nir_bcsel(b, nir_flt(b, nir_vector_extract(b, dir, kz), nir_imm_float(b, 0.0f)), in intersect_ray_amd_software_tri()
277 b, nir_ior(b, nir_feq(b, u, nir_imm_float(b, 0.0f)), nir_feq(b, v, nir_imm_float(b, 0.0f))), in intersect_ray_amd_software_tri()
278 nir_feq(b, w, nir_imm_float(b, 0.0f))); in intersect_ray_amd_software_tri()
304 b, nir_ior(b, nir_flt(b, u, nir_imm_float(b, 0.0f)), nir_flt(b, v, nir_imm_float(b, 0.0f))), in intersect_ray_amd_software_tri()
305 nir_flt(b, w, nir_imm_float(b, 0.0f))); in intersect_ray_amd_software_tri()
308 b, nir_ior(b, nir_flt(b, nir_imm_float(b, 0.0f), u), nir_flt(b, nir_imm_float(b, 0.0f), v)), in intersect_ray_amd_software_tri()
309 nir_flt(b, nir_imm_float(b, 0.0f), w)); in intersect_ray_amd_software_tri()
326 nir_ssa_def *det_cond_front = nir_inot(b, nir_flt(b, t_signed, nir_imm_float(b, 0.0f))); in intersect_ray_amd_software_tri()
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()
/third_party/mesa3d/src/mesa/program/
Dprog_to_nir.c131 return nir_imm_float(b, 0.0); in ptn_get_src()
222 chans[i] = nir_imm_float(b, 0.0); in ptn_get_src()
224 chans[i] = nir_imm_float(b, 1.0); in ptn_get_src()
305 ptn_move_dest_masked(b, dest, nir_imm_float(b, 1.0), WRITEMASK_W); in ptn_exp()
327 ptn_move_dest_masked(b, dest, nir_imm_float(b, 1.0), WRITEMASK_W); in ptn_log()
339 ptn_move_dest_masked(b, dest, nir_imm_float(b, 1.0), WRITEMASK_X); in ptn_dst()
354 ptn_move_dest_masked(b, dest, nir_imm_float(b, 1.0), WRITEMASK_XW); in ptn_lit()
357 nir_imm_float(b, 0.0)), WRITEMASK_Y); in ptn_lit()
362 nir_imm_float(b, 128.0)), in ptn_lit()
363 nir_imm_float(b, -128.0)); in ptn_lit()
[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/gallium/drivers/r600/sfn/tests/
Dsfn_valuefactory_test.cpp55 auto c1 = nir_imm_float(&b, 2.0); in TEST_F()
56 auto c2 = nir_imm_float(&b, 4.0); in TEST_F()
108 auto c1 = nir_imm_float(&b, 2.0); in TEST_F()
181 auto c1 = nir_imm_float(&b, 2.0); in TEST_F()
182 auto c2 = nir_imm_float(&b, 4.0); in TEST_F()
200 auto c1 = nir_imm_float(&b, 2.0); in TEST_F()
201 auto c2 = nir_imm_float(&b, 4.0); in TEST_F()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_draw_hw_select.c74 nir_ssa_def *imm = nir_imm_float(b, INFINITY); in has_nan_or_inf()
135 nir_ssa_def *n0 = nir_flt(b, nir_channel(b, v[0], 3), nir_imm_float(b, 0)); in face_culling()
136 nir_ssa_def *n1 = nir_flt(b, nir_channel(b, v[1], 3), nir_imm_float(b, 0)); in face_culling()
137 nir_ssa_def *n2 = nir_flt(b, nir_channel(b, v[2], 3), nir_imm_float(b, 0)); in face_culling()
232 nir_ssa_def *clipped = nir_flt(b, d, nir_imm_float(b, 0)); in clip_with_plane()
270 nir_if *if_clipped = nir_push_if(b, nir_flt(b, di, nir_imm_float(b, 0))); in clip_with_plane()
278 nir_if *prev_if = nir_push_if(b, nir_flt(b, nir_imm_float(b, 0), dp)); in clip_with_plane()
300 nir_if *next_if = nir_push_if(b, nir_flt(b, nir_imm_float(b, 0), dn)); in clip_with_plane()
385 nir_ssa_def *c = nir_feq(b, w, nir_imm_float(b, 0)); in get_window_space_depth()
386 nir_ssa_def *d = nir_bcsel(b, c, nir_imm_float(b, -1), nir_fdiv(b, z, w)); in get_window_space_depth()
[all …]
/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/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()

1234