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()
339 ralloc_free(shader->constant_data); in nir_opt_constant_folding()
340 shader->constant_data = NULL; in nir_opt_constant_folding()
Dnir_sweep.c165 ralloc_steal(nir, nir->constant_data); in nir_sweep()
Dnir_clone.c768 ns->constant_data = ralloc_size(ns, s->constant_data_size); in nir_shader_clone()
769 memcpy(ns->constant_data, s->constant_data, s->constant_data_size); in nir_shader_clone()
Dnir_serialize.c2046 blob_write_bytes(blob, nir->constant_data, nir->constant_data_size); in nir_serialize()
2097 ctx.nir->constant_data = in nir_deserialize()
2099 blob_copy_bytes(blob, ctx.nir->constant_data, in nir_deserialize()
Dnir.h3834 void *constant_data; member
/third_party/mesa3d/src/amd/compiler/
Daco_print_asm.cpp276 if (program->constant_data.size()) { in print_asm_llvm()
278 for (unsigned i = 0; i < program->constant_data.size(); i += 32) { in print_asm_llvm()
280 unsigned line_size = std::min<size_t>(program->constant_data.size() - i, 32); in print_asm_llvm()
282 unsigned size = std::min<size_t>(program->constant_data.size() - (i + j), 4); in print_asm_llvm()
284 memcpy(&v, &program->constant_data[i + j], size); in print_asm_llvm()
Daco_instruction_selection_setup.cpp806 while (ctx->program->constant_data.size() % 4u) in init_context()
807 ctx->program->constant_data.push_back(0); in init_context()
808 ctx->constant_data_offset = ctx->program->constant_data.size(); in init_context()
809 ctx->program->constant_data.insert(ctx->program->constant_data.end(), in init_context()
810 (uint8_t*)shader->constant_data, in init_context()
811 (uint8_t*)shader->constant_data + shader->constant_data_size); in init_context()
Daco_print_ir.cpp861 if (program->constant_data.size()) { in aco_print_program()
863 for (unsigned i = 0; i < program->constant_data.size(); i += 32) { in aco_print_program()
865 unsigned line_size = std::min<size_t>(program->constant_data.size() - i, 32); in aco_print_program()
867 unsigned size = std::min<size_t>(program->constant_data.size() - (i + j), 4); in aco_print_program()
869 memcpy(&v, &program->constant_data[i + j], size); in aco_print_program()
Daco_assembler.cpp990 while (program->constant_data.size() % 4u) in emit_program()
991 program->constant_data.push_back(0); in emit_program()
993 code.insert(code.end(), (uint32_t*)program->constant_data.data(), in emit_program()
994 (uint32_t*)(program->constant_data.data() + program->constant_data.size())); in emit_program()
Daco_ir.h2054 std::vector<uint8_t> constant_data; variable
/third_party/mesa3d/src/gallium/frontends/clover/nir/
Dinvocation.cpp492 assert(nir->constant_data == NULL); in spirv_to_nir()
493 nir->constant_data = rzalloc_size(nir, nir->constant_data_size); in spirv_to_nir()
494 nir_gather_explicit_io_initializers(nir, nir->constant_data, in spirv_to_nir()
545 const char *ptr = reinterpret_cast<const char *>(nir->constant_data); in spirv_to_nir()
552 nir->constant_data = NULL; in spirv_to_nir()
/third_party/mesa3d/src/freedreno/ir3/
Dir3_nir_analyze_ubo_ranges.c601 v->constant_data = rzalloc_size(v, v->constant_data_size); in ir3_nir_lower_load_constant()
602 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.h491 void *constant_data; member
/third_party/mesa3d/src/intel/compiler/
Dbrw_vec4_tcs.cpp485 g.add_const_data(nir->constant_data, nir->constant_data_size); in brw_compile_tcs()
Dbrw_vec4_gs_visitor.cpp840 g.add_const_data(nir->constant_data, nir->constant_data_size); in brw_compile_gs()
Dbrw_shader.cpp1449 g.add_const_data(nir->constant_data, nir->constant_data_size); in brw_compile_tes()
Dbrw_fs.cpp9939 g.add_const_data(nir->constant_data, nir->constant_data_size); in brw_compile_fs()
10330 g.add_const_data(nir->constant_data, nir->constant_data_size); in brw_compile_cs()
10570 assert(memcmp(resume_shaders[i]->constant_data, in brw_compile_bs()
10571 shader->constant_data, in brw_compile_bs()
10575 g.add_const_data(shader->constant_data, shader->constant_data_size); in brw_compile_bs()
Dbrw_vec4_generator.cpp2306 brw_append_data(p, nir->constant_data, nir->constant_data_size, 32); in brw_vec4_generate_assembly()
Dbrw_vec4.cpp3014 g.add_const_data(nir->constant_data, nir->constant_data_size); in brw_compile_vs()
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_shader_nir.c908 if (!nir->constant_data) { in si_lower_nir()
/third_party/mesa3d/src/amd/llvm/
Dac_nir_to_llvm.c49 LLVMValueRef constant_data; member
4149 LLVMValueRef ptr = ac_build_gep0(&ctx->ac, ctx->constant_data, offset); in visit_intrinsic()
5301 if (!shader->constant_data) in setup_constant_data()
5304 LLVMValueRef data = LLVMConstStringInContext(ctx->ac.context, shader->constant_data, in setup_constant_data()
5313 ctx->constant_data = global; in setup_constant_data()
/third_party/mesa3d/src/intel/vulkan/
DgenX_cmd_buffer.c2628 struct anv_address constant_data = { in emit_binding_table() local
2641 constant_data, constant_data_size, 1); in emit_binding_table()
2645 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.