/external/mesa3d/src/compiler/nir/tests/ |
D | comparison_pre_tests.cpp | 95 nir_ssa_def *one = nir_imm_float(&bld, 1.0f); in TEST_F() 147 nir_ssa_def *one = nir_imm_float(&bld, 1.0f); in TEST_F() 200 nir_ssa_def *one = nir_imm_float(&bld, 1.0f); in TEST_F() 252 nir_ssa_def *one = nir_imm_float(&bld, 1.0f); in TEST_F() 304 nir_ssa_def *one = nir_imm_float(&bld, 1.0f); in TEST_F() 305 nir_ssa_def *neg_one = nir_imm_float(&bld, -1.0f); in TEST_F() 357 nir_ssa_def *one = nir_imm_float(&bld, 1.0f); in TEST_F() 358 nir_ssa_def *neg_one = nir_imm_float(&bld, -1.0f); in TEST_F() 411 nir_ssa_def *one = nir_imm_float(&bld, 1.0f); in TEST_F() 412 nir_ssa_def *neg_one = nir_imm_float(&bld, -1.0f); in TEST_F() [all …]
|
D | negative_equal_tests.cpp | 136 nir_ssa_def *two = nir_imm_float(&bld, 2.0f); 137 nir_ssa_def *negative_two = nir_imm_float(&bld, -2.0f); 168 nir_ssa_def *two = nir_imm_float(&bld, 2.0f); in TEST_F()
|
/external/mesa3d/src/compiler/nir/ |
D | nir_convert_ycbcr.c | 40 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()
|
D | nir_format_convert.h | 239 nir_imm_float(b, -1.0f)); in nir_format_snorm_to_float() 261 f = nir_fmin(b, nir_fmax(b, f, nir_imm_float(b, -1)), nir_imm_float(b, 1)); in nir_format_float_to_snorm() 272 nir_ssa_def *zero = nir_imm_float(b, 0); in nir_format_float_to_half() 282 nir_ssa_def *linear = nir_fmul(b, c, nir_imm_float(b, 12.92f)); in nir_format_linear_to_srgb() 284 nir_fsub(b, nir_fmul(b, nir_imm_float(b, 1.055f), in nir_format_linear_to_srgb() 285 nir_fpow(b, c, nir_imm_float(b, 1.0 / 2.4))), in nir_format_linear_to_srgb() 286 nir_imm_float(b, 0.055f)); in nir_format_linear_to_srgb() 288 return nir_fsat(b, nir_bcsel(b, nir_flt(b, c, nir_imm_float(b, 0.0031308f)), in nir_format_linear_to_srgb() 295 nir_ssa_def *linear = nir_fdiv(b, c, nir_imm_float(b, 12.92f)); in nir_format_srgb_to_linear() 297 nir_fpow(b, nir_fdiv(b, nir_fadd(b, c, nir_imm_float(b, 0.055f)), in nir_format_srgb_to_linear() [all …]
|
D | nir_lower_wpos_center.c | 66 nir_imm_float(b, 0.0f), in update_fragcoord() 67 nir_imm_float(b, 0.0f))); in update_fragcoord()
|
D | nir_lower_point_size.c | 49 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()
|
D | nir_lower_tex.c | 312 nir_imm_float(b, offset_vals[0]), in convert_yuv_to_rgb() 313 nir_imm_float(b, offset_vals[1]), in convert_yuv_to_rgb() 314 nir_imm_float(b, offset_vals[2]), in convert_yuv_to_rgb() 342 nir_imm_float(b, 1.0f), in lower_y_uv_external() 360 nir_imm_float(b, 1.0f), in lower_y_u_v_external() 377 nir_imm_float(b, 1.0f), in lower_yx_xuxv_external() 394 nir_imm_float(b, 1.0f), in lower_xy_uxvx_external() 426 nir_imm_float(b, 1.0f), in lower_xyuv_external() 442 nir_imm_float(b, 1.0f), in lower_yuv_external() 607 nir_imm_float(b, -1.0f), in lower_gradient_cube_map() [all …]
|
D | nir_lower_bool_to_float.c | 71 nir_imm_float(b, 0)); in lower_alu_instr() 107 nir_imm_float(b, 0)); 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() 290 nir_fadd(b, nir_fmax(b, neg_scale, nir_imm_float(b, 0.0)), in lower_load_sample_pos()
|
D | nir_lower_alpha_test.c | 89 alpha = nir_imm_float(&b, 1.0); in nir_lower_alpha_test()
|
/external/mesa3d/src/broadcom/compiler/ |
D | v3d_nir_lower_line_smooth.c | 45 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() 130 nir_ssa_def *clamped = nir_fmin(&b, coverage, nir_imm_float(&b, 1.0f)); in initialise_coverage_var()
|
/external/mesa3d/src/gallium/drivers/vc4/ |
D | vc4_nir_lower_io.c | 111 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() 222 dests[i] = nir_imm_float(b, 0.0); in vc4_nir_lower_vertex_attr() 264 result = nir_imm_float(b, 0.0); in vc4_nir_lower_fs_input() 267 result = nir_imm_float(b, 0.0); in vc4_nir_lower_fs_input() 270 result = nir_imm_float(b, 1.0); in vc4_nir_lower_fs_input() [all …]
|
D | vc4_nir_lower_blend.c | 80 return nir_imm_float(b, 1.0); in vc4_blend_channel_f() 94 nir_imm_float(b, 1.0), in vc4_blend_channel_f() 97 return nir_imm_float(b, 1.0); in vc4_blend_channel_f() 107 return nir_imm_float(b, 0.0); in vc4_blend_channel_f() 109 return nir_fsub(b, nir_imm_float(b, 1.0), src[channel]); in vc4_blend_channel_f() 111 return nir_fsub(b, nir_imm_float(b, 1.0), src[3]); in vc4_blend_channel_f() 113 return nir_fsub(b, nir_imm_float(b, 1.0), dst[3]); in vc4_blend_channel_f() 115 return nir_fsub(b, nir_imm_float(b, 1.0), dst[channel]); in vc4_blend_channel_f() 117 return nir_fsub(b, nir_imm_float(b, 1.0), in vc4_blend_channel_f() 123 return nir_fsub(b, nir_imm_float(b, 1.0), in vc4_blend_channel_f() [all …]
|
/external/mesa3d/src/intel/compiler/ |
D | brw_nir_tcs_workarounds.c | 100 nir_ior(b, nir_bany(b, nir_flt(b, nir_imm_float(b, 1.0f), outer)), in emit_quads_workaround() 101 nir_bany(b, nir_flt(b, nir_imm_float(b, 1.0f), inner))); in emit_quads_workaround() 105 inner = nir_bcsel(b, nir_fge(b, nir_imm_float(b, 1.0f), inner), in emit_quads_workaround() 106 nir_imm_float(b, 2.0f), inner); in emit_quads_workaround()
|
D | brw_nir_attribute_workarounds.c | 65 nir_fmul(b, val, nir_imm_float(b, 1.0f / 65536.0f)); in apply_attr_wa_block() 105 nir_imm_float(b, -1.0f)); in apply_attr_wa_block()
|
/external/mesa3d/src/mesa/program/ |
D | prog_to_nir.c | 129 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 …]
|
/external/mesa3d/src/amd/vulkan/ |
D | radv_nir_lower_ycbcr_textures.c | 71 nir_imm_float(b, 1.0f), in implicit_downsampled_coord() 73 nir_imm_float(b, div_scale), in implicit_downsampled_coord() 198 nir_ssa_def *zero = nir_imm_float(builder, 0.0f); in build_swizzled_components() 199 nir_ssa_def *one = nir_imm_float(builder, 1.0f); in build_swizzled_components()
|
D | radv_meta.c | 525 nir_imm_float(vs_b, -1.0), in radv_meta_gen_rect_vertices_comp2() 526 nir_imm_float(vs_b, 1.0)); in radv_meta_gen_rect_vertices_comp2() 529 nir_imm_float(vs_b, -1.0), in radv_meta_gen_rect_vertices_comp2() 530 nir_imm_float(vs_b, 1.0)); in radv_meta_gen_rect_vertices_comp2() 532 comp[3] = nir_imm_float(vs_b, 1.0); in radv_meta_gen_rect_vertices_comp2() 540 return radv_meta_gen_rect_vertices_comp2(vs_b, nir_imm_float(vs_b, 0.0)); in radv_meta_gen_rect_vertices() 646 tmp = nir_fdiv(b, tmp, nir_imm_float(b, samples)); in radv_meta_build_resolve_shader_core()
|
/external/mesa3d/src/intel/vulkan/ |
D | anv_nir_lower_ycbcr_textures.c | 76 nir_imm_float(b, 1.0f), in implicit_downsampled_coord() 78 nir_imm_float(b, div_scale), in implicit_downsampled_coord() 260 nir_ssa_def *zero = nir_imm_float(builder, 0.0f); in try_lower_tex_ycbcr() 261 nir_ssa_def *one = nir_imm_float(builder, 1.0f); in try_lower_tex_ycbcr()
|
/external/mesa3d/src/gallium/drivers/etnaviv/ |
D | etnaviv_nir.c | 159 load->src[0] = nir_src_for_ssa(nir_imm_float(&b, 0.0f)); in etna_lower_io() 219 nir_imm_float(&b, 1.0 / M_PI) : in etna_lower_alu_impl() 220 nir_imm_float(&b, 2.0 / M_PI); in etna_lower_alu_impl()
|
/external/mesa3d/src/gallium/auxiliary/nir/ |
D | tgsi_to_nir.c | 534 nir_imm_float(&c->build, 1.0), in ttn_emulate_tgsi_front_face() 535 nir_imm_float(&c->build, -1.0)); in ttn_emulate_tgsi_front_face() 536 tgsi_frontface[1] = nir_imm_float(&c->build, 0.0); in ttn_emulate_tgsi_front_face() 537 tgsi_frontface[2] = nir_imm_float(&c->build, 0.0); in ttn_emulate_tgsi_front_face() 538 tgsi_frontface[3] = nir_imm_float(&c->build, 1.0); in ttn_emulate_tgsi_front_face() 862 return nir_imm_float(b, 0.0); in ttn_get_src() 981 ttn_move_dest_masked(b, dest, nir_imm_float(b, 1.0), TGSI_WRITEMASK_W); in ttn_exp() 1001 ttn_move_dest_masked(b, dest, nir_imm_float(b, 1.0), TGSI_WRITEMASK_W); in ttn_log() 1013 ttn_move_dest_masked(b, dest, nir_imm_float(b, 1.0), TGSI_WRITEMASK_X); in ttn_dst() 1028 ttn_move_dest_masked(b, dest, nir_imm_float(b, 1.0), TGSI_WRITEMASK_XW); in ttn_lit() [all …]
|
/external/mesa3d/src/gallium/drivers/panfrost/nir/ |
D | nir_lower_blend.c | 87 nir_ssa_def *one = half ? nir_imm_float16(b, 1.0) : nir_imm_float(b, 1.0); in nir_alpha_saturate() 105 return half ? nir_imm_float16(b, 0.0) : nir_imm_float(b, 0.0); in nir_blend_factor_value() 142 nir_ssa_def *unity = half ? nir_imm_float16(b, 1.0) : nir_imm_float(b, 1.0); in nir_blend_factor()
|
/external/mesa3d/src/gallium/drivers/r600/sfn/ |
D | sfn_instruction_tex.cpp | 149 nir_fmul(&b, nir_imm_float(&b, -0.5f), scale), in lower_coord_shift_normalized() 161 nir_imm_float(&b, -0.5f)); in lower_coord_shift_unnormalized()
|
/external/mesa3d/src/freedreno/ir3/ |
D | ir3_nir_lower_load_barycentric_at_sample.c | 74 nir_ssa_def *half = nir_imm_float(b, 0.5); in lower_load_sample_pos()
|
/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()
|