Home
last modified time | relevance | path

Searched refs:nir_constant (Results 1 – 16 of 16) sorted by relevance

/third_party/mesa3d/src/compiler/nir/
Dnir_lower_const_arrays_to_uniforms.c55 set_const_initialiser(nir_deref_instr **p, nir_constant *top_level_init, in set_const_initialiser()
60 nir_constant *ret = top_level_init; in set_const_initialiser()
97 static nir_constant *
100 nir_constant *ret = rzalloc(mem_ctx, nir_constant); in rebuild_const_array_initialiser()
104 ret->elements = ralloc_array(mem_ctx, nir_constant *, ret->num_elements); in rebuild_const_array_initialiser()
107 ret->elements[i] = rzalloc(mem_ctx, nir_constant); in rebuild_const_array_initialiser()
115 ret->elements = ralloc_array(mem_ctx, nir_constant *, ret->num_elements); in rebuild_const_array_initialiser()
169 nir_constant *const_init = rebuild_const_array_initialiser(var->type, uni); in lower_const_array_to_uniform()
Dnir_clone.c133 nir_constant *
134 nir_constant_clone(const nir_constant *c, nir_variable *nvar) in nir_constant_clone()
136 nir_constant *nc = ralloc(nvar, nir_constant); in nir_constant_clone()
140 nc->elements = ralloc_array(nvar, nir_constant *, c->num_elements); in nir_constant_clone()
Dnir_lower_variable_initializers.c28 build_constant_load(nir_builder *b, nir_deref_instr *deref, nir_constant *c) in build_constant_load()
Dnir_opt_constant_folding.c129 nir_constant *c = var->constant_initializer; in const_value_for_deref()
Dnir_serialize.c177 write_constant(write_ctx *ctx, const nir_constant *c) in write_constant()
185 static nir_constant *
188 nir_constant *c = ralloc(nvar, nir_constant); in read_constant()
192 c->elements = ralloc_array(nvar, nir_constant *, c->num_elements); in read_constant()
Dnir.h354 typedef struct nir_constant { struct
370 struct nir_constant **elements; argument
371 } nir_constant; typedef
745 nir_constant *constant_initializer;
4333 nir_constant *nir_constant_clone(const nir_constant *c, nir_variable *var);
Dnir_print.c409 print_constant(nir_constant *c, const struct glsl_type *type, print_state *state) in print_constant()
Dnir_validate.c1471 validate_constant(nir_constant *c, const struct glsl_type *type, in validate_constant()
Dnir_lower_io.c2540 const nir_constant *c, const struct glsl_type *type) in write_constant()
/third_party/mesa3d/src/compiler/glsl/
Dgl_nir_link_uniform_initializers.c114 const nir_constant *val, in copy_constant_to_storage()
190 const nir_constant *val) in set_uniform_initializer()
Dglsl_to_nir.cpp108 nir_constant *constant_copy(ir_constant *ir, void *mem_ctx);
316 nir_constant *
322 nir_constant *ret = rzalloc(mem_ctx, nir_constant); in constant_copy()
368 ret->elements = ralloc_array(mem_ctx, nir_constant *, cols); in constant_copy()
371 nir_constant *col_const = rzalloc(mem_ctx, nir_constant); in constant_copy()
444 ret->elements = ralloc_array(mem_ctx, nir_constant *, in constant_copy()
/third_party/mesa3d/src/compiler/spirv/
Dvtn_private.h620 nir_constant *constant;
761 vtn_const_ssa_value(struct vtn_builder *b, nir_constant *constant,
Dspirv_to_nir.c229 vtn_const_ssa_value(struct vtn_builder *b, nir_constant *constant, in vtn_const_ssa_value()
1870 static nir_constant *
1873 nir_constant *c = rzalloc(b, nir_constant); in vtn_null_constant()
1905 c->elements = ralloc_array(b, nir_constant *, c->num_elements); in vtn_null_constant()
1914 c->elements = ralloc_array(b, nir_constant *, c->num_elements); in vtn_null_constant()
1965 val->constant = rzalloc(b, nir_constant); in vtn_handle_constant()
2024 nir_constant **elems = ralloc_array(b, nir_constant *, elem_count); in vtn_handle_constant()
2124 struct nir_constant **c; in vtn_handle_constant()
Dvtn_opencl.c747 nir_constant *c = deref->var->constant_initializer; in vtn_add_printf_string()
/third_party/mesa3d/src/microsoft/clc/
Dclc_compiler.c506 copy_const_initializer(const nir_constant *constant, const struct glsl_type *type, in copy_const_initializer()
/third_party/mesa3d/src/microsoft/compiler/
Dnir_to_dxil.c1090 const struct nir_constant *c, in var_fill_const_array_with_vector_or_scalar()
1126 var_fill_const_array(struct ntd_context *ctx, const struct nir_constant *c, in var_fill_const_array()