Home
last modified time | relevance | path

Searched refs:index_bias (Results 1 – 25 of 73) sorted by relevance

123

/third_party/mesa3d/src/gallium/auxiliary/util/
Du_draw.h67 draw.index_bias = 0; in util_draw_arrays()
76 int index_bias, enum pipe_prim_type mode, in util_draw_elements() argument
88 draw.index_bias = index_bias; in util_draw_elements()
117 draw.index_bias = 0; in util_draw_arrays_instanced()
126 int index_bias, in util_draw_elements_instanced() argument
141 draw.index_bias = index_bias; in util_draw_elements_instanced()
Du_index_modify.c32 int index_bias, in util_shorten_ubyte_elts_to_userptr() argument
53 *out_map = (unsigned short)(*in_map + index_bias); in util_shorten_ubyte_elts_to_userptr()
67 int index_bias, in util_rebuild_ushort_elts_to_userptr() argument
87 *out_map = (unsigned short)(*in_map + index_bias); in util_rebuild_ushort_elts_to_userptr()
101 int index_bias, in util_rebuild_uint_elts_to_userptr() argument
121 *out_map = (unsigned int)(*in_map + index_bias); in util_rebuild_uint_elts_to_userptr()
Du_index_modify.h36 int index_bias,
44 int index_bias,
51 int index_bias,
Du_prim_restart.c186 … pipe_prim_type mode, struct range_info *info, unsigned start, unsigned count, unsigned index_bias) in add_range() argument
216 info->draws[info->count].index_bias = index_bias; in add_range()
245 if (!add_range(info->mode, &ranges, draw->start + start, count, draw->index_bias)) { \ in util_prim_restart_convert_to_direct()
Du_draw.c180 draws[i].draw.index_bias = info_in->index_size ? params[3] : 0; in util_draw_indirect_read()
244 draw.index_bias = info_in->index_size ? params[3] : 0; in util_draw_indirect()
Du_threaded_context.c2928 unsigned index_bias; member
2949 draw.index_bias = info->index_bias; in tc_call_draw_single_drawid()
3024 bool index_bias_varies = first->index_bias != next->index_bias; in tc_call_draw_single()
3029 multi[0].index_bias = first->index_bias; in tc_call_draw_single()
3032 multi[1].index_bias = next->index_bias; in tc_call_draw_single()
3041 multi[num_draws].index_bias = next->index_bias; in tc_call_draw_single()
3042 index_bias_varies |= first->index_bias != next->index_bias; in tc_call_draw_single()
3062 draw.index_bias = first->index_bias; in tc_call_draw_single()
3209 p->index_bias = draws[0].index_bias; in tc_draw_vbo()
3228 p->index_bias = draws[0].index_bias; in tc_draw_vbo()
[all …]
/third_party/mesa3d/src/gallium/drivers/r300/
Dr300_render.c117 void r500_emit_index_bias(struct r300_context *r300, int index_bias) in r500_emit_index_bias() argument
123 (index_bias & 0xFFFFFF) | (index_bias < 0 ? 1<<24 : 0)); in r500_emit_index_bias()
149 static void r300_split_index_bias(struct r300_context *r300, int index_bias, in r300_split_index_bias() argument
157 if (index_bias < 0) { in r300_split_index_bias()
169 *buffer_offset = MAX2(-max_neg_bias, index_bias); in r300_split_index_bias()
172 *buffer_offset = index_bias; in r300_split_index_bias()
175 *index_offset = index_bias - *buffer_offset; in r300_split_index_bias()
241 int index_bias, int instance_id) in r300_emit_states() argument
264 r500_emit_index_bias(r300, index_bias); in r300_emit_states()
305 int index_bias, in r300_prepare_for_rendering() argument
[all …]
/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/
Dnvc0_vbo_translate.c64 nvc0_vertex_configure_translate(struct nvc0_context *nvc0, int32_t index_bias) in nvc0_vertex_configure_translate() argument
83 if (index_bias && !unlikely(nvc0->vertex->instance_bufs & (1 << i))) in nvc0_vertex_configure_translate()
84 map += (intptr_t)index_bias * vb->stride; in nvc0_vertex_configure_translate()
105 int32_t index_bias) in nvc0_push_map_edgeflag() argument
122 if (index_bias) in nvc0_push_map_edgeflag()
123 ctx->edgeflag.data += (intptr_t)index_bias * vb->stride; in nvc0_push_map_edgeflag()
528 sdraw.index_bias = cmd->baseVertex; in nvc0_push_vbo_indirect()
545 PUSH_DATA (push, sdraw.index_bias); in nvc0_push_vbo_indirect()
565 unsigned index_bias = info->index_size ? draw->index_bias : 0; in nvc0_push_vbo() local
572 nvc0_vertex_configure_translate(nvc0, index_bias); in nvc0_push_vbo()
[all …]
Dnvc0_vbo.c577 if (nvc0->state.index_bias) { in nvc0_draw_arrays()
583 nvc0->state.index_bias = 0; in nvc0_draw_arrays()
703 unsigned instance_count, int32_t index_bias, in nvc0_draw_elements() argument
711 if (index_bias != nvc0->state.index_bias) { in nvc0_draw_elements()
714 PUSH_DATA (push, index_bias); in nvc0_draw_elements()
716 PUSH_DATA (push, index_bias); in nvc0_draw_elements()
717 nvc0->state.index_bias = index_bias; in nvc0_draw_elements()
844 if (nvc0->state.index_bias) { in nvc0_draw_indirect()
848 nvc0->state.index_bias = 0; in nvc0_draw_indirect()
949 nvc0->vb_elt_first = info->min_index + (info->index_size ? draws->index_bias : 0); in nvc0_draw_vbo()
[all …]
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/
Dnv50_push.c29 int32_t index_bias; member
84 PUSH_DATA (ctx->push, *elts + ctx->index_bias); in emit_vertices_i08()
123 PUSH_DATA (ctx->push, *elts + ctx->index_bias); in emit_vertices_i16()
162 PUSH_DATA (ctx->push, *elts + ctx->index_bias); in emit_vertices_i32()
249 bool apply_bias = info->index_size && draw->index_bias; in nv50_push_vbo()
256 ctx.index_bias = info->index_size ? draw->index_bias : 0; in nv50_push_vbo()
279 data += (ptrdiff_t)(info->index_size ? draw->index_bias : 0) * vb->stride; in nv50_push_vbo()
358 PUSH_DATA (ctx.push, nv50->state.index_bias); in nv50_push_vbo()
Dnv50_vbo.c474 if (nv50->state.index_bias) { in nv50_draw_arrays()
481 nv50->state.index_bias = 0; in nv50_draw_arrays()
593 unsigned instance_count, int32_t index_bias, in nv50_draw_elements() argument
601 if (index_bias != nv50->state.index_bias) { in nv50_draw_elements()
603 PUSH_DATA (push, index_bias); in nv50_draw_elements()
606 PUSH_DATA (push, index_bias); in nv50_draw_elements()
608 nv50->state.index_bias = index_bias; in nv50_draw_elements()
792 nv50->vb_elt_first = info->min_index + (info->index_size ? draws->index_bias : 0); in nv50_draw_vbo()
916 info->instance_count, draws->index_bias, info->index_size); in nv50_draw_vbo()
/third_party/mesa3d/src/gallium/drivers/vc4/
Dvc4_draw.c186 unsigned index_bias = info->index_size ? draws->index_bias : 0; in vc4_emit_gl_shader_state() local
195 vb->stride * (index_bias + in vc4_emit_gl_shader_state()
252 vc4->last_index_bias = index_bias + extra_index_bias; in vc4_emit_gl_shader_state()
345 unsigned index_bias = info->index_size ? draws->index_bias : 0; in vc4_draw_vbo() local
356 vc4->last_index_bias != index_bias) { in vc4_draw_vbo()
/third_party/mesa3d/src/gallium/drivers/freedreno/a3xx/
Dfd3_draw.c72 info->index_size ? emit->draw->index_bias : 0) in draw_impl()
76 info->index_size ? emit->draw->index_bias : 0) in draw_impl()
79 OUT_RING(ring, info->index_size ? emit->draw->index_bias in draw_impl()
/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_draw_elements.c185 unsigned index_size, int index_bias, in svga_hwtnl_simple_draw_range_elements() argument
207 range.indexBias = index_bias; in svga_hwtnl_simple_draw_range_elements()
281 draw->index_bias, in svga_hwtnl_draw_range_elements()
309 draw->index_bias, in svga_hwtnl_draw_range_elements()
Dsvga_pipe_draw.c266 unsigned index_bias = info->index_size ? draws->index_bias : 0; in svga_draw_vbo() local
267 if (svga->curr.vertex_id_bias != (draws[0].start + index_bias)) { in svga_draw_vbo()
268 svga->curr.vertex_id_bias = draws[0].start + index_bias; in svga_draw_vbo()
Dsvga_draw_private.h170 int index_bias; member
238 int index_bias,
Dsvga_draw.c982 svga_hwtnl_set_index_bias(struct svga_hwtnl *hwtnl, int index_bias) in svga_hwtnl_set_index_bias() argument
984 hwtnl->index_bias = index_bias; in svga_hwtnl_set_index_bias()
1012 int index_bias = (int) range->indexBias + hwtnl->index_bias; in check_draw_params() local
1085 if (index_bias >= 0) { in check_draw_params()
1086 assert(offset + index_bias * stride + width <= size); in check_draw_params()
1188 hwtnl->cmd.prim[hwtnl->cmd.prim_count].indexBias += hwtnl->index_bias; in svga_hwtnl_prim()
Dsvga_draw.h78 void svga_hwtnl_set_index_bias(struct svga_hwtnl *hwtnl, int index_bias);
/third_party/mesa3d/src/gallium/auxiliary/draw/
Ddraw_pt.c152 … (index_bias_varies ? draw_info[i].index_bias : draw_info[0].index_bias) : in draw_pt_arrays()
237 draw_print_arrays(struct draw_context *draw, uint prim, int start, uint count, int index_bias) in draw_print_arrays() argument
274 ii += index_bias; in draw_print_arrays()
276 index_bias, ii); in draw_print_arrays()
572 … use_info->index_bias_varies ? use_draws[i].index_bias : use_draws[0].index_bias); in draw_vbo()
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnv30_vbo.c463 unsigned instance_count, int32_t index_bias, argument
470 if (eng3d->oclass >= NV40_3D_CLASS && index_bias != nv30->state.index_bias) {
472 PUSH_DATA (push, index_bias);
473 nv30->state.index_bias = index_bias;
651 info->instance_count, draws[0].index_bias, info->index_size);
Dnv30_push.c203 bool apply_bias = info->index_size && draw->index_bias; in nv30_push_vbo()
223 data += draw->index_bias * vb->stride; in nv30_push_vbo()
/third_party/mesa3d/src/gallium/frontends/d3d10umd/
DDraw.cpp188 draw.index_bias = BaseVertexLocation; in DrawIndexed()
289 draw.index_bias = BaseVertexLocation; in DrawIndexedInstanced()
/third_party/mesa3d/src/gallium/auxiliary/indices/
Du_primconvert.c243 new_draw.index_bias = info->index_size ? draw->index_bias : 0; in util_primconvert_draw_vbo()
/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/mme/
Dcom9097.mme238 * parm[2 + 5n + 3] = index_bias
256 parm $r4 send $r4 /* index_bias, send start */
260 parm $r5 send $r4 /* start_instance, send index_bias */
350 * parm[3 + 5n + 3] = index_bias
375 parm $r4 send $r4 /* index_bias, send start */
379 parm $r5 send $r4 /* start_instance, send index_bias */
/third_party/mesa3d/docs/relnotes/
D10.3.7.rst55 - nv50,nvc0: set vertex id base to index_bias

123