Home
last modified time | relevance | path

Searched refs:const_offset (Results 1 – 23 of 23) sorted by relevance

/external/mesa3d/src/freedreno/ir3/
Dir3_nir_analyze_ubo_ranges.c295 int const_offset = 0; in lower_ubo_load_to_uniform() local
297 handle_partial_const(b, &ubo_offset, &const_offset); in lower_ubo_load_to_uniform()
315 debug_assert(!(const_offset & 0x3)); in lower_ubo_load_to_uniform()
316 const_offset >>= 2; in lower_ubo_load_to_uniform()
319 const_offset += range_offset; in lower_ubo_load_to_uniform()
327 if (const_offset < 0) { in lower_ubo_load_to_uniform()
328 uniform_offset = nir_iadd_imm(b, uniform_offset, const_offset); in lower_ubo_load_to_uniform()
329 const_offset = 0; in lower_ubo_load_to_uniform()
336 nir_intrinsic_set_base(uniform, const_offset); in lower_ubo_load_to_uniform()
/external/mesa3d/src/compiler/glsl/
Dlower_ubo_reference.cpp66 unsigned *const_offset,
278 unsigned *const_offset, in setup_for_load_or_store() argument
317 *const_offset = 0; in setup_for_load_or_store()
319 *const_offset = blocks[i]->Uniforms[var->data.location].Offset; in setup_for_load_or_store()
329 setup_buffer_access(mem_ctx, deref, offset, const_offset, row_major, in setup_for_load_or_store()
350 unsigned const_offset; in handle_rvalue() local
367 &offset, &const_offset, in handle_rvalue()
388 emit_access(mem_ctx, false, deref, load_offset, const_offset, in handle_rvalue()
566 unsigned const_offset; in write_to_memory() local
581 &offset, &const_offset, in write_to_memory()
[all …]
Dlower_shared_reference.cpp141 unsigned const_offset = get_shared_offset(var); in handle_rvalue() local
148 &offset, &const_offset, in handle_rvalue()
168 emit_access(mem_ctx, false, deref, load_offset, const_offset, row_major, in handle_rvalue()
209 unsigned const_offset = get_shared_offset(var); in handle_assignment() local
216 &offset, &const_offset, in handle_assignment()
228 emit_access(mem_ctx, true, deref, store_offset, const_offset, row_major, in handle_assignment()
369 unsigned const_offset = get_shared_offset(var); in lower_shared_atomic_intrinsic() local
377 &offset, &const_offset, in lower_shared_atomic_intrinsic()
385 add(offset, new(mem_ctx) ir_constant(const_offset)); in lower_shared_atomic_intrinsic()
Dlower_buffer_access.cpp276 unsigned *const_offset, in setup_buffer_access() argument
359 *const_offset += array_stride * const_index->value.u[0]; in setup_buffer_access()
424 *const_offset += intra_struct_offset; in setup_buffer_access()
434 *const_offset += deref_swizzle->mask.x * sizeof(int); in setup_buffer_access()
Dlower_buffer_access.h58 ir_rvalue **offset, unsigned *const_offset,
/external/mesa3d/src/gallium/drivers/r600/sfn/
Dsfn_emitssboinstruction.cpp582 auto const_offset = nir_src_as_const_value(intrin->src[0]); in emit_image_size() local
585 if (const_offset) in emit_image_size()
586 res_id += const_offset[0].u32; in emit_image_size()
603 unsigned lookup_resid = const_offset[0].u32; in emit_image_size()
625 auto const_offset = nir_src_as_const_value(intr->src[0]); in emit_buffer_size() local
628 if (const_offset) in emit_buffer_size()
629 res_id += const_offset[0].u32; in emit_buffer_size()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dgen6_constant_state.c257 uint32_t const_offset; in brw_upload_pull_constants() local
259 &const_bo, &const_offset); in brw_upload_pull_constants()
276 const_bo, const_offset, in brw_upload_pull_constants()
/external/mesa3d/src/intel/compiler/
Dbrw_nir_lower_mem_access_bit_sizes.c182 const unsigned const_offset = in lower_mem_store_bit_size() local
209 (offset_is_const && (start + const_offset) % 4 == 0); in lower_mem_store_bit_size()
Dbrw_fs.h120 uint32_t const_offset,
Dbrw_fs_nir.cpp3628 nir_const_value *const_offset = nir_src_as_const_value(instr->src[0]); in nir_emit_fs_intrinsic() local
3630 if (const_offset) { in nir_emit_fs_intrinsic()
3632 unsigned off_x = MIN2((int)(const_offset[0].f32 * 16), 7) & 0xf; in nir_emit_fs_intrinsic()
3633 unsigned off_y = MIN2((int)(const_offset[1].f32 * 16), 7) & 0xf; in nir_emit_fs_intrinsic()
Dbrw_fs.cpp169 uint32_t const_offset, in VARYING_PULL_CONSTANT_LOAD() argument
184 bld.ADD(vec4_offset, varying_offset, brw_imm_ud(const_offset & ~0xf)); in VARYING_PULL_CONSTANT_LOAD()
199 (const_offset & 0xf) / type_sz(dst.type), 1); in VARYING_PULL_CONSTANT_LOAD()
/external/mesa3d/src/broadcom/compiler/
Dnir_to_vir.c256 uint32_t const_offset = 0; in ntq_emit_tmu_general() local
258 const_offset = nir_src_as_uint(instr->src[offset_src]); in ntq_emit_tmu_general()
262 const_offset += nir_intrinsic_base(instr); in ntq_emit_tmu_general()
264 v3d_unit_data_create(0, const_offset)); in ntq_emit_tmu_general()
265 const_offset = 0; in ntq_emit_tmu_general()
276 v3d_unit_data_create(index, const_offset)); in ntq_emit_tmu_general()
277 const_offset = 0; in ntq_emit_tmu_general()
288 const_offset += nir_intrinsic_base(instr); in ntq_emit_tmu_general()
298 uint32_t base_const_offset = const_offset; in ntq_emit_tmu_general()
330 const_offset = base_const_offset + first_component * 4; in ntq_emit_tmu_general()
[all …]
/external/mesa3d/src/amd/compiler/
Daco_instruction_selection.cpp2827 nir_const_value* const_offset = nir_src_as_const_value(instr->src[1].src); in visit_alu_instr() local
2829 if (const_offset && const_bits) { in visit_alu_instr()
2830 uint32_t extract = (const_bits->u32 << 16) | (const_offset->u32 & 0x1f); in visit_alu_instr()
2845 Operand offset_op = const_offset ? Operand(const_offset->u32 & 0x1fu) : in visit_alu_instr()
3018 unsigned const_offset = 0; member
3032 unsigned align, unsigned const_offset,
3050 unsigned const_offset = info.const_offset; in emit_load() local
3053 unsigned align_offset = (info.align_offset + const_offset) % align_mul; in emit_load()
3091 unsigned reduced_const_offset = const_offset; in emit_load()
3093 if (const_offset && in emit_load()
[all …]
/external/rust/crates/memoffset/src/
Doffset_of.rs245 fn const_offset() { in const_offset() function
/external/llvm-project/lldb/source/Expression/
DDWARFExpression.cpp538 lldb::offset_t const_offset = 0; in LinkThreadLocalStorage() local
549 const_offset = offset; in LinkThreadLocalStorage()
558 const_offset = offset; in LinkThreadLocalStorage()
581 if (encoder.PutUnsigned(const_offset, const_byte_size, in LinkThreadLocalStorage()
588 const_offset = 0; in LinkThreadLocalStorage()
/external/mesa3d/src/gallium/drivers/freedreno/a2xx/
Dir2_nir.c591 nir_const_value *const_offset; in emit_intrinsic() local
602 const_offset = nir_src_as_const_value(intr->src[0]); in emit_intrinsic()
603 assert(const_offset); /* TODO can be false in ES2? */ in emit_intrinsic()
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_nir.c1028 uint32_t const_offset = 0; in get_deref_offset() local
1033 const_offset = nir_src_as_uint(instr->arr.index); in get_deref_offset()
1044 const_offset += glsl_count_attribute_slots(ft, vs_in); in get_deref_offset()
1049 const_offset += nir_src_comp_as_int(path.path[idx_lvl]->arr.index, 0) * size; in get_deref_offset()
1067 if (const_offset && offset) in get_deref_offset()
1069 … lp_build_const_int_vec(bld_base->base.gallivm, bld_base->uint_bld.type, const_offset), in get_deref_offset()
1071 *const_out = const_offset; in get_deref_offset()
/external/mesa3d/src/mesa/state_tracker/
Dst_glsl_to_tgsi.cpp2026 unsigned const_offset = const_offset_ir ? in visit_expression() local
2046 cbuf.index = const_offset / 16; in visit_expression()
2069 const_offset = const_offset_ir->value.u[0]; in visit_expression()
2070 cbuf.index = const_offset / 16; in visit_expression()
2095 cbuf.swizzle += MAKE_SWIZZLE4(const_offset % 16 / 8, in visit_expression()
2096 const_offset % 16 / 8, in visit_expression()
2097 const_offset % 16 / 8, in visit_expression()
2098 const_offset % 16 / 8); in visit_expression()
2100 cbuf.swizzle += MAKE_SWIZZLE4(const_offset % 16 / 4, in visit_expression()
2101 const_offset % 16 / 4, in visit_expression()
[all …]
/external/mesa3d/src/panfrost/bifrost/
Dbifrost_compile.c433 uint32_t const_offset = 0; in bi_emit_ld_ubo() local
436 const_offset = nir_src_as_uint(instr->src[1]); in bi_emit_ld_ubo()
442 const_offset += 16 * ctx->sysvals.sysval_count; in bi_emit_ld_ubo()
470 ld.constant.u64 |= const_offset; in bi_emit_ld_ubo()
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_state.h510 unsigned size, uint32_t *const_offset);
Dsi_descriptors.c1085 unsigned size, uint32_t *const_offset) in si_upload_const_buffer() argument
1090 const_offset, (struct pipe_resource **)buf, &tmp); in si_upload_const_buffer()
/external/mesa3d/docs/relnotes/
D19.1.0.rst2742 - iris: have more than one const_offset
D20.2.0.rst4005 - freedreno/ir3: don't allow negative const_offset