Home
last modified time | relevance | path

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

/third_party/mesa3d/src/compiler/nir/
Dnir_opt_large_constants.c42 void *constant_data; member
63 return memcmp(a->constant_data, b->constant_data, a_size); in var_info_cmp()
117 info->constant_data = rzalloc_size(mem_ctx, var_size); in handle_constant_store()
124 char *dst = (char *)info->constant_data + offset; in handle_constant_store()
330 shader->constant_data = rerzalloc_size(shader, shader->constant_data, in nir_opt_large_constants()
336 memcpy((char *)shader->constant_data + info->var->data.location, in nir_opt_large_constants()
337 info->constant_data, info->constant_data_size); in nir_opt_large_constants()
Dnir_opt_constant_folding.c250 uint8_t *data = (uint8_t*)b->shader->constant_data + base; in try_fold_intrinsic()
399 ralloc_free(shader->constant_data); in nir_opt_constant_folding()
400 shader->constant_data = NULL; in nir_opt_constant_folding()
Dnir_sweep.c165 ralloc_steal(nir, nir->constant_data); in nir_sweep()
Dnir_clone.c786 ns->constant_data = ralloc_size(ns, s->constant_data_size); in nir_shader_clone()
787 memcpy(ns->constant_data, s->constant_data, s->constant_data_size); in nir_shader_clone()
Dnir_serialize.c2144 blob_write_bytes(blob, nir->constant_data, nir->constant_data_size); in nir_serialize()
2197 ctx.nir->constant_data = in nir_deserialize()
2199 blob_copy_bytes(blob, ctx.nir->constant_data, in nir_deserialize()
Dnir.h3730 void *constant_data; member
/third_party/mesa3d/src/amd/compiler/
Daco_print_asm.cpp82 if (program->constant_data.empty()) in print_constant_data()
86 for (unsigned i = 0; i < program->constant_data.size(); i += 32) { in print_constant_data()
88 unsigned line_size = std::min<size_t>(program->constant_data.size() - i, 32); in print_constant_data()
90 unsigned size = std::min<size_t>(program->constant_data.size() - (i + j), 4); in print_constant_data()
92 memcpy(&v, &program->constant_data[i + j], size); in print_constant_data()
Daco_instruction_selection_setup.cpp810 while (ctx->program->constant_data.size() % 4u) in init_context()
811 ctx->program->constant_data.push_back(0); in init_context()
812 ctx->constant_data_offset = ctx->program->constant_data.size(); in init_context()
813 ctx->program->constant_data.insert(ctx->program->constant_data.end(), in init_context()
814 (uint8_t*)shader->constant_data, in init_context()
815 (uint8_t*)shader->constant_data + shader->constant_data_size); in init_context()
Daco_print_ir.cpp886 if (program->constant_data.size()) { in aco_print_program()
888 for (unsigned i = 0; i < program->constant_data.size(); i += 32) { in aco_print_program()
890 unsigned line_size = std::min<size_t>(program->constant_data.size() - i, 32); in aco_print_program()
892 unsigned size = std::min<size_t>(program->constant_data.size() - (i + j), 4); in aco_print_program()
894 memcpy(&v, &program->constant_data[i + j], size); in aco_print_program()
Daco_assembler.cpp1019 while (program->constant_data.size() % 4u) in emit_program()
1020 program->constant_data.push_back(0); in emit_program()
1022 code.insert(code.end(), (uint32_t*)program->constant_data.data(), in emit_program()
1023 (uint32_t*)(program->constant_data.data() + program->constant_data.size())); in emit_program()
Daco_ir.h2099 std::vector<uint8_t> constant_data; variable
/third_party/mesa3d/src/gallium/frontends/clover/nir/
Dinvocation.cpp523 assert(nir->constant_data == NULL); in spirv_to_nir()
524 nir->constant_data = rzalloc_size(nir, nir->constant_data_size); in spirv_to_nir()
525 nir_gather_explicit_io_initializers(nir, nir->constant_data, in spirv_to_nir()
577 const char *ptr = reinterpret_cast<const char *>(nir->constant_data); in spirv_to_nir()
584 nir->constant_data = NULL; in spirv_to_nir()
/third_party/mesa3d/src/intel/compiler/
Dbrw_kernel.c405 assert(nir->constant_data == NULL); in brw_kernel_from_spirv()
406 nir->constant_data = rzalloc_size(nir, nir->constant_data_size); in brw_kernel_from_spirv()
407 nir_gather_explicit_io_initializers(nir, nir->constant_data, in brw_kernel_from_spirv()
Dbrw_vec4_tcs.cpp479 g.add_const_data(nir->constant_data, nir->constant_data_size); in brw_compile_tcs()
Dbrw_vec4_gs_visitor.cpp839 g.add_const_data(nir->constant_data, nir->constant_data_size); in brw_compile_gs()
Dbrw_shader.cpp1441 g.add_const_data(nir->constant_data, nir->constant_data_size); in brw_compile_tes()
Dbrw_fs.cpp7628 g.add_const_data(nir->constant_data, nir->constant_data_size); in brw_compile_fs()
7880 g.add_const_data(nir->constant_data, nir->constant_data_size); in brw_compile_cs()
8093 assert(memcmp(resume_shaders[i]->constant_data, in brw_compile_bs()
8094 shader->constant_data, in brw_compile_bs()
8098 g.add_const_data(shader->constant_data, shader->constant_data_size); in brw_compile_bs()
Dbrw_vec4_generator.cpp2291 brw_append_data(p, nir->constant_data, nir->constant_data_size, 32); in brw_vec4_generate_assembly()
Dbrw_vec4.cpp2661 g.add_const_data(nir->constant_data, nir->constant_data_size); in brw_compile_vs()
/third_party/mesa3d/src/freedreno/ir3/
Dir3_nir_analyze_ubo_ranges.c661 v->constant_data = rzalloc_size(v, v->constant_data_size); in ir3_nir_lower_load_constant()
662 memcpy(v->constant_data, nir->constant_data, nir->constant_data_size); in ir3_nir_lower_load_constant()
Dir3_shader.c160 memcpy(&bin[info->constant_data_offset / 4], v->constant_data, in ir3_shader_assemble()
162 ralloc_free(v->constant_data); in ir3_shader_assemble()
163 v->constant_data = NULL; in ir3_shader_assemble()
Dir3_shader.h525 void *constant_data; member
/third_party/mesa3d/src/amd/llvm/
Dac_nir_to_llvm.c49 LLVMValueRef constant_data; member
4175 LLVMValueRef ptr = ac_build_gep0(&ctx->ac, ctx->constant_data, offset); in visit_intrinsic()
5414 if (!shader->constant_data) in setup_constant_data()
5417 LLVMValueRef data = LLVMConstStringInContext(ctx->ac.context, shader->constant_data, in setup_constant_data()
5426 ctx->constant_data = global; in setup_constant_data()
/third_party/mesa3d/src/intel/vulkan/
DgenX_cmd_buffer.c2621 struct anv_address constant_data = { in emit_binding_table() local
2634 constant_data, constant_data_size, 1); in emit_binding_table()
2638 add_surface_reloc(cmd_buffer, surface_state, constant_data); in emit_binding_table()
/third_party/mesa3d/docs/relnotes/
D20.2.0.rst1857 - nir: Add a little more docs about NIR's constant_data.