Home
last modified time | relevance | path

Searched refs:offset_src (Results 1 – 20 of 20) sorted by relevance

/third_party/mesa3d/src/compiler/nir/
Dnir_opt_uniform_atomics.c43 parse_atomic_op(nir_intrinsic_op op, unsigned *offset_src, unsigned *data_src) in parse_atomic_op() argument
48 *offset_src = 1; \ in parse_atomic_op()
54 *offset_src = 0; \ in parse_atomic_op()
62 *offset_src = 1; \ in parse_atomic_op()
197 unsigned offset_src, data_src; in optimize_atomic() local
198 nir_op op = parse_atomic_op(intrin->intrinsic, &offset_src, &data_src); in optimize_atomic()
282 unsigned offset_src, data_src; in opt_uniform_atomics() local
283 if (parse_atomic_op(intrin->intrinsic, &offset_src, &data_src) == nir_num_opcodes) in opt_uniform_atomics()
286 if (nir_src_is_divergent(intrin->src[offset_src])) in opt_uniform_atomics()
Dnir_gather_ssa_types.c209 nir_src *offset_src = nir_get_io_offset_src(intrin); in nir_gather_ssa_types() local
210 if (offset_src) { in nir_gather_ssa_types()
211 assert(offset_src->is_ssa); in nir_gather_ssa_types()
212 set_type(offset_src->ssa->index, nir_type_int, in nir_gather_ssa_types()
Dnir_lower_wrmasks.c78 offset_src(nir_intrinsic_op intrinsic) in offset_src() function
105 unsigned offset_idx = offset_src(intr->intrinsic); in split_wrmask()
209 assert(offset_src(intr->intrinsic) >= 0); in nir_lower_wrmasks_instr()
Dnir_lower_ssbo.c115 nir_src *offset_src = nir_get_io_offset_src(intr); in lower_ssbo_instr() local
116 nir_ssa_def *offset = nir_ssa_for_src(b, *offset_src, 1); in lower_ssbo_instr()
/third_party/mesa3d/src/intel/compiler/
Dbrw_nir_lower_mem_access_bit_sizes.c99 nir_src *offset_src = nir_get_io_offset_src(intrin); in lower_mem_load_bit_size() local
100 if (bit_size < 32 && !needs_scalar && nir_src_is_const(*offset_src)) { in lower_mem_load_bit_size()
104 const int load_offset = nir_src_as_uint(*offset_src) % 4; in lower_mem_load_bit_size()
182 nir_src *offset_src = nir_get_io_offset_src(intrin); in lower_mem_store_bit_size() local
183 const bool offset_is_const = nir_src_is_const(*offset_src); in lower_mem_store_bit_size()
185 offset_is_const ? nir_src_as_uint(*offset_src) : 0; in lower_mem_store_bit_size()
Dbrw_vec4_nir.cpp268 nir_src *offset_src = nir_get_io_offset_src(instr); in get_indirect_offset() local
270 if (nir_src_is_const(*offset_src)) { in get_indirect_offset()
275 assert(nir_src_as_uint(*offset_src) == 0); in get_indirect_offset()
279 return get_nir_src(*offset_src, BRW_REGISTER_TYPE_UD, 1); in get_indirect_offset()
Dbrw_fs_nir.cpp2502 const nir_src &offset_src, in emit_gs_input_load() argument
2512 nir_src_is_const(offset_src) && nir_src_is_const(vertex_src) && in emit_gs_input_load()
2513 4 * (base_offset + nir_src_as_uint(offset_src)) < push_reg_count) { in emit_gs_input_load()
2514 int imm_offset = (base_offset + nir_src_as_uint(offset_src)) * 4 + in emit_gs_input_load()
2605 fs_reg indirect_offset = get_nir_src(offset_src); in emit_gs_input_load()
2607 if (nir_src_is_const(offset_src)) { in emit_gs_input_load()
2624 inst->offset = base_offset + nir_src_as_uint(offset_src); in emit_gs_input_load()
2655 nir_src *offset_src = nir_get_io_offset_src(instr); in get_indirect_offset() local
2657 if (nir_src_is_const(*offset_src)) { in get_indirect_offset()
2662 assert(nir_src_as_uint(*offset_src) == 0); in get_indirect_offset()
[all …]
Dbrw_fs.h319 unsigned base_offset, const nir_src &offset_src,
/third_party/mesa3d/src/broadcom/compiler/
Dv3d_nir_lower_robust_buffer_access.c31 uint32_t offset_src, in rewrite_offset() argument
49 nir_umin(b, instr->src[offset_src].ssa, aligned_buffer_size); in rewrite_offset()
50 nir_instr_rewrite_src(&instr->instr, &instr->src[offset_src], in rewrite_offset()
Dnir_to_vir.c433 int offset_src, in emit_tmu_general_address_write() argument
441 ntq_get_src(c, instr->src[offset_src], 0); in emit_tmu_general_address_write()
463 struct qreg data = ntq_get_src(c, instr->src[offset_src], 0); in emit_tmu_general_address_write()
518 int offset_src; in ntq_emit_tmu_general() local
520 offset_src = 0; in ntq_emit_tmu_general()
526 offset_src = 0 + has_index; in ntq_emit_tmu_general()
528 offset_src = 1 + has_index; in ntq_emit_tmu_general()
530 offset_src = 0 + has_index; in ntq_emit_tmu_general()
533 bool dynamic_src = !nir_src_is_const(instr->src[offset_src]); in ntq_emit_tmu_general()
536 const_offset = nir_src_as_uint(instr->src[offset_src]); in ntq_emit_tmu_general()
[all …]
/third_party/mesa3d/src/gallium/auxiliary/nir/
Dnir_to_tgsi.c2695 int offset_src = -1; in nir_to_tgsi_lower_64bit_intrinsic() local
2701 offset_src = 1; in nir_to_tgsi_lower_64bit_intrinsic()
2704 offset_src = 1; in nir_to_tgsi_lower_64bit_intrinsic()
2708 offset_src = 2; in nir_to_tgsi_lower_64bit_intrinsic()
2713 if (offset_src != -1) { in nir_to_tgsi_lower_64bit_intrinsic()
2716 nir_iadd_imm(b, second->src[offset_src].ssa, offset_amount); in nir_to_tgsi_lower_64bit_intrinsic()
2717 nir_instr_rewrite_src(&second->instr, &second->src[offset_src], in nir_to_tgsi_lower_64bit_intrinsic()
/third_party/mesa3d/src/asahi/compiler/
Dagx_compile.c139 nir_src *offset_src = nir_get_io_offset_src(instr); in agx_emit_load_attr() local
140 assert(nir_src_is_const(*offset_src) && "no attribute indirects"); in agx_emit_load_attr()
142 nir_src_as_uint(*offset_src); in agx_emit_load_attr()
/third_party/python/Modules/clinic/
Dposixmodule.c.h5659 PyObject *offset_src, PyObject *offset_dst);
5672 PyObject *offset_src = Py_None; in os_copy_file_range() local
5703 offset_src = args[3]; in os_copy_file_range()
5710 return_value = os_copy_file_range_impl(module, src, dst, count, offset_src, offset_dst); in os_copy_file_range()
5749 PyObject *offset_src, PyObject *offset_dst,
5763 PyObject *offset_src = Py_None; in os_splice() local
5795 offset_src = args[3]; in os_splice()
5810 return_value = os_splice_impl(module, src, dst, count, offset_src, offset_dst, flags); in os_splice()
/third_party/mesa3d/src/compiler/nir/tests/
Dload_store_vectorizer_tests.cpp240 int offset_src = res ? 1 : 0; in create_indirect_load() local
242 if (nir_src_is_const(load->src[offset_src])) { in create_indirect_load()
243 nir_intrinsic_set_range_base(load, nir_src_as_uint(load->src[offset_src])); in create_indirect_load()
/third_party/python/Modules/
Dposixmodule.c10409 PyObject *offset_src, PyObject *offset_dst) in os_copy_file_range_impl() argument
10427 if (offset_src != Py_None) { in os_copy_file_range_impl()
10428 if (!Py_off_t_converter(offset_src, &offset_src_val)) { in os_copy_file_range_impl()
10481 PyObject *offset_src, PyObject *offset_dst, in os_splice_impl() argument
10496 if (offset_src != Py_None) { in os_splice_impl()
10497 if (!Py_off_t_converter(offset_src, &offset_src_val)) { in os_splice_impl()
/third_party/mesa3d/src/amd/llvm/
Dac_nir_to_llvm.c4130 LLVMValueRef offset_src = ac_extract_components(&ctx->ac, src, start, count); in visit_intrinsic() local
4131 LLVMBuildStore(ctx->ac.builder, offset_src, offset_ptr); in visit_intrinsic()
4551 unsigned offset_src = 0; in visit_tex() local
4576 offset_src = i; in visit_tex()
4799 int num_offsets = instr->src[offset_src].src.ssa->num_components; in visit_tex()
/third_party/mesa3d/src/microsoft/compiler/
Dnir_to_dxil.c2654 const struct dxil_value *offset_src = get_src(ctx, &intr->src[1], 0, nir_type_uint); in emit_load_ubo() local
2656 if (!offset_src || !c4) in emit_load_ubo()
2659 offset = dxil_emit_binop(&ctx->mod, DXIL_BINOP_ASHR, offset_src, c4, 0); in emit_load_ubo()
/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_tgsi_vgpu10.c8093 struct tgsi_full_src_register offset_src, sampler, ref; in emit_tg4() local
8172 offset_src = make_src_reg(inst->TexOffsets[0].File, in emit_tg4()
8174 offset_src = swizzle_src(&offset_src, inst->TexOffsets[0].SwizzleX, in emit_tg4()
8178 emit_src_register(emit, &offset_src); in emit_tg4()
/third_party/python/Doc/library/
Dos.rst787 .. function:: copy_file_range(src, dst, count, offset_src=None, offset_dst=None)
790 *offset_src*, to file descriptor *dst*, starting from offset *offset_dst*.
791 If *offset_src* is None, then *src* is read from the current position;
1433 .. function:: splice(src, dst, count, offset_src=None, offset_dst=None)
1436 *offset_src*, to file descriptor *dst*, starting from offset *offset_dst*.
1437 At least one of the file descriptors must refer to a pipe. If *offset_src*
/third_party/python/Lib/test/
Dtest_os.py373 offset_src=in_skip,
454 i = os.splice(in_fd, write_fd, bytes_to_copy, offset_src=in_skip)