Home
last modified time | relevance | path

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

12

/third_party/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,
/third_party/mesa3d/src/freedreno/ir3/
Dir3_nir_analyze_ubo_ranges.c297 int const_offset = 0; in lower_ubo_load_to_uniform() local
299 handle_partial_const(b, &ubo_offset, &const_offset); in lower_ubo_load_to_uniform()
317 debug_assert(!(const_offset & 0x3)); in lower_ubo_load_to_uniform()
318 const_offset >>= 2; in lower_ubo_load_to_uniform()
321 const_offset += range_offset; in lower_ubo_load_to_uniform()
329 if (const_offset < 0) { in lower_ubo_load_to_uniform()
330 uniform_offset = nir_iadd_imm(b, uniform_offset, const_offset); in lower_ubo_load_to_uniform()
331 const_offset = 0; in lower_ubo_load_to_uniform()
336 uniform_offset, .base = const_offset); in lower_ubo_load_to_uniform()
/third_party/mesa3d/src/gallium/drivers/r600/sfn/
Dsfn_emitssboinstruction.cpp634 auto const_offset = nir_src_as_const_value(intrin->src[0]); in emit_image_size() local
637 if (const_offset) in emit_image_size()
638 res_id += const_offset[0].u32; in emit_image_size()
657 if (const_offset) { in emit_image_size()
658 unsigned lookup_resid = const_offset[0].u32; in emit_image_size()
705 auto const_offset = nir_src_as_const_value(intr->src[0]); in emit_buffer_size() local
708 if (const_offset) in emit_buffer_size()
709 res_id += const_offset[0].u32; in emit_buffer_size()
/third_party/mesa3d/src/mesa/drivers/dri/i965/
Dgfx6_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()
/third_party/mesa3d/src/broadcom/compiler/
Dnir_to_vir.c344 uint32_t *const_offset, in emit_tmu_general_store_writes() argument
374 *const_offset = base_const_offset + first_component * 4; in emit_tmu_general_store_writes()
435 uint32_t const_offset, in emit_tmu_general_address_write() argument
459 if (const_offset != 0) { in emit_tmu_general_address_write()
461 vir_uniform_ui(c, const_offset)); in emit_tmu_general_address_write()
466 if (const_offset != 0) { in emit_tmu_general_address_write()
468 vir_uniform_ui(c, const_offset)); in emit_tmu_general_address_write()
534 uint32_t const_offset = 0; in ntq_emit_tmu_general() local
536 const_offset = nir_src_as_uint(instr->src[offset_src]); in ntq_emit_tmu_general()
540 const_offset += nir_intrinsic_base(instr); in ntq_emit_tmu_general()
[all …]
/third_party/mesa3d/src/gallium/drivers/zink/nir_to_spirv/
Dspirv_builder.c756 SpvId const_offset, in spirv_builder_emit_image_sample() argument
787 assert(!(const_offset && offset)); in spirv_builder_emit_image_sample()
788 if (const_offset) { in spirv_builder_emit_image_sample()
789 extra_operands[num_extra_operands++] = const_offset; in spirv_builder_emit_image_sample()
924 SpvId const_offset, in spirv_builder_emit_image_gather() argument
942 assert(!(const_offset && offset)); in spirv_builder_emit_image_gather()
943 if (const_offset) { in spirv_builder_emit_image_gather()
944 extra_operands[num_extra_operands++] = const_offset; in spirv_builder_emit_image_gather()
978 SpvId const_offset, in spirv_builder_emit_image_fetch() argument
994 assert(!(const_offset && offset)); in spirv_builder_emit_image_fetch()
[all …]
Dspirv_builder.h285 SpvId const_offset,
324 SpvId const_offset,
334 SpvId const_offset,
Dnir_to_spirv.c3110 const_offset = 0, offset = 0, sample = 0, tex_offset = 0, bindless = 0; in emit_tex() local
3145 const_offset = spirv_builder_const_composite(&ctx->builder, in emit_tex()
3150 const_offset = components[0]; in emit_tex()
3344 if (const_offset) in emit_tex()
3348 lod, sample, const_offset, offset, dref); in emit_tex()
3351 image, coord, lod, sample, const_offset, offset); in emit_tex()
3358 const_offset, offset); in emit_tex()
/third_party/mesa3d/src/intel/compiler/
Dbrw_nir_lower_mem_access_bit_sizes.c184 const unsigned const_offset = in lower_mem_store_bit_size() local
211 (offset_is_const && (start + const_offset) % 4 == 0); in lower_mem_store_bit_size()
Dbrw_fs.h119 uint32_t const_offset,
Dbrw_fs_nir.cpp3726 nir_const_value *const_offset = nir_src_as_const_value(instr->src[0]); in nir_emit_fs_intrinsic() local
3728 if (const_offset) { in nir_emit_fs_intrinsic()
3730 unsigned off_x = const_offset[0].u32 & 0xf; in nir_emit_fs_intrinsic()
3731 unsigned off_y = const_offset[1].u32 & 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()
/third_party/mesa3d/src/asahi/compiler/
Dagx_compile.c332 int32_t const_offset = offset_is_const ? nir_src_as_int(*offset) : 0; in agx_emit_load_ubo() local
336 assert((const_offset & (bytes - 1)) == 0); in agx_emit_load_ubo()
337 const_offset = const_offset / bytes; in agx_emit_load_ubo()
338 int16_t const_as_16 = const_offset; in agx_emit_load_ubo()
358 (offset_is_const && (const_offset == const_as_16)) ? in agx_emit_load_ubo()
359 agx_immediate(const_as_16) : agx_mov_imm(b, 32, const_offset), in agx_emit_load_ubo()
/third_party/mesa3d/src/gallium/drivers/freedreno/a2xx/
Dir2_nir.c596 ASSERTED nir_const_value *const_offset; in emit_intrinsic() local
608 const_offset = nir_src_as_const_value(intr->src[0]); in emit_intrinsic()
609 assert(const_offset); /* TODO can be false in ES2? */ in emit_intrinsic()
611 idx += (uint32_t)const_offset[0].f32; in emit_intrinsic()
/third_party/mesa3d/src/amd/compiler/
Daco_instruction_selection.cpp3343 nir_const_value* const_offset = nir_src_as_const_value(instr->src[1].src); in visit_alu_instr() local
3345 if (const_offset && const_bits) { in visit_alu_instr()
3346 uint32_t extract = (const_bits->u32 << 16) | (const_offset->u32 & 0x1f); in visit_alu_instr()
3364 Operand offset_op = const_offset in visit_alu_instr()
3365 ? Operand::c32(const_offset->u32 & 0x1fu) in visit_alu_instr()
3641 unsigned const_offset = 0; member
3654 unsigned bytes_needed, unsigned align, unsigned const_offset,
3673 unsigned const_offset = info.const_offset; in emit_load() local
3676 unsigned align_offset = (info.align_offset + const_offset) % align_mul; in emit_load()
3713 unsigned reduced_const_offset = const_offset; in emit_load()
[all …]
Daco_statistics.cpp237 bool const_offset = in get_wait_counter_info() local
240 if (likely_desc_load || const_offset) in get_wait_counter_info()
/third_party/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_nir.c1159 uint32_t const_offset = 0; in get_deref_offset() local
1164 const_offset = nir_src_as_uint(instr->arr.index); in get_deref_offset()
1175 const_offset += glsl_count_attribute_slots(ft, vs_in); in get_deref_offset()
1180 const_offset += nir_src_comp_as_int(path.path[idx_lvl]->arr.index, 0) * size; in get_deref_offset()
1198 if (const_offset && offset) in get_deref_offset()
1200 … lp_build_const_int_vec(bld_base->base.gallivm, bld_base->uint_bld.type, const_offset), in get_deref_offset()
1202 *const_out = const_offset; in get_deref_offset()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_glsl_to_tgsi.cpp2104 unsigned const_offset = const_offset_ir ? in visit_expression() local
2124 cbuf.index = const_offset / 16; in visit_expression()
2147 const_offset = const_offset_ir->value.u[0]; in visit_expression()
2148 cbuf.index = const_offset / 16; in visit_expression()
2173 cbuf.swizzle += MAKE_SWIZZLE4(const_offset % 16 / 8, in visit_expression()
2174 const_offset % 16 / 8, in visit_expression()
2175 const_offset % 16 / 8, in visit_expression()
2176 const_offset % 16 / 8); in visit_expression()
2178 cbuf.swizzle += MAKE_SWIZZLE4(const_offset % 16 / 4, in visit_expression()
2179 const_offset % 16 / 4, in visit_expression()
[all …]
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_descriptors.c1157 const uint8_t *ptr, unsigned size, uint32_t *const_offset) in si_upload_const_buffer() argument
1162 const_offset, (struct pipe_resource **)buf, &tmp); in si_upload_const_buffer()
/third_party/mesa3d/src/microsoft/compiler/
Dnir_to_dxil.c2650 nir_const_value *const_offset = nir_src_as_const_value(intr->src[1]); in emit_load_ubo() local
2651 if (const_offset) { in emit_load_ubo()
2652 offset = dxil_module_get_int32_const(&ctx->mod, const_offset->i32 >> 4); in emit_load_ubo()
/third_party/mesa3d/src/amd/llvm/
Dac_nir_to_llvm.c4167 unsigned const_offset = nir_intrinsic_base(instr); in visit_intrinsic() local
4195 addr_voffset, addr_soffset, const_offset, in visit_intrinsic()
4206 unsigned const_offset = nir_intrinsic_base(instr); in visit_intrinsic() local
4217 addr_voffset, addr_soffset, const_offset, in visit_intrinsic()
/third_party/mesa3d/src/panfrost/bifrost/
Dbifrost_compile.c731 uint32_t const_offset = offset_is_const ? nir_src_as_uint(*offset) : 0; in bi_emit_load_ubo() local
736 bi_imm_u32(const_offset) : dyn_offset, in bi_emit_load_ubo()

12