Home
last modified time | relevance | path

Searched refs:prim (Results 1 – 25 of 162) sorted by relevance

1234567

/external/mesa3d/src/mesa/vbo/
Dvbo_split_inplace.c46 const struct _mesa_prim *prim; member
115 struct _mesa_prim *prim = &split->dstprim[split->dstprim_nr++]; in next_outprim() local
116 memset(prim, 0, sizeof(*prim)); in next_outprim()
117 return prim; in next_outprim()
122 const struct _mesa_prim *prim) in update_index_bounds() argument
124 split->min_index = MIN2(split->min_index, prim->start); in update_index_bounds()
125 split->max_index = MAX2(split->max_index, prim->start + prim->count - 1); in update_index_bounds()
133 const struct _mesa_prim *prim) in get_max_vertices() argument
135 if ((prim->start > split->min_index && in get_max_vertices()
136 prim->start - split->min_index >= split->limit) || in get_max_vertices()
[all …]
Dvbo_save_loopback.c86 const struct _mesa_prim *prim, in loopback_prim() argument
91 GLint start = prim->start; in loopback_prim()
92 GLint end = start + prim->count; in loopback_prim()
99 _mesa_lookup_prim_by_nr(prim->mode), in loopback_prim()
100 prim->begin ? "begin" : "..", in loopback_prim()
101 prim->end ? "end" : "..", in loopback_prim()
105 if (prim->begin) { in loopback_prim()
106 CALL_Begin(GET_DISPATCH(), ( prim->mode )); in loopback_prim()
129 if (prim->end) { in loopback_prim()
140 const struct _mesa_prim *prim ) in loopback_weak_prim() argument
[all …]
Dvbo_split_copy.c56 const struct _mesa_prim *prim; member
231 struct _mesa_prim *prim = &copy->dstprim[copy->dstprim_nr]; in begin() local
233 prim->mode = mode; in begin()
234 prim->begin = begin_flag; in begin()
235 prim->num_instances = 1; in begin()
246 GLuint elt = copy->srcelt[elt_idx] + copy->prim->basevertex; in elt()
312 struct _mesa_prim *prim = &copy->dstprim[copy->dstprim_nr]; in end() local
316 prim->end = end_flag; in end()
317 prim->count = copy->dstelt_nr - prim->start; in end()
332 const struct _mesa_prim *prim = &copy->prim[i]; in replay_elts() local
[all …]
Dvbo_exec_array.c410 struct _mesa_prim prim[2]; in vbo_draw_arrays() local
415 memset(prim, 0, sizeof(prim)); in vbo_draw_arrays()
416 prim[0].begin = 1; in vbo_draw_arrays()
417 prim[0].end = 1; in vbo_draw_arrays()
418 prim[0].mode = mode; in vbo_draw_arrays()
419 prim[0].num_instances = numInstances; in vbo_draw_arrays()
420 prim[0].base_instance = baseInstance; in vbo_draw_arrays()
421 prim[0].is_indirect = 0; in vbo_draw_arrays()
432 prim[0].start = start + 1; in vbo_draw_arrays()
433 prim[0].count = count - 1; in vbo_draw_arrays()
[all …]
Dvbo_save_api.c107 const struct _mesa_prim *prim = &node->prim[node->prim_count - 1]; in _save_copy_vertices() local
108 GLuint nr = prim->count; in _save_copy_vertices()
110 const fi_type *src = src_buffer + prim->start * sz; in _save_copy_vertices()
114 if (prim->end) in _save_copy_vertices()
117 switch (prim->mode) { in _save_copy_vertices()
313 save->prim = save->prim_store->buffer + save->prim_store->used; in _save_reset_counters()
375 struct _mesa_prim *prim = &node->prim[node->prim_count - 1]; in convert_line_loop_to_strip() local
377 assert(prim->mode == GL_LINE_LOOP); in convert_line_loop_to_strip()
379 if (prim->end) { in convert_line_loop_to_strip()
385 const fi_type *src = save->buffer + prim->start * sz; in convert_line_loop_to_strip()
[all …]
Dvbo_context.c148 struct _mesa_prim *prim; in vbo_draw_indirect_prims() local
151 prim = calloc(draw_count, sizeof(*prim)); in vbo_draw_indirect_prims()
152 if (prim == NULL) { in vbo_draw_indirect_prims()
160 prim[0].begin = 1; in vbo_draw_indirect_prims()
161 prim[draw_count - 1].end = 1; in vbo_draw_indirect_prims()
163 prim[i].mode = mode; in vbo_draw_indirect_prims()
164 prim[i].indexed = !!ib; in vbo_draw_indirect_prims()
165 prim[i].indirect_offset = indirect_offset; in vbo_draw_indirect_prims()
166 prim[i].is_indirect = 1; in vbo_draw_indirect_prims()
167 prim[i].draw_id = i; in vbo_draw_indirect_prims()
[all …]
Dvbo_rebase.c126 const struct _mesa_prim *prim, in vbo_rebase_prims() argument
155 tmp_prims = malloc(sizeof(*prim) * nr_prims); in vbo_rebase_prims()
163 tmp_prims[i] = prim[i]; in vbo_rebase_prims()
167 prim = tmp_prims; in vbo_rebase_prims()
214 tmp_prims = malloc(sizeof(*prim) * nr_prims); in vbo_rebase_prims()
224 assert(prim[i].start >= min_index); in vbo_rebase_prims()
226 tmp_prims[i] = prim[i]; in vbo_rebase_prims()
230 prim = tmp_prims; in vbo_rebase_prims()
255 prim, in vbo_rebase_prims()
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_draw_arrays.c93 enum pipe_prim_type prim, in retrieve_or_generate_indices() argument
106 if (hwtnl->index_cache[prim][i].buffer != NULL && in retrieve_or_generate_indices()
107 hwtnl->index_cache[prim][i].generate == generate) { in retrieve_or_generate_indices()
108 if (compare(hwtnl->index_cache[prim][i].gen_nr, gen_nr, gen_type)) { in retrieve_or_generate_indices()
110 hwtnl->index_cache[prim][i].buffer); in retrieve_or_generate_indices()
118 pipe_resource_reference(&hwtnl->index_cache[prim][i].buffer, in retrieve_or_generate_indices()
123 i, hwtnl->index_cache[prim][i].gen_nr); in retrieve_or_generate_indices()
135 if (hwtnl->index_cache[prim][i].buffer == NULL) { in retrieve_or_generate_indices()
139 else if (hwtnl->index_cache[prim][i].gen_nr < smallest) { in retrieve_or_generate_indices()
141 smallest_size = hwtnl->index_cache[prim][i].gen_nr; in retrieve_or_generate_indices()
[all …]
Dsvga_draw_private.h145 SVGA3dPrimitiveRange prim[QSZ]; member
193 enum pipe_prim_type prim) in svga_need_unfilled_fallback() argument
197 if (u_reduced_prim(prim) != PIPE_PRIM_TRIANGLES) { in svga_need_unfilled_fallback()
204 if ((prim == PIPE_PRIM_QUADS || in svga_need_unfilled_fallback()
205 prim == PIPE_PRIM_QUAD_STRIP || in svga_need_unfilled_fallback()
206 prim == PIPE_PRIM_POLYGON) && in svga_need_unfilled_fallback()
239 enum pipe_prim_type prim,
/external/mesa3d/src/gallium/auxiliary/indices/
Du_unfilled_gen.py124 def name(intype, outtype, prim): argument
126 return 'generate_' + prim + '_' + outtype
128 return 'translate_' + prim + '_' + intype + '2' + outtype
130 def preamble(intype, outtype, prim): argument
131 print 'static void ' + name( intype, outtype, prim ) + '('
153 preamble(intype, outtype, prim='tris')
161 preamble(intype, outtype, prim='tristrip')
169 preamble(intype, outtype, prim='trifan')
178 preamble(intype, outtype, prim='polygon')
186 preamble(intype, outtype, prim='quads')
[all …]
Du_indices_gen.py186 def name(intype, outtype, inpv, outpv, pr, prim): argument
188 return 'generate_' + prim + '_' + outtype + '_' + inpv + '2' + outpv
190 … return 'translate_' + prim + '_' + intype + '2' + outtype + '_' + inpv + '2' + outpv + '_' + pr
192 def preamble(intype, outtype, inpv, outpv, pr, prim): argument
193 print 'static void ' + name( intype, outtype, inpv, outpv, pr, prim ) + '('
215 preamble(intype, outtype, inpv, outpv, pr, prim='points')
222 preamble(intype, outtype, inpv, outpv, pr, prim='lines')
229 preamble(intype, outtype, inpv, outpv, pr, prim='linestrip')
236 preamble(intype, outtype, inpv, outpv, pr, prim='lineloop')
244 preamble(intype, outtype, inpv, outpv, pr, prim='tris')
[all …]
Du_unfilled_indices.c98 nr_lines(enum pipe_prim_type prim, unsigned nr) in nr_lines() argument
100 switch (prim) { in nr_lines()
129 u_unfilled_translator(enum pipe_prim_type prim, in u_unfilled_translator() argument
141 assert(u_reduced_prim(prim) == PIPE_PRIM_TRIANGLES); in u_unfilled_translator()
173 *out_translate = translate_line[in_idx][out_idx][prim]; in u_unfilled_translator()
174 *out_nr = nr_lines( prim, nr ); in u_unfilled_translator()
189 u_unfilled_generator(enum pipe_prim_type prim, in u_unfilled_generator() argument
200 assert(u_reduced_prim(prim) == PIPE_PRIM_TRIANGLES); in u_unfilled_generator()
220 *out_generate = generate_line[out_idx][prim]; in u_unfilled_generator()
221 *out_nr = nr_lines( prim, nr ); in u_unfilled_generator()
Du_indices.c75 enum pipe_prim_type prim, in u_index_translator() argument
100 if ((hw_mask & (1<<prim)) && in u_index_translator()
110 *out_prim = prim; in u_index_translator()
116 *out_translate = translate[in_idx][out_idx][in_pv][out_pv][prim_restart][prim]; in u_index_translator()
118 switch (prim) { in u_index_translator()
225 enum pipe_prim_type prim, in u_index_generator() argument
242 if ((hw_mask & (1<<prim)) && in u_index_generator()
246 *out_prim = prim; in u_index_generator()
251 *out_generate = generate[out_idx][in_pv][out_pv][prim]; in u_index_generator()
253 switch (prim) { in u_index_generator()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_draw.c78 brw_set_prim(struct brw_context *brw, const struct _mesa_prim *prim) in brw_set_prim() argument
81 uint32_t hw_prim = get_hw_prim_for_gl_prim(prim->mode); in brw_set_prim()
83 DBG("PRIM: %s\n", _mesa_enum_to_string(prim->mode)); in brw_set_prim()
87 if (prim->mode == GL_QUAD_STRIP && in brw_set_prim()
93 if (prim->mode == GL_QUADS && prim->count == 4 && in brw_set_prim()
104 if (reduced_prim[prim->mode] != brw->reduced_primitive) { in brw_set_prim()
105 brw->reduced_primitive = reduced_prim[prim->mode]; in brw_set_prim()
112 gen6_set_prim(struct brw_context *brw, const struct _mesa_prim *prim) in gen6_set_prim() argument
117 DBG("PRIM: %s\n", _mesa_enum_to_string(prim->mode)); in gen6_set_prim()
119 if (prim->mode == GL_PATCHES) { in gen6_set_prim()
[all …]
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_tris.c59 static void intelRenderPrimitive(struct gl_context * ctx, GLenum prim);
66 GLuint used = intel->batch.used - intel->prim.start_ptr; in intel_flush_inline_primitive()
68 assert(intel->prim.primitive != ~0); in intel_flush_inline_primitive()
75 intel->batch.map[intel->prim.start_ptr] = in intel_flush_inline_primitive()
76 _3DPRIMITIVE | intel->prim.primitive | (used - 2); in intel_flush_inline_primitive()
81 intel->batch.used = intel->prim.start_ptr; in intel_flush_inline_primitive()
84 intel->prim.primitive = ~0; in intel_flush_inline_primitive()
85 intel->prim.start_ptr = 0; in intel_flush_inline_primitive()
86 intel->prim.flush = 0; in intel_flush_inline_primitive()
89 static void intel_start_inline(struct intel_context *intel, uint32_t prim) in intel_start_inline() argument
[all …]
Dintel_render.c108 intelDmaPrimitive(struct intel_context *intel, GLenum prim) in intelDmaPrimitive() argument
111 fprintf(stderr, "%s %s\n", __func__, _mesa_enum_to_string(prim)); in intelDmaPrimitive()
113 intel->vtbl.reduced_primitive_state(intel, reduced_prim[prim]); in intelDmaPrimitive()
114 intel_set_prim(intel, hw_prim[prim]); in intelDmaPrimitive()
139 ret = (INTEL_VB_SIZE - intel->prim.current_offset); in intel_get_current_max()
145 #define INIT( prim ) \ argument
147 intelDmaPrimitive( intel, prim ); \
183 GLuint prim = VB->Primitive[i].mode; in choose_render() local
190 nr_rverts += length * scale_prim[prim & PRIM_MODE_MASK]; in choose_render()
192 if (reduced_prim[prim & PRIM_MODE_MASK] != rprim) { in choose_render()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_prim.h50 u_decomposed_prim(enum pipe_prim_type prim) in u_decomposed_prim() argument
52 switch (prim) { in u_decomposed_prim()
66 return prim; in u_decomposed_prim()
75 u_reduced_prim(enum pipe_prim_type prim) in u_reduced_prim() argument
77 switch (prim) { in u_reduced_prim()
95 u_assembled_prim(enum pipe_prim_type prim) in u_assembled_prim() argument
97 switch (prim) { in u_assembled_prim()
105 return prim; in u_assembled_prim()
117 u_prim_vertex_count(enum pipe_prim_type prim) in u_prim_vertex_count() argument
136 return (likely(prim < PIPE_PRIM_MAX)) ? &prim_table[prim] : NULL; in u_prim_vertex_count()
[all …]
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_pipe.c118 struct prim_header prim; in do_point() local
120 prim.flags = 0; in do_point()
121 prim.pad = 0; in do_point()
122 prim.v[0] = (struct vertex_header *)v0; in do_point()
124 draw->pipeline.first->point( draw->pipeline.first, &prim ); in do_point()
137 struct prim_header prim; in do_line() local
139 prim.flags = flags; in do_line()
140 prim.pad = 0; in do_line()
141 prim.v[0] = (struct vertex_header *)v0; in do_line()
142 prim.v[1] = (struct vertex_header *)v1; in do_line()
[all …]
Ddraw_pipe_vbuf.c156 struct prim_header *prim ) in vbuf_tri() argument
164 vbuf->indices[vbuf->nr_indices++] = emit_vertex( vbuf, prim->v[i] ); in vbuf_tri()
171 struct prim_header *prim ) in vbuf_line() argument
179 vbuf->indices[vbuf->nr_indices++] = emit_vertex( vbuf, prim->v[i] ); in vbuf_line()
186 struct prim_header *prim ) in vbuf_point() argument
192 vbuf->indices[vbuf->nr_indices++] = emit_vertex( vbuf, prim->v[0] ); in vbuf_point()
204 vbuf_start_prim( struct vbuf_stage *vbuf, uint prim ) in vbuf_start_prim() argument
211 vbuf->render->set_primitive(vbuf->render, prim); in vbuf_start_prim()
286 struct prim_header *prim ) in vbuf_first_tri() argument
293 stage->tri( stage, prim ); in vbuf_first_tri()
[all …]
/external/mesa3d/src/mesa/state_tracker/
Dst_cb_feedback.c119 feedback_tri( struct draw_stage *stage, struct prim_header *prim ) in feedback_tri() argument
125 feedback_vertex(fs->ctx, draw, prim->v[0]); in feedback_tri()
126 feedback_vertex(fs->ctx, draw, prim->v[1]); in feedback_tri()
127 feedback_vertex(fs->ctx, draw, prim->v[2]); in feedback_tri()
132 feedback_line( struct draw_stage *stage, struct prim_header *prim ) in feedback_line() argument
143 feedback_vertex(fs->ctx, draw, prim->v[0]); in feedback_line()
144 feedback_vertex(fs->ctx, draw, prim->v[1]); in feedback_line()
149 feedback_point( struct draw_stage *stage, struct prim_header *prim ) in feedback_point() argument
154 feedback_vertex(fs->ctx, draw, prim->v[0]); in feedback_point()
207 select_tri( struct draw_stage *stage, struct prim_header *prim ) in select_tri() argument
[all …]
Dst_cb_rasterpos.c64 struct _mesa_prim prim; member
87 rastpos_tri( struct draw_stage *stage, struct prim_header *prim ) in rastpos_tri() argument
94 rastpos_line( struct draw_stage *stage, struct prim_header *prim ) in rastpos_line() argument
131 rastpos_point(struct draw_stage *stage, struct prim_header *prim) in rastpos_point() argument
145 pos = prim->v[0]->data[0]; in rastpos_point()
155 update_attrib(ctx, outputMapping, prim->v[0], in rastpos_point()
159 update_attrib(ctx, outputMapping, prim->v[0], in rastpos_point()
164 update_attrib(ctx, outputMapping, prim->v[0], in rastpos_point()
206 rs->prim.mode = GL_POINTS; in new_draw_rastpos_stage()
207 rs->prim.indexed = 0; in new_draw_rastpos_stage()
[all …]
/external/fec/
Dinit_rs.h19 if(prim <= 0 || prim >= (1<<symsize))
79 rs->prim = prim;
83 for(iprim=1;(iprim % prim) != 0;iprim += rs->nn)
85 rs->iprim = iprim / prim;
88 for (i = 0,root=fcr*prim; i < nroots; i++,root += prim) {
/external/mesa3d/src/mesa/tnl/
Dt_draw.c396 const struct _mesa_prim *prim, in bind_prims() argument
402 VB->Primitive = prim; in bind_prims()
422 const struct _mesa_prim *prim, in _tnl_draw_prims() argument
436 GLint max_basevertex = prim->basevertex; in _tnl_draw_prims()
440 vbo_get_minmax_indices(ctx, prim, ib, &min_index, &max_index, nr_prims); in _tnl_draw_prims()
449 max_basevertex = MAX2(max_basevertex, prim[i].basevertex); in _tnl_draw_prims()
456 _mesa_enum_to_string(prim[i].mode), in _tnl_draw_prims()
457 prim[i].start, in _tnl_draw_prims()
458 prim[i].count); in _tnl_draw_prims()
464 vbo_rebase_prims( ctx, arrays, prim, nr_prims, ib, in _tnl_draw_prims()
[all …]
/external/mesa3d/src/gallium/drivers/i915/
Di915_prim_emit.c129 struct prim_header *prim, in emit_prim() argument
168 emit_hw_vertex(i915, prim->v[i]); in emit_prim()
173 setup_tri( struct draw_stage *stage, struct prim_header *prim ) in setup_tri() argument
175 emit_prim( stage, prim, PRIM3D_TRILIST, 3 ); in setup_tri()
180 setup_line(struct draw_stage *stage, struct prim_header *prim) in setup_line() argument
182 emit_prim( stage, prim, PRIM3D_LINELIST, 2 ); in setup_line()
187 setup_point(struct draw_stage *stage, struct prim_header *prim) in setup_point() argument
189 emit_prim( stage, prim, PRIM3D_POINTLIST, 1 ); in setup_point()
/external/mesa3d/src/intel/vulkan/
DgenX_gpu_memcpy.c221 anv_batch_emit(&cmd_buffer->batch, GENX(3DPRIMITIVE), prim) { in genX()
222 prim.VertexAccessType = SEQUENTIAL; in genX()
223 prim.PrimitiveTopologyType = _3DPRIM_POINTLIST; in genX()
224 prim.VertexCountPerInstance = size / bs; in genX()
225 prim.StartVertexLocation = 0; in genX()
226 prim.InstanceCount = 1; in genX()
227 prim.StartInstanceLocation = 0; in genX()
228 prim.BaseVertexLocation = 0; in genX()

1234567