/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_draw_elements.c | 66 unsigned index_size, in translate_indices() argument 74 unsigned size = index_size * gen_nr; in translate_indices() 79 assert(index_size == 2 || index_size == 4); in translate_indices() 88 src_sbuf->translated_indices.index_size == index_size) { in translate_indices() 99 size = index_size * gen_nr; in translate_indices() 130 src_sbuf->translated_indices.index_size = index_size; in translate_indices() 152 unsigned index_size, int index_bias, in svga_hwtnl_simple_draw_range_elements() argument 162 unsigned index_offset = start * index_size; in svga_hwtnl_simple_draw_range_elements() 171 range.indexArray.stride = index_size; in svga_hwtnl_simple_draw_range_elements() 172 range.indexWidth = index_size; in svga_hwtnl_simple_draw_range_elements() [all …]
|
D | svga_pipe_draw.c | 60 unsigned index_size, in retry_draw_range_elements() argument 90 index_buffer, index_size, index_bias, in retry_draw_range_elements() 105 index_buffer, index_size, index_bias, in retry_draw_range_elements() 173 if (info->primitive_restart && info->index_size) { in need_fallback_prim_restart() 177 if (info->index_size == 1) in need_fallback_prim_restart() 179 else if (info->index_size == 2) in need_fallback_prim_restart() 211 if (info->index_size && info->has_user_indices && in svga_draw_vbo() 264 if (info->index_size && indexbuf) { in svga_draw_vbo() 267 assert(index_offset % info->index_size == 0); in svga_draw_vbo() 268 offset = index_offset / info->index_size; in svga_draw_vbo() [all …]
|
/external/mesa3d/src/gallium/auxiliary/indices/ |
D | u_primconvert.c | 109 if (info->index_size) { in util_primconvert_draw_vbo() 111 unsigned index_size; in util_primconvert_draw_vbo() local 114 info->mode, info->index_size, info->count, in util_primconvert_draw_vbo() 117 &mode, &index_size, &new_info.count, in util_primconvert_draw_vbo() 120 new_info.index_size = index_size; in util_primconvert_draw_vbo() 130 unsigned index_size; in util_primconvert_draw_vbo() local 135 &mode, &index_size, &new_info.count, in util_primconvert_draw_vbo() 138 new_info.index_size = index_size; in util_primconvert_draw_vbo() 141 u_upload_alloc(pc->pipe->stream_uploader, 0, new_info.index_size * new_info.count, 4, in util_primconvert_draw_vbo() 143 new_info.start = ib_offset / new_info.index_size; in util_primconvert_draw_vbo() [all …]
|
/external/mesa3d/src/gallium/drivers/freedreno/a4xx/ |
D | fd4_draw.h | 41 enum pc_di_src_sel source_select, enum a4xx_index_size index_size, in DRAW4() argument 46 CP_DRAW_INDX_OFFSET_0_INDEX_SIZE(index_size) | in DRAW4() 91 fd4_size2indextype(unsigned index_size) in fd4_size2indextype() argument 93 switch (index_size) { in fd4_size2indextype() 98 DBG("unsupported index size: %d", index_size); in fd4_size2indextype() 120 if (info->index_size) { in fd4_draw_emit() 125 fd4_size2indextype(info->index_size), 0), in fd4_draw_emit() 144 if (info->index_size) { in fd4_draw_emit() 148 idx_type = fd4_size2indextype(info->index_size); in fd4_draw_emit() 149 idx_size = info->index_size * info->count; in fd4_draw_emit() [all …]
|
/external/mesa3d/src/mesa/vbo/ |
D | vbo_minmax_index.c | 41 unsigned index_size; member 64 (a->index_size == b->index_size); in vbo_minmax_cache_key_equal() 105 unsigned index_size, GLintptr offset, GLuint count, in vbo_get_minmax_cached() argument 141 key.index_size = index_size; in vbo_get_minmax_cached() 177 unsigned index_size, GLintptr offset, GLuint count, in vbo_minmax_cache_store() argument 204 entry->key.index_size = index_size; in vbo_minmax_cache_store() 245 _mesa_primitive_restart_index(ctx, ib->index_size); in vbo_get_minmax_index() 250 indices = (char *) ib->ptr + prim->start * ib->index_size; in vbo_get_minmax_index() 252 GLsizeiptr size = MIN2(count * ib->index_size, ib->obj->Size); in vbo_get_minmax_index() 254 if (vbo_get_minmax_cached(ib->obj, ib->index_size, (GLintptr) indices, in vbo_get_minmax_index() [all …]
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_draw.c | 76 unsigned index_size = info->index_size; in setup_primitive_restart() local 79 _mesa_primitive_restart_index(ctx, index_size); in setup_primitive_restart() 86 if (index_size == 4 || info->restart_index < (1 << (index_size * 8))) in setup_primitive_restart() 168 info.index_size = ib->index_size; in st_draw_vbo() 176 start = pointer_to_offset(ib->ptr) / info.index_size; in st_draw_vbo() 186 info.index_size = 0; in st_draw_vbo() 223 info.index_size); in st_draw_vbo() 262 info.index_size = ib->index_size; in st_indirect_draw_vbo() 264 info.start = pointer_to_offset(ib->ptr) / info.index_size; in st_indirect_draw_vbo() 280 info.index_size); in st_indirect_draw_vbo()
|
D | st_draw_feedback.c | 244 unsigned index_size = ib->index_size; in st_feedback_draw_vbo() local 246 if (index_size == 0) in st_feedback_draw_vbo() 252 start = pointer_to_offset(ib->ptr) / index_size; in st_feedback_draw_vbo() 262 index_size, ~0); in st_feedback_draw_vbo()
|
/external/mesa3d/src/gallium/drivers/freedreno/ |
D | freedreno_draw.h | 101 size2indextype(unsigned index_size) in size2indextype() argument 103 switch (index_size) { in size2indextype() 108 DBG("unsupported index size: %d", index_size); in size2indextype() 126 if (info->index_size) { in fd_draw_emit() 130 idx_type = size2indextype(info->index_size); in fd_draw_emit() 131 idx_size = info->index_size * info->count; in fd_draw_emit() 132 idx_offset = index_offset + info->start * info->index_size; in fd_draw_emit()
|
/external/mesa3d/src/gallium/drivers/freedreno/a5xx/ |
D | fd5_draw.h | 98 if (info->index_size) { in fd5_draw_emit() 101 info->index_size; in fd5_draw_emit() 105 fd4_size2indextype(info->index_size), 0), in fd5_draw_emit() 124 if (info->index_size) { in fd5_draw_emit() 128 idx_type = fd4_size2indextype(info->index_size); in fd5_draw_emit() 129 idx_size = info->index_size * info->count; in fd5_draw_emit() 130 idx_offset = index_offset + info->start * info->index_size; in fd5_draw_emit()
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_draw.h | 70 util_draw_elements(struct pipe_context *pipe, unsigned index_size, in util_draw_elements() argument 78 info.index_size = index_size; in util_draw_elements() 111 unsigned index_size, in util_draw_elements_instanced() argument 122 info.index_size = index_size; in util_draw_elements_instanced()
|
D | u_prim_restart.c | 48 const unsigned src_index_size = info->index_size; in util_translate_prim_restart_ib() 52 dst_index_size = MAX2(2, info->index_size); in util_translate_prim_restart_ib() 186 assert(info->index_size); in util_draw_vbo_without_prim_restart() 193 info->start * info->index_size, in util_draw_vbo_without_prim_restart() 194 info->count * info->index_size, in util_draw_vbo_without_prim_restart() 207 + info->start * info->index_size; in util_draw_vbo_without_prim_restart() 232 switch (info->index_size) { in util_draw_vbo_without_prim_restart()
|
D | u_draw.c | 139 const unsigned num_params = info_in->index_size ? 5 : 4; in util_draw_indirect() 161 info.index_bias = info_in->index_size ? params[3] : 0; in util_draw_indirect() 162 info.start_instance = info_in->index_size ? params[4] : params[3]; in util_draw_indirect()
|
/external/mesa3d/src/gallium/drivers/nouveau/nvc0/ |
D | nvc0_vbo_translate.c | 473 unsigned i, index_size; in nvc0_push_vbo() local 503 PUSH_DATA (ctx.push, info->index_size ? 0xffffffff : info->restart_index); in nvc0_push_vbo() 510 if (info->index_size) { in nvc0_push_vbo() 512 index_size = info->index_size; in nvc0_push_vbo() 522 index_size = 0; in nvc0_push_vbo() 542 switch (index_size) { in nvc0_push_vbo() 553 assert(index_size == 0); in nvc0_push_vbo() 587 if (info->index_size && !info->has_user_indices) in nvc0_push_vbo() 630 unsigned index_size = info->index_size; in nvc0_push_upload_vertex_ids() local 634 if (!index_size || info->index_bias) in nvc0_push_upload_vertex_ids() [all …]
|
/external/mesa3d/src/gallium/drivers/nouveau/nv30/ |
D | nv30_push.c | 201 unsigned i, index_size; in nv30_push_vbo() local 202 bool apply_bias = info->index_size && info->index_bias; in nv30_push_vbo() 227 if (info->index_size) { in nv30_push_vbo() 230 nv04_resource(info->index.resource), info->start * info->index_size, in nv30_push_vbo() 238 index_size = info->index_size; in nv30_push_vbo() 243 index_size = 0; in nv30_push_vbo() 260 switch (index_size) { in nv30_push_vbo() 280 if (info->index_size && !info->has_user_indices) in nv30_push_vbo()
|
D | nv30_vbo.c | 465 unsigned index_size) argument 477 if (eng3d->oclass == NV40_3D_CLASS && index_size > 1 && 488 (index_size == 2) ? 0x00000010 : 0x00000000, 518 start * index_size, NOUVEAU_BO_RD); 526 switch (index_size) { 563 !(info->index_size && 593 if (!nv30->base.vbo_dirty && info->index_size && !info->has_user_indices && 603 if (!info->index_size) { 634 info->instance_count, info->index_bias, info->index_size);
|
/external/elfutils/libelf/ |
D | elf_getarsym.c | 184 size_t index_size = atol (tmpbuf); in elf_getarsym() local 186 if (index_size > elf->maximum_size in elf_getarsym() 187 || elf->maximum_size - index_size < SARMAG + sizeof (struct ar_hdr) in elf_getarsym() 191 || n > index_size / w) in elf_getarsym() 218 ar_sym_len += index_size - n * w; in elf_getarsym() 235 index_size - sz, off + sz) in elf_getarsym() 236 != index_size - sz)) in elf_getarsym()
|
/external/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_state_draw.c | 564 sctx->current_vs_state |= S_VS_STATE_INDEXED(!!info->index_size); in si_emit_vs_state() 644 unsigned index_size, in si_emit_draw_packets() argument 678 if (index_size) { in si_emit_draw_packets() 679 if (index_size != sctx->last_index_size) { in si_emit_draw_packets() 683 switch (index_size) { in si_emit_draw_packets() 710 sctx->last_index_size = index_size; in si_emit_draw_packets() 714 index_size; in si_emit_draw_packets() 744 unsigned di_src_sel = index_size ? V_0287F0_DI_SRC_SEL_DMA in si_emit_draw_packets() 749 if (index_size) { in si_emit_draw_packets() 759 radeon_emit(cs, PKT3(index_size ? PKT3_DRAW_INDEX_INDIRECT in si_emit_draw_packets() [all …]
|
/external/tensorflow/tensorflow/python/ops/ragged/ |
D | ragged_gather_ops.py | 189 index_size = tensor_shape.dimension_value(indices_shape[-1]) 190 if index_size is None: 214 if index_size == 0: 226 elif index_size == 1: 244 for dim in range(2, index_size):
|
/external/mesa3d/src/gallium/drivers/r300/ |
D | r300_render_translate.c | 31 unsigned *index_size, unsigned index_offset, in r300_translate_index_buffer() argument 37 switch (*index_size) { in r300_translate_index_buffer() 47 *index_size = 2; in r300_translate_index_buffer()
|
D | r300_screen_buffer.c | 37 unsigned index_size, unsigned *start, in r300_upload_index_buffer() argument 45 0, count * index_size, 4, in r300_upload_index_buffer() 46 ptr + (*start * index_size), in r300_upload_index_buffer() 50 *start = index_offset / index_size; in r300_upload_index_buffer()
|
/external/mesa3d/src/gallium/drivers/vc4/ |
D | vc4_draw.c | 355 if (info->index_size) in vc4_draw_vbo() 366 if (info->index_size) { in vc4_draw_vbo() 367 uint32_t index_size = info->index_size; in vc4_draw_vbo() local 368 uint32_t offset = info->start * index_size; in vc4_draw_vbo() 370 if (info->index_size == 4) { in vc4_draw_vbo() 374 index_size = 2; in vc4_draw_vbo() 379 info->count * index_size, 4, in vc4_draw_vbo() 411 (index_size == 2 ? in vc4_draw_vbo() 421 if (info->index_size == 4 || info->has_user_indices) in vc4_draw_vbo()
|
/external/mesa3d/src/gallium/drivers/etnaviv/ |
D | etnaviv_context.c | 96 if (info->index_size) { in etna_update_state_for_draw() 184 if (info->index_size) { in etna_draw_vbo() 192 index_offset += info->start * info->index_size; in etna_draw_vbo() 197 ctx->index_buffer.FE_INDEX_STREAM_CONTROL = translate_index_size(info->index_size); in etna_draw_vbo() 280 etna_draw_instanced(ctx->stream, info->index_size, draw_mode, 1, in etna_draw_vbo() 281 info->count, info->index_size ? info->index_bias : info->start); in etna_draw_vbo() 283 if (info->index_size) in etna_draw_vbo() 303 if (info->index_size && indexbuf != info->index.resource) in etna_draw_vbo()
|
/external/mesa3d/src/gallium/drivers/nouveau/nv50/ |
D | nv50_push.c | 244 unsigned i, index_size; in nv50_push_vbo() local 247 bool apply_bias = info->index_size && info->index_bias; in nv50_push_vbo() 279 if (info->index_size) { in nv50_push_vbo() 288 index_size = info->index_size; in nv50_push_vbo() 304 index_size = 0; in nv50_push_vbo() 326 switch (index_size) { in nv50_push_vbo()
|
/external/elfutils/src/ |
D | ranlib.c | 176 size_t index_size = 0; in handle_file() local 189 index_size = arhdr->ar_size; in handle_file() 212 || (symtab.symsnamelen == 0 && index_size != 0)) in handle_file() 244 + ((index_size + 1) & ~1ul)); in handle_file()
|
/external/mesa3d/src/gallium/drivers/vc5/ |
D | vc5_draw.c | 341 info->index_size) { in vc5_draw_vbo() 344 switch (info->index_size) { in vc5_draw_vbo() 433 if (info->index_size) { in vc5_draw_vbo() 434 uint32_t index_size = info->index_size; in vc5_draw_vbo() local 435 uint32_t offset = info->start * index_size; in vc5_draw_vbo() 440 info->count * info->index_size, 4, in vc5_draw_vbo() 457 prim.index_type = ffs(info->index_size) - 1; in vc5_draw_vbo() 473 prim.index_type = ffs(info->index_size) - 1; in vc5_draw_vbo()
|