/external/mesa3d/src/gallium/drivers/r300/compiler/ |
D | radeon_remove_constants.c | 14 struct const_remap *remap_table; member 79 s->remap_table[count].index[chan] = i; in place_constant_in_free_slot() 80 s->remap_table[count].swizzle[chan] = chan; in place_constant_in_free_slot() 120 if (s->remap_table[j].swizzle[chan] == RC_SWIZZLE_UNUSED) { in try_merge_constants_external() 127 s->remap_table[j].index[chan] = i; in try_merge_constants_external() 128 s->remap_table[j].swizzle[chan] = swizzle; in try_merge_constants_external() 150 s->remap_table = malloc(c->Program.Constants.Count * sizeof(struct const_remap)); in init_constant_remap_state() 156 s->remap_table[i].index[swz] = -1; in init_constant_remap_state() 157 s->remap_table[i].swizzle[swz] = RC_SWIZZLE_UNUSED; in init_constant_remap_state() 271 *out_remap_table = s->remap_table; in rc_remove_unused_constants() [all …]
|
/external/mesa3d/src/compiler/nir/ |
D | nir_opt_loop_unroll.c | 167 struct hash_table *remap_table = _mesa_pointer_hash_table_create(NULL); in simple_unroll() local 172 remap_table); in simple_unroll() 178 remap_table); in simple_unroll() 183 remap_table); in simple_unroll() 198 remap_table); in simple_unroll() 208 _mesa_hash_table_destroy(remap_table, NULL); in simple_unroll() 239 struct hash_table *remap_table, in complex_unroll_loop_body() argument 269 cursor, remap_table); in complex_unroll_loop_body() 277 remap_table); in complex_unroll_loop_body() 417 struct hash_table *remap_table = _mesa_pointer_hash_table_create(NULL); in complex_unroll() local [all …]
|
D | nir_clone.c | 47 struct hash_table *remap_table; member 57 init_clone_state(clone_state *state, struct hash_table *remap_table, in init_clone_state() argument 63 if (remap_table) { in init_clone_state() 64 state->remap_table = remap_table; in init_clone_state() 66 state->remap_table = _mesa_pointer_hash_table_create(NULL); in init_clone_state() 75 _mesa_hash_table_destroy(state->remap_table, NULL); in free_clone_state() 89 if (unlikely(!state->remap_table)) { in _lookup_ptr() 94 entry = _mesa_hash_table_search(state->remap_table, ptr); in _lookup_ptr() 106 _mesa_hash_table_insert(state->remap_table, ptr, nptr); in add_remap() 217 if (likely(state->remap_table)) in __clone_def() [all …]
|
D | nir_opt_preamble.c | 463 struct hash_table *remap_table, nir_block *block) in replace_for_block() argument 512 then_def = _mesa_hash_table_search(remap_table, then_def)->data; in replace_for_block() 513 else_def = _mesa_hash_table_search(remap_table, else_def)->data; in replace_for_block() 521 _mesa_hash_table_insert(remap_table, &phi->def, repl); in replace_for_block() 523 clone = nir_instr_clone_deep(b->shader, instr, remap_table); in replace_for_block() 555 struct hash_table *remap_table, struct exec_list *list) in replace_for_cf_list() argument 560 replace_for_block(b, ctx, remap_table, nir_cf_node_as_block(node)); in replace_for_cf_list() 572 _mesa_hash_table_search(remap_table, nif->condition.ssa); in replace_for_cf_list() 580 replace_for_cf_list(b, ctx, remap_table, &nif->then_list); in replace_for_cf_list() 583 replace_for_cf_list(b, ctx, remap_table, &nif->else_list); in replace_for_cf_list() [all …]
|
D | nir_control_flow.h | 146 struct hash_table *remap_table); 151 struct hash_table *remap_table) in nir_cf_list_clone_and_reinsert() argument 154 nir_cf_list_clone(&list, src_list, parent, remap_table); in nir_cf_list_clone_and_reinsert()
|
D | nir_lower_shader_calls.c | 313 remat_ssa_def(nir_builder *b, nir_def *def, struct hash_table *remap_table) in remat_ssa_def() argument 315 nir_instr *clone = nir_instr_clone_deep(b->shader, def->parent_instr, remap_table); in remat_ssa_def() 323 unsigned call_idx, struct hash_table *remap_table) in remat_chain_ssa_def() argument 336 nir_def *clone_ssa_def = remat_ssa_def(b, instr_ssa_def, remap_table); in remat_chain_ssa_def() 349 _mesa_hash_table_insert(remap_table, instr_ssa_def, last_def); in remat_chain_ssa_def() 578 struct hash_table *remap_table = in spill_ssa_defs_and_lower_shader_calls() local 622 new_def = remat_ssa_def(&after, def, remap_table); in spill_ssa_defs_and_lower_shader_calls() 626 remap_table); in spill_ssa_defs_and_lower_shader_calls() 660 _mesa_hash_table_insert(remap_table, original_def, new_def); in spill_ssa_defs_and_lower_shader_calls()
|
D | nir_opt_loop.c | 432 struct hash_table *remap_table = _mesa_pointer_hash_table_create(NULL); in opt_loop_peel_initial_break() local 433 nir_cf_list_clone_and_reinsert(&tmp, &loop->cf_node, nir_after_block(cont_block), remap_table); in opt_loop_peel_initial_break() 434 _mesa_hash_table_destroy(remap_table, NULL); in opt_loop_peel_initial_break()
|
D | nir_serialize.c | 45 struct hash_table *remap_table; member 97 _mesa_hash_table_insert(ctx->remap_table, obj, (void *)(uintptr_t)index); in write_add_object() 103 struct hash_entry *entry = _mesa_hash_table_search(ctx->remap_table, obj); in write_lookup_object() 2104 ctx.remap_table = _mesa_pointer_hash_table_create(NULL); in nir_serialize() 2153 _mesa_hash_table_destroy(ctx.remap_table, NULL); in nir_serialize()
|
/external/mesa3d/src/intel/compiler/ |
D | brw_opt_virtual_grfs.cpp | 227 int *remap_table = new int[s.alloc.count]; in brw_opt_compact_virtual_grfs() local 228 memset(remap_table, -1, s.alloc.count * sizeof(int)); in brw_opt_compact_virtual_grfs() 233 remap_table[inst->dst.nr] = 0; in brw_opt_compact_virtual_grfs() 237 remap_table[inst->src[i].nr] = 0; in brw_opt_compact_virtual_grfs() 244 if (remap_table[i] == -1) { in brw_opt_compact_virtual_grfs() 250 remap_table[i] = new_index; in brw_opt_compact_virtual_grfs() 262 inst->dst.nr = remap_table[inst->dst.nr]; in brw_opt_compact_virtual_grfs() 266 inst->src[i].nr = remap_table[inst->src[i].nr]; in brw_opt_compact_virtual_grfs() 276 if (remap_table[s.delta_xy[i].nr] != -1) { in brw_opt_compact_virtual_grfs() 277 s.delta_xy[i].nr = remap_table[s.delta_xy[i].nr]; in brw_opt_compact_virtual_grfs() [all …]
|
D | brw_opt_cse.cpp | 361 fs_inst *inst, unsigned *remap_table) in remap_sources() argument 366 remap_table[inst->src[i].nr] != ~0u) { in remap_sources() 368 unsigned new_nr = remap_table[old_nr]; in remap_sources() 392 remap_table[old_nr] = tmp.nr; in remap_sources() 411 unsigned *remap_table = new unsigned[defs.count()]; in brw_opt_cse_defs() local 412 memset(remap_table, ~0u, defs.count() * sizeof(int)); in brw_opt_cse_defs() 421 remap_sources(s, defs, inst, remap_table); in brw_opt_cse_defs() 495 remap_table[inst->dst.nr] = in brw_opt_cse_defs() 504 delete [] remap_table; in brw_opt_cse_defs()
|
/external/mesa3d/src/mapi/glapi/gen/ |
D | gl_table.py | 139 remap_table = "driDispatchRemapTable" 141 print('#define %s_size %u' % (remap_table, count)) 142 print('extern int %s[ %s_size ];' % (remap_table, remap_table)) 151 print('#define _gloffset_%s %s[%s_remap_index]' % (f.name, remap_table, f.name))
|
/external/mesa3d/src/compiler/glsl/ |
D | gl_nir_lower_samplers_as_deref.c | 69 struct hash_table *remap_table; member 158 nir_deref_path_init(&path, deref, state->remap_table); in lower_deref() 161 char *name = ralloc_asprintf(state->remap_table, "lower@%s", var->name); in lower_deref() 199 _mesa_hash_table_search_pre_hashed(state->remap_table, hash, name); in lower_deref() 214 _mesa_hash_table_insert_pre_hashed(state->remap_table, hash, name, var); in lower_deref() 360 state.remap_table = _mesa_hash_table_create(NULL, _mesa_hash_string, in gl_nir_lower_samplers_as_deref() 377 hash_table_foreach(state.remap_table, entry) { in gl_nir_lower_samplers_as_deref() 392 _mesa_hash_table_destroy(state.remap_table, NULL); in gl_nir_lower_samplers_as_deref()
|
D | gl_nir_link_functions.c | 321 clone_function(struct hash_table *remap_table, in clone_function() argument 326 _mesa_hash_table_insert(remap_table, fxn, nfxn); in clone_function() 341 struct hash_table *remap_table = _mesa_pointer_hash_table_create(mem_ctx); in gl_nir_link_function_calls() local 390 _mesa_hash_table_insert(remap_table, var, e->data); in gl_nir_link_function_calls() 427 _mesa_hash_table_insert(remap_table, var, nvar); in gl_nir_link_function_calls() 450 f = clone_function(remap_table, func, linked_sh->Program->nir); in gl_nir_link_function_calls() 455 _mesa_hash_table_insert(remap_table, func, f); in gl_nir_link_function_calls() 462 f = clone_function(remap_table, func, linked_sh->Program->nir); in gl_nir_link_function_calls() 480 func->impl, remap_table); in gl_nir_link_function_calls() 483 _mesa_hash_table_search(remap_table, func); in gl_nir_link_function_calls()
|
D | serialize.cpp | 580 gl_uniform_storage **remap_table) in write_uniform_remap_table() argument 585 gl_uniform_storage *entry = remap_table[i]; in write_uniform_remap_table() 592 } else if (i+1 < num_entries && entry == remap_table[i+1]) { in write_uniform_remap_table() 600 if (entry != remap_table[j]) in write_uniform_remap_table() 645 struct gl_uniform_storage **remap_table = in read_uniform_remap_table() local 653 remap_table[i] = INACTIVE_UNIFORM_EXPLICIT_LOCATION; in read_uniform_remap_table() 655 remap_table[i] = NULL; in read_uniform_remap_table() 662 remap_table[i+j] = entry; in read_uniform_remap_table() 666 remap_table[i] = uniform_storage + uni_offset; in read_uniform_remap_table() 669 return remap_table; in read_uniform_remap_table()
|
/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_shader.c | 99 int8_t remap_table[MAX_GENERIC_VARYING]) in svga_remap_generics() 105 remap_table[i] = -1; in svga_remap_generics() 111 remap_table[index] = count++; in svga_remap_generics() 129 svga_remap_generic_index(int8_t remap_table[MAX_GENERIC_VARYING], in svga_remap_generic_index() 139 if (remap_table[generic_index] == -1) { in svga_remap_generic_index() 145 max = MAX2(max, remap_table[i]); in svga_remap_generic_index() 147 remap_table[generic_index] = max + 1; in svga_remap_generic_index() 150 return remap_table[generic_index]; in svga_remap_generic_index()
|
D | svga_shader.h | 457 int8_t remap_table[MAX_GENERIC_VARYING]); 460 svga_remap_generic_index(int8_t remap_table[MAX_GENERIC_VARYING],
|
/external/mesa3d/src/gallium/drivers/r300/ |
D | r300_emit.c | 213 if (buf->remap_table){ in r300_emit_fs_constants() 216 unsigned swz = buf->remap_table[i].swizzle[j]; in r300_emit_fs_constants() 217 unsigned index = buf->remap_table[i].index[j]; in r300_emit_fs_constants() 284 if (buf->remap_table){ in r500_emit_fs_constants() 288 if (buf->remap_table[i].swizzle[chan] != RC_SWIZZLE_UNUSED) in r500_emit_fs_constants() 289 … data[chan] = buf->ptr[buf->remap_table[i].index[chan] * 4 + buf->remap_table[i].swizzle[chan]]; in r500_emit_fs_constants() 1174 if (buf->remap_table){ in r300_emit_vs_constants() 1179 constant[chan] = data[buf->remap_table[i].index[chan] * 4 + in r300_emit_vs_constants() 1180 buf->remap_table[i].swizzle[chan]]; in r300_emit_vs_constants()
|
D | r300_context.h | 257 struct const_remap *remap_table; member
|
D | r300_state.c | 1077 ((struct r300_constant_buffer*)r300->fs_constants.state)->remap_table = in r300_mark_fs_code_dirty() 1971 ((struct r300_constant_buffer*)r300->vs_constants.state)->remap_table = in r300_bind_vs_state()
|
/external/mesa3d/src/mesa/main/ |
D | meson.build | 8 command : [prog_python, '@INPUT0@', '-f', '@INPUT1@', '-m', 'remap_table'],
|
/external/mesa3d/src/gallium/drivers/zink/ |
D | zink_lower_cubemap_to_array.c | 290 const struct cube_remap_table* remap_table = remap_tables[i]; in handle_cube_edge() local 296 x_result = nir_bcsel(b, predicate, remap_array[remap_table[j].remap_x], x_result); in handle_cube_edge() 297 y_result = nir_bcsel(b, predicate, remap_array[remap_table[j].remap_y], y_result); in handle_cube_edge() 298 face_result = nir_bcsel(b, predicate, remap_array[remap_table[j].remap_face], face_result); in handle_cube_edge()
|
/external/mesa3d/src/microsoft/compiler/ |
D | dxil_nir_lower_int_cubemaps.c | 300 const struct cube_remap_table* remap_table = remap_tables[i]; in handle_cube_edge() local 306 x_result = nir_bcsel(b, predicate, remap_array[remap_table[j].remap_x], x_result); in handle_cube_edge() 307 y_result = nir_bcsel(b, predicate, remap_array[remap_table[j].remap_y], y_result); in handle_cube_edge() 308 face_result = nir_bcsel(b, predicate, remap_array[remap_table[j].remap_face], face_result); in handle_cube_edge()
|
/external/mesa3d/src/compiler/spirv/ |
D | vtn_opencl.c | 289 } remap_table[] = { variable 381 if (opcode >= (sizeof(remap_table) / sizeof(const char *))) in remap_clc_opcode() 383 return remap_table[opcode].fn; in remap_clc_opcode()
|
/external/mesa3d/src/intel/compiler/elk/ |
D | elk_fs.cpp | 1887 int *remap_table = new int[this->alloc.count]; in compact_virtual_grfs() local 1888 memset(remap_table, -1, this->alloc.count * sizeof(int)); in compact_virtual_grfs() 1893 remap_table[inst->dst.nr] = 0; in compact_virtual_grfs() 1897 remap_table[inst->src[i].nr] = 0; in compact_virtual_grfs() 1904 if (remap_table[i] == -1) { in compact_virtual_grfs() 1910 remap_table[i] = new_index; in compact_virtual_grfs() 1922 inst->dst.nr = remap_table[inst->dst.nr]; in compact_virtual_grfs() 1926 inst->src[i].nr = remap_table[inst->src[i].nr]; in compact_virtual_grfs() 1936 if (remap_table[delta_xy[i].nr] != -1) { in compact_virtual_grfs() 1937 delta_xy[i].nr = remap_table[delta_xy[i].nr]; in compact_virtual_grfs() [all …]
|
/external/pytorch/torch/export/ |
D | _trace.py | 391 remap_table: Dict[str, List[str]] = {} 394 remap_table[name] = orig_constant_attrs[value] 403 targets = remap_table.get(orig_target, [orig_target])
|