Home
last modified time | relevance | path

Searched refs:nir_const_value (Results 1 – 25 of 68) sorted by relevance

123

/external/mesa3d/src/compiler/nir/
Dnir_loop_analyze.c553 guess_loop_limit(loop_info_state *state, nir_const_value *limit_val, in guess_loop_limit()
654 try_find_limit_of_alu(nir_scalar limit, nir_const_value *limit_val, nir_op alu_op, in try_find_limit_of_alu()
676 static nir_const_value
677 eval_const_unop(nir_op op, unsigned bit_size, nir_const_value src0, in eval_const_unop()
681 nir_const_value dest; in eval_const_unop()
682 nir_const_value *src[1] = { &src0 }; in eval_const_unop()
687 static nir_const_value
689 nir_const_value src0, nir_const_value src1, in eval_const_binop()
693 nir_const_value dest; in eval_const_binop()
694 nir_const_value *src[2] = { &src0, &src1 }; in eval_const_binop()
[all …]
Dnir_opt_constant_folding.c42 nir_const_value src[NIR_ALU_MAX_INPUTS][NIR_MAX_VEC_COMPONENTS]; in try_fold_alu()
77 nir_const_value dest[NIR_MAX_VEC_COMPONENTS]; in try_fold_alu()
78 nir_const_value *srcs[NIR_ALU_MAX_INPUTS]; in try_fold_alu()
96 static nir_const_value *
119 nir_const_value *v = NULL; /* Vector value for array-deref-of-vec */ in const_value_for_deref()
203 nir_const_value *v = const_value_for_deref(deref); in try_fold_intrinsic()
233 nir_const_value imm[NIR_MAX_VEC_COMPONENTS]; in try_fold_intrinsic()
260 nir_const_value imm[NIR_MAX_VEC_COMPONENTS]; in try_fold_intrinsic()
Dnir_constant_expressions.h33 void nir_eval_const_opcode(nir_op op, nir_const_value *dest,
35 nir_const_value **src,
Dnir_opt_large_constants.c31 read_const_values(nir_const_value *dst, const void *src, in read_const_values()
73 write_const_values(void *dst, const nir_const_value *src, in write_const_values()
200 nir_deref_instr *deref, nir_const_value *val, in handle_constant_store()
252 nir_const_value values[64]; in get_small_constant()
266 nir_const_value fc = nir_const_value_for_float(u, bit_size); in get_small_constant()
442 nir_const_value *val = nir_src_as_const_value(intrin->src[1]); in nir_opt_large_constants()
Dnir_builder.h295 unsigned bit_size, const nir_const_value *value) in nir_build_imm()
302 memcpy(load_const->value, value, sizeof(nir_const_value) * num_components); in nir_build_imm()
325 nir_const_value v = nir_const_value_for_bool(x, bit_size); in nir_imm_boolN_t()
350 nir_const_value v = nir_const_value_for_float(x, bit_size); in nir_imm_floatN_t()
375 nir_const_value v[2] = { in nir_imm_vec2()
385 nir_const_value v[3] = { in nir_imm_vec3()
396 nir_const_value v[4] = { in nir_imm_vec4()
409 nir_const_value v[4] = { in nir_imm_vec4_16()
422 nir_const_value v = nir_const_value_for_raw_uint(x, bit_size); in nir_imm_intN_t()
441 nir_const_value v[2] = { in nir_imm_ivec2()
[all …]
Dnir_format_convert.c33 nir_const_value mask[NIR_MAX_VEC_COMPONENTS]; in nir_format_mask_uvec()
203 nir_const_value factor[NIR_MAX_VEC_COMPONENTS]; in _nir_format_norm_factor()
268 nir_const_value max[NIR_MAX_VEC_COMPONENTS]; in nir_format_float_to_uscaled()
284 nir_const_value min[NIR_MAX_VEC_COMPONENTS], max[NIR_MAX_VEC_COMPONENTS]; in nir_format_float_to_sscaled()
345 nir_const_value max[NIR_MAX_VEC_COMPONENTS]; in nir_format_clamp_uint()
363 nir_const_value min[NIR_MAX_VEC_COMPONENTS], max[NIR_MAX_VEC_COMPONENTS]; in nir_format_clamp_sint()
Dnir_opt_vectorize.c393 nir_const_value value[NIR_MAX_VEC_COMPONENTS]; in instr_try_combine_phi()
472 nir_const_value *c1 = nir_src_as_const_value(alu1->src[i].src); in instr_try_combine_alu()
473 nir_const_value *c2 = nir_src_as_const_value(alu2->src[i].src); in instr_try_combine_alu()
475 nir_const_value value[NIR_MAX_VEC_COMPONENTS]; in instr_try_combine_alu()
Dnir_lower_flrp.c247 nir_const_value *val = nir_src_as_const_value(instr->src[src].src); in all_same_constant()
281 nir_const_value *val0 = nir_src_as_const_value(instr->src[0].src); in sources_are_constants_with_similar_magnitudes()
282 nir_const_value *val1 = nir_src_as_const_value(instr->src[1].src); in sources_are_constants_with_similar_magnitudes()
Dnir.h315 } nir_const_value; typedef
323 static inline nir_const_value
326 nir_const_value v; in nir_const_value_for_raw_uint()
344 static inline nir_const_value
356 static inline nir_const_value
366 static inline nir_const_value
374 nir_const_value nir_const_value_for_float(double b, unsigned bit_size);
377 nir_const_value_as_int(nir_const_value value, unsigned bit_size) in nir_const_value_as_int()
394 nir_const_value_as_uint(nir_const_value value, unsigned bit_size) in nir_const_value_as_uint()
410 nir_const_value_as_bool(nir_const_value value, unsigned bit_size) in nir_const_value_as_bool()
[all …]
Dnir_instr_set.c348 nir_const_value_negative_equal(nir_const_value c1, in nir_const_value_negative_equal()
349 nir_const_value c2, in nir_const_value_negative_equal()
403 const nir_const_value *const const1 = in nir_alu_srcs_negative_equal_typed()
407 const nir_const_value *const const2 = in nir_alu_srcs_negative_equal_typed()
Dnir_lower_bool_to_int32.c189 nir_const_value *value = load->value; in nir_lower_bool_to_int32_instr()
Dnir.c733 gc_zalloc_zla(shader->gctx, nir_load_const_instr, nir_const_value, num_components); in nir_load_const_instr_create()
921 static nir_const_value
924 nir_const_value v; in const_value_float()
940 static nir_const_value
943 nir_const_value v; in const_value_int()
961 nir_const_value
1404 nir_const_value
1407 nir_const_value v; in nir_const_value_for_float()
1423 nir_const_value_as_float(nir_const_value value, unsigned bit_size) in nir_const_value_as_float()
1435 nir_const_value *
Dnir_lower_bool_to_float.c228 nir_const_value *value = load->value; in nir_lower_bool_to_float_instr()
/external/mesa3d/src/compiler/nir/tests/
Dnegative_equal_tests.cpp28 static void count_sequence(nir_const_value c[NIR_MAX_VEC_COMPONENTS],
30 static void negate(nir_const_value dst[NIR_MAX_VEC_COMPONENTS],
31 const nir_const_value src[NIR_MAX_VEC_COMPONENTS],
49 nir_const_value c1[NIR_MAX_VEC_COMPONENTS];
50 nir_const_value c2[NIR_MAX_VEC_COMPONENTS];
73 nir_const_value c1[NIR_MAX_VEC_COMPONENTS];
74 nir_const_value c2[NIR_MAX_VEC_COMPONENTS];
300 count_sequence(nir_const_value c[NIR_MAX_VEC_COMPONENTS], in count_sequence()
357 negate(nir_const_value dst[NIR_MAX_VEC_COMPONENTS], in negate()
358 const nir_const_value src[NIR_MAX_VEC_COMPONENTS], in negate()
Dformat_convert_tests.cpp237 const nir_const_value *packed = in TEST_P()
302 const nir_const_value *rgba = in TEST_P()
Dload_store_vectorizer_tests.cpp246 nir_const_value values[NIR_MAX_VEC_COMPONENTS]; in create_indirect_store()
310 nir_const_value values[NIR_MAX_VEC_COMPONENTS]; in create_shared_store()
729 nir_const_value *cv = nir_instr_as_load_const(val->parent_instr)->value; in TEST_F()
752 nir_const_value *cv = nir_instr_as_load_const(val->parent_instr)->value; in TEST_F()
1056 nir_const_value *cv = nir_instr_as_load_const(val->parent_instr)->value; in TEST_F()
1081 nir_const_value *cv = nir_instr_as_load_const(val->parent_instr)->value; in TEST_F()
1107 nir_const_value *cv = nir_instr_as_load_const(val->parent_instr)->value; in TEST_F()
1131 nir_const_value *cv = nir_instr_as_load_const(val->parent_instr)->value; in TEST_F()
1168 nir_const_value *cv = nir_instr_as_load_const(val->parent_instr)->value; in TEST_F()
1519 nir_const_value *cv = nir_instr_as_load_const(val->parent_instr)->value; in TEST_F()
/external/mesa3d/src/intel/compiler/elk/
Delk_fs_combine_constants.cpp56 nir_const_value value;
143 nir_const_value value;
206 void append_value(const nir_const_value &value, unsigned bit_size) in append_value()
231 negation_exists(nir_const_value v, unsigned bit_size, in negation_exists()
267 static nir_const_value
268 negate(nir_const_value v, unsigned bit_size, enum interpreted_type base_type) in negate()
273 nir_const_value ret = { 0, }; in negate()
309 static nir_const_value
310 absolute(nir_const_value v, unsigned bit_size, enum interpreted_type base_type) in absolute()
315 nir_const_value ret = { 0, }; in absolute()
[all …]
/external/mesa3d/src/intel/compiler/
Dbrw_opt_combine_constants.cpp48 nir_const_value value;
135 nir_const_value value;
194 void append_value(const nir_const_value &value, unsigned bit_size) in append_value()
219 negation_exists(nir_const_value v, unsigned bit_size, in negation_exists()
255 static nir_const_value
256 negate(nir_const_value v, unsigned bit_size, enum interpreted_type base_type) in negate()
261 nir_const_value ret = { 0, }; in negate()
297 static nir_const_value
298 absolute(nir_const_value v, unsigned bit_size, enum interpreted_type base_type) in absolute()
303 nir_const_value ret = { 0, }; in absolute()
[all …]
/external/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_compiler_nir.c229 #define CONST_VAL(a, b) (nir_const_value) {.u64 = (uint64_t)(a) << 32 | (uint64_t)(b)}
248 const_src(struct etna_compile *c, nir_const_value *value, unsigned num_components) in const_src()
387 nir_const_value values[] = { in get_src()
396 nir_const_value values[] = { in get_src()
415 nir_const_value value = CONST(0); in get_src()
800 static nir_const_value *get_alu_cv(nir_alu_src *src) in get_alu_cv()
802 nir_const_value *cv = nir_src_as_const_value(src->src); in get_alu_cv()
851 nir_const_value value[4] = {}; in lower_alu()
857 nir_const_value *cv = get_alu_cv(&alu->src[i]); in lower_alu()
884 nir_const_value *cv = get_alu_cv(&alu->src[i]); in lower_alu()
[all …]
/external/mesa3d/src/amd/vulkan/nir/
Dradv_nir_opt_tid_function.c133 constant_fold_scalar(nir_scalar s, unsigned invocation_id, nir_shader *shader, nir_const_value *des… in constant_fold_scalar()
142 nir_const_value sources[NIR_ALU_MAX_INPUTS][NIR_MAX_VEC_COMPONENTS]; in constant_fold_scalar()
172 nir_const_value *srcs[NIR_ALU_MAX_INPUTS]; in constant_fold_scalar()
175 nir_const_value dests[NIR_MAX_VEC_COMPONENTS]; in constant_fold_scalar()
236 nir_const_value value; in gather_read_invocation_shuffle()
281 nir_const_value value; in gather_invocation_uses()
500 nir_const_value value; in opt_fotid_bool()
/external/mesa3d/src/intel/vulkan/
Danv_nir_push_descriptor_analysis.c216 const nir_const_value *const_bt_id = in anv_nir_push_desc_ubo_fully_promoted()
229 const nir_const_value *const_load_offset = in anv_nir_push_desc_ubo_fully_promoted()
/external/mesa3d/src/compiler/spirv/
Dnir_spirv.h39 nir_const_value value;
/external/mesa3d/src/gallium/drivers/r600/sfn/
Dsfn_nir.h80 nir_const_value v[3] = { in r600_imm_ivec3()
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_nir_optim.c85 nir_const_value *c = nir_src_as_const_value(intrin->src[0]); in get_output_as_const_value()
/external/mesa3d/src/mesa/state_tracker/
Dst_nir_lower_tex_src_plane.c119 nir_const_value *plane = nir_src_as_const_value(tex->src[plane_index].src); in lower_tex_src_plane()

123