Searched defs:max_index (Results 1 - 25 of 41) sorted by relevance

12

/external/jemalloc/test/unit/
H A Dsize_classes.c29 index_t index, max_index; local
32 max_index = size2index(max_size_class);
34 for (index = 0, size_class = index2size(index); index < max_index ||
37 assert_true(index < max_index,
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_draw.c38 * all vertex lookups need to be clamped to 0..max_index-1 to prevent
51 unsigned max_index; local
54 max_index = ~0U - 1;
106 max_index = MIN2(max_index, buffer_max_index);
117 return max_index + 1;
H A Du_draw.h47 info->max_index = 0xffffffff;
61 info.max_index = start + count - 1;
97 info.max_index = start + count - 1;
127 uint max_index,
139 info.max_index = max_index;
124 util_draw_range_elements(struct pipe_context *pipe, int index_bias, uint min_index, uint max_index, uint mode, uint start, uint count) argument
/external/mesa3d/src/mesa/vbo/
H A Dvbo_split.c107 GLuint max_index,
131 else if (max_index - min_index >= limits->max_verts) {
146 min_index, max_index, draw, limits );
154 if (max_index - min_index >= limits->max_verts) {
160 min_index, max_index, draw, limits );
101 vbo_split_prims( struct gl_context *ctx, const struct gl_client_array *arrays[], const struct _mesa_prim *prim, GLuint nr_prims, const struct _mesa_index_buffer *ib, GLuint min_index, GLuint max_index, vbo_draw_func draw, const struct split_limits *limits ) argument
H A Dvbo_rebase.c124 GLuint max_index,
139 printf("%s %d..%d\n", __FUNCTION__, min_index, max_index);
239 max_index - min_index,
118 vbo_rebase_prims( struct gl_context *ctx, const struct gl_client_array *arrays[], const struct _mesa_prim *prim, GLuint nr_prims, const struct _mesa_index_buffer *ib, GLuint min_index, GLuint max_index, vbo_draw_func draw ) argument
H A Dvbo_primitive_restart.c69 GLuint max_index; member in struct:sub_primitive
105 sub_prims[scan_num].max_index = 0; \
115 sub_prims[scan_num].max_index = 0; \
122 UPDATE_MAX2(sub_prims[scan_num].max_index, scan_index); \
215 GL_TRUE, sub_prim->min_index, sub_prim->max_index,
H A Dvbo_split_inplace.c50 GLuint max_index; member in struct:split_context
76 ib.count = split->max_index - split->min_index + 1;
85 assert(split->max_index >= split->min_index);
96 split->max_index,
104 split->max_index = 0;
125 split->max_index = MAX2(split->max_index, prim->start + prim->count - 1);
137 (prim->start < split->max_index &&
138 split->max_index - prim->start >= split->limit))
270 GLuint max_index,
264 vbo_split_inplace( struct gl_context *ctx, const struct gl_client_array *arrays[], const struct _mesa_prim *prim, GLuint nr_prims, const struct _mesa_index_buffer *ib, GLuint min_index, GLuint max_index, vbo_draw_func draw, const struct split_limits *limits ) argument
[all...]
/external/mesa3d/src/gallium/auxiliary/draw/
H A Ddraw_pipe.c243 unsigned max_index = 0x0, i; local
247 if (index > max_index)
248 max_index = index;
250 if (max_index >= vert_info->count) {
251 debug_printf("%s: max_index (%u) outside vertex buffer (%u)\n",
253 max_index,
H A Ddraw_pt_vsplit_tmp.h33 * Fetch all elements in [min_index, max_index] with bias, and use the
43 const unsigned max_index = draw->pt.user.max_index; local
58 if (idx < min_index || idx > max_index) {
71 if (max_index - min_index > icount - 1)
84 fetch_count = max_index - min_index + 1;
91 if (idx < min_index || idx > max_index) {
101 if (idx < min_index || idx > max_index) {
/external/mesa3d/src/gallium/drivers/svga/
H A Dsvga_swtnl_private.h73 ushort max_index; member in struct:svga_vbuf_render
H A Dsvga_draw.c245 vdecl[i].rangeHint.last = hwtnl->cmd.max_index[0] + 1;
293 unsigned max_index,
312 assert(min_index <= max_index);
377 * min_index/max_index are merely conservative guesses, so we can't
432 hwtnl->cmd.max_index[hwtnl->cmd.prim_count] = max_index;
290 svga_hwtnl_prim( struct svga_hwtnl *hwtnl, const SVGA3dPrimitiveRange *range, unsigned min_index, unsigned max_index, struct pipe_resource *ib ) argument
H A Dsvga_draw_elements.c105 unsigned max_index,
150 ret = svga_hwtnl_prim( hwtnl, &range, min_index, max_index, index_buffer );
170 unsigned max_index,
211 max_index,
239 max_index,
100 svga_hwtnl_simple_draw_range_elements( struct svga_hwtnl *hwtnl, struct pipe_resource *index_buffer, unsigned index_size, int index_bias, unsigned min_index, unsigned max_index, unsigned prim, unsigned start, unsigned count ) argument
165 svga_hwtnl_draw_range_elements( struct svga_hwtnl *hwtnl, struct pipe_resource *index_buffer, unsigned index_size, int index_bias, unsigned min_index, unsigned max_index, unsigned prim, unsigned start, unsigned count) argument
H A Dsvga_draw_private.h111 unsigned max_index[QSZ]; member in struct:draw_cmd
152 unsigned max_index,
161 unsigned max_index,
H A Dsvga_pipe_draw.c224 unsigned max_index,
241 max_index - min_index + 1, instance_count );
251 min_index, max_index,
265 min_index, max_index,
389 info->max_index,
219 retry_draw_range_elements( struct svga_context *svga, struct pipe_resource *index_buffer, unsigned index_size, int index_bias, unsigned min_index, unsigned max_index, unsigned prim, unsigned start, unsigned count, unsigned instance_count, boolean do_retry ) argument
/external/mesa3d/src/mesa/drivers/dri/i965/
H A Dgen6_sol.c168 unsigned max_index = 0xffffffff; local
181 max_index = MIN2(max_index, max_for_this_buffer);
189 brw->sol.svbi_0_max_index = max_index;
H A Dbrw_draw.c415 GLuint max_index )
451 brw->vb.max_index = max_index;
543 GLuint max_index,
559 vbo_get_minmax_indices(ctx, prim, ib, &min_index, &max_index, nr_prims);
567 ib, min_index, max_index,
581 _tnl_draw_prims(ctx, arrays, prim, nr_prims, ib, min_index, max_index);
589 brw_try_draw_prims(ctx, arrays, prim, nr_prims, ib, min_index, max_index);
537 brw_draw_prims( struct gl_context *ctx, const struct _mesa_prim *prim, GLuint nr_prims, const struct _mesa_index_buffer *ib, GLboolean index_bounds_valid, GLuint min_index, GLuint max_index, struct gl_transform_feedback_object *tfb_vertcount ) argument
H A Dbrw_draw_upload.c362 unsigned int max_index = brw->vb.max_index; local
383 printf("%s %d..%d\n", __FUNCTION__, min_index, max_index);
445 * GTT. We would hope that the VBO's max_index would save us, but
479 * only the used elements [min_index, max_index] so long as we adjust all
498 copy_array_to_vbo_array(brw, upload[0], min_index, max_index,
517 copy_array_to_vbo_array(brw, upload[i], min_index, max_index,
/external/mesa3d/src/mesa/state_tracker/
H A Dst_draw.c196 GLuint max_index,
229 vbo_get_minmax_indices(ctx, prims, ib, &min_index, &max_index,
238 if (min_index != ~0 && max_index != ~0) {
240 info.max_index = max_index;
267 info.max_index = info.start + info.count - 1;
190 st_draw_vbo(struct gl_context *ctx, const struct _mesa_prim *prims, GLuint nr_prims, const struct _mesa_index_buffer *ib, GLboolean index_bounds_valid, GLuint min_index, GLuint max_index, struct gl_transform_feedback_object *tfb_vertcount) argument
H A Dst_draw_feedback.c99 GLuint max_index,
122 vbo_get_minmax_indices(ctx, prims, ib, &min_index, &max_index, nr_prims);
93 st_feedback_draw_vbo(struct gl_context *ctx, const struct _mesa_prim *prims, GLuint nr_prims, const struct _mesa_index_buffer *ib, GLboolean index_bounds_valid, GLuint min_index, GLuint max_index, struct gl_transform_feedback_object *tfb_vertcount) argument
/external/vixl/test/
H A Dtest-invalset.cc195 int max_index = 100 * kNPreallocatedElements; local
196 for (int i = 0; i <= max_index; i++) {
201 VIXL_CHECK(set.min_element() == Obj(-max_index, max_index));
205 VIXL_CHECK(set.min_element() == Obj(-max_index, max_index));
207 VIXL_CHECK(set.min_element() == Obj(-(max_index - 2), max_index - 2));
/external/mesa3d/src/gallium/drivers/i915/
H A Di915_prim_vbuf.c281 ushort max_index)
287 i915_render->vbo_max_index = max_index;
288 i915_render->vbo_max_used = MAX2(i915_render->vbo_max_used, i915_render->vertex_size * (max_index + 1));
293 i915_render->map_used_end = i915_render->vertex_size * (max_index + 1);
303 * Ensure that the given max_index given is not larger ushort max.
312 unsigned max_index)
316 if (max_index + i915_render->vbo_index < ((1 << 17) - 1))
279 i915_vbuf_render_unmap_vertices(struct vbuf_render *render, ushort min_index, ushort max_index) argument
311 i915_vbuf_ensure_index_bounds(struct vbuf_render *render, unsigned max_index) argument
/external/mesa3d/src/mesa/drivers/dri/nouveau/
H A Dnouveau_vbo_t.c224 GLuint min_index, GLuint max_index,
231 GLuint min_index, GLuint max_index)
248 if (max_index - min_index > vert_avail ||
257 max_index, TAG(vbo_render_prims), &limits);
289 int base, unsigned min_index, unsigned max_index, int *pdelta)
315 int n = max_index - min_index + 1;
359 GLuint max_index)
376 max_index, &delta);
409 GLuint max_index)
455 GLuint min_index, GLuint max_index,
228 vbo_maybe_split(struct gl_context *ctx, const struct gl_client_array **arrays, const struct _mesa_prim *prims, GLuint nr_prims, const struct _mesa_index_buffer *ib, GLuint min_index, GLuint max_index) argument
288 vbo_bind_vertices(struct gl_context *ctx, const struct gl_client_array **arrays, int base, unsigned min_index, unsigned max_index, int *pdelta) argument
356 vbo_draw_vbo(struct gl_context *ctx, const struct gl_client_array **arrays, const struct _mesa_prim *prims, GLuint nr_prims, const struct _mesa_index_buffer *ib, GLuint min_index, GLuint max_index) argument
406 vbo_draw_imm(struct gl_context *ctx, const struct gl_client_array **arrays, const struct _mesa_prim *prims, GLuint nr_prims, const struct _mesa_index_buffer *ib, GLuint min_index, GLuint max_index) argument
451 vbo_render_prims(struct gl_context *ctx, const struct _mesa_prim *prims, GLuint nr_prims, const struct _mesa_index_buffer *ib, GLboolean index_bounds_valid, GLuint min_index, GLuint max_index, struct gl_transform_feedback_object *tfb_vertcount) argument
487 vbo_check_render_prims(struct gl_context *ctx, const struct _mesa_prim *prims, GLuint nr_prims, const struct _mesa_index_buffer *ib, GLboolean index_bounds_valid, GLuint min_index, GLuint max_index, struct gl_transform_feedback_object *tfb_vertcount) argument
[all...]
/external/mesa3d/src/mesa/tnl/
H A Dt_draw.c416 GLuint max_index,
422 vbo_get_minmax_indices(ctx, prim, ib, &min_index, &max_index, nr_prims);
424 _tnl_draw_prims(ctx, arrays, prim, nr_prims, ib, min_index, max_index);
437 GLuint max_index)
456 printf("%s %d..%d\n", __FUNCTION__, min_index, max_index);
468 min_index, max_index,
472 else if ((GLint)max_index + max_basevertex > max) {
486 0, max_index + prim->basevertex,
519 bind_inputs(ctx, arrays, max_index + prim[i].basevertex + 1,
410 _tnl_vbo_draw_prims(struct gl_context *ctx, const struct _mesa_prim *prim, GLuint nr_prims, const struct _mesa_index_buffer *ib, GLboolean index_bounds_valid, GLuint min_index, GLuint max_index, struct gl_transform_feedback_object *tfb_vertcount) argument
431 _tnl_draw_prims( struct gl_context *ctx, const struct gl_client_array *arrays[], const struct _mesa_prim *prim, GLuint nr_prims, const struct _mesa_index_buffer *ib, GLuint min_index, GLuint max_index) argument
/external/mesa3d/src/gallium/auxiliary/translate/
H A Dtranslate_generic.c66 unsigned max_index; member in struct:translate_generic::__anon12006
628 * per-array max value, not the draw->pt.max_index value
635 index = MIN2(index, tg->attrib[attr].max_index);
744 unsigned max_index )
754 tg->attrib[i].max_index = max_index;
/external/mesa3d/src/gallium/drivers/nv30/
H A Dnv30_draw.c102 ushort min_index, ushort max_index)
101 nv30_render_unmap_vertices(struct vbuf_render *render, ushort min_index, ushort max_index) argument

Completed in 390 milliseconds

12