Searched refs:prim (Results 1 - 25 of 157) sorted by relevance

1234567

/external/mesa3d/src/mesa/vbo/
H A Dvbo_split_inplace.c46 const struct _mesa_prim *prim; member in struct:split_context
115 struct _mesa_prim *prim = &split->dstprim[split->dstprim_nr++]; local
116 memset(prim, 0, sizeof(*prim));
117 return prim;
122 const struct _mesa_prim *prim)
124 split->min_index = MIN2(split->min_index, prim->start);
125 split->max_index = MAX2(split->max_index, prim->start + prim->count - 1);
129 * primitive starting at 'prim
121 update_index_bounds(struct split_context *split, const struct _mesa_prim *prim) argument
132 get_max_vertices(struct split_context *split, const struct _mesa_prim *prim) argument
153 const struct _mesa_prim *prim = &split->prim[i]; local
264 vbo_split_inplace( struct gl_context *ctx, const struct gl_vertex_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...]
H A Dvbo_save_loopback.c86 const struct _mesa_prim *prim,
91 GLint start = prim->start;
92 GLint end = start + prim->count;
98 printf("loopback prim %s(%s,%s) verts %d..%d\n",
99 _mesa_lookup_prim_by_nr(prim->mode),
100 prim->begin ? "begin" : "..",
101 prim->end ? "end" : "..",
105 if (prim->begin) {
106 CALL_Begin(GET_DISPATCH(), ( prim->mode ));
129 if (prim
84 loopback_prim( struct gl_context *ctx, const GLfloat *buffer, const struct _mesa_prim *prim, GLuint wrap_count, GLuint vertex_size, const struct loopback_attr *la, GLuint nr ) argument
156 vbo_loopback_vertex_list( struct gl_context *ctx, const GLfloat *buffer, const GLubyte *attrsz, const struct _mesa_prim *prim, GLuint prim_count, GLuint wrap_count, GLuint vertex_size) argument
[all...]
H A Dvbo_split.h54 const struct _mesa_prim *prim,
66 const struct _mesa_prim *prim,
H A Dvbo_split.c103 const struct _mesa_prim *prim,
129 vbo_split_copy(ctx, arrays, prim, nr_prims, ib,
137 vbo_split_inplace(ctx, arrays, prim, nr_prims, ib,
151 vbo_split_inplace(ctx, arrays, prim, nr_prims, ib,
101 vbo_split_prims( struct gl_context *ctx, const struct gl_vertex_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_split_copy.c56 const struct _mesa_prim *prim; member in struct:copy_context
116 * off the prim:
231 struct _mesa_prim *prim = &copy->dstprim[copy->dstprim_nr]; local
233 prim->mode = mode;
234 prim->begin = begin_flag;
235 prim->num_instances = 1;
246 GLuint elt = copy->srcelt[elt_idx] + copy->prim->basevertex;
312 struct _mesa_prim *prim = &copy->dstprim[copy->dstprim_nr]; local
316 prim->end = end_flag;
317 prim
332 const struct _mesa_prim *prim = &copy->prim[i]; local
595 vbo_split_copy( struct gl_context *ctx, const struct gl_vertex_array *arrays[], const struct _mesa_prim *prim, GLuint nr_prims, const struct _mesa_index_buffer *ib, vbo_draw_func draw, const struct split_limits *limits ) argument
[all...]
/external/mesa3d/src/gallium/auxiliary/indices/
H A Du_unfilled_gen.py124 def name(intype, outtype, prim):
126 return 'generate_' + prim + '_' + outtype
128 return 'translate_' + prim + '_' + intype + '2' + outtype
130 def preamble(intype, outtype, prim):
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
[all...]
H A Du_unfilled_indices.c98 nr_lines(enum pipe_prim_type prim, unsigned nr) argument
100 switch (prim) {
129 u_unfilled_translator(enum pipe_prim_type prim, argument
141 assert(u_reduced_prim(prim) == PIPE_PRIM_TRIANGLES);
173 *out_translate = translate_line[in_idx][out_idx][prim];
174 *out_nr = nr_lines( prim, nr );
189 u_unfilled_generator(enum pipe_prim_type prim, argument
200 assert(u_reduced_prim(prim) == PIPE_PRIM_TRIANGLES);
220 *out_generate = generate_line[out_idx][prim];
221 *out_nr = nr_lines( prim, n
[all...]
H A Du_indices.h96 enum pipe_prim_type prim,
119 enum pipe_prim_type prim,
139 u_unfilled_translator(enum pipe_prim_type prim,
152 u_unfilled_generator(enum pipe_prim_type prim,
H A Du_indices.c62 * \param prim incoming PIPE_PRIM_x
75 enum pipe_prim_type prim,
100 if ((hw_mask & (1<<prim)) &&
110 *out_prim = prim;
116 *out_translate = translate[in_idx][out_idx][in_pv][out_pv][prim_restart][prim];
118 switch (prim) {
213 * \param prim the PIPE_PRIM_x that the user wants to draw
225 enum pipe_prim_type prim,
242 if ((hw_mask & (1<<prim)) &&
246 *out_prim = prim;
74 u_index_translator(unsigned hw_mask, enum pipe_prim_type prim, unsigned in_index_size, unsigned nr, unsigned in_pv, unsigned out_pv, unsigned prim_restart, enum pipe_prim_type *out_prim, unsigned *out_index_size, unsigned *out_nr, u_translate_func *out_translate) argument
224 u_index_generator(unsigned hw_mask, enum pipe_prim_type prim, unsigned start, unsigned nr, unsigned in_pv, unsigned out_pv, enum pipe_prim_type *out_prim, unsigned *out_index_size, unsigned *out_nr, u_generate_func *out_generate) argument
[all...]
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_prim.h50 u_decomposed_prim(enum pipe_prim_type prim) argument
52 switch (prim) {
66 return prim;
75 u_reduced_prim(enum pipe_prim_type prim) argument
77 switch (prim) {
95 u_assembled_prim(enum pipe_prim_type prim) argument
97 switch (prim) {
105 return prim;
117 u_prim_vertex_count(enum pipe_prim_type prim) argument
136 return (likely(prim < PIPE_PRIM_MA
144 u_prims_for_vertices(enum pipe_prim_type prim, unsigned num) argument
[all...]
/external/mesa3d/src/gallium/auxiliary/draw/
H A Ddraw_prim_assembler_tmp.h10 const unsigned prim = input_prims->prim; \
14 switch (prim) { \
18 debug_assert(!"unexpected primitive type in prim assembler"); \
H A Ddraw_so_emit_tmp.h10 const unsigned prim = input_prims->prim; \
15 switch (prim) { \
H A Ddraw_pt_util.c38 void draw_pt_split_prim(unsigned prim, unsigned *first, unsigned *incr) argument
40 switch (prim) {
H A Ddraw_pipe.c118 struct prim_header prim; local
120 prim.flags = 0;
121 prim.pad = 0;
122 prim.v[0] = (struct vertex_header *)v0;
124 draw->pipeline.first->point( draw->pipeline.first, &prim );
137 struct prim_header prim; local
139 prim.flags = flags;
140 prim.pad = 0;
141 prim.v[0] = (struct vertex_header *)v0;
142 prim
158 struct prim_header prim; local
[all...]
/external/mesa3d/src/gallium/drivers/svga/
H A Dsvga_draw_arrays.c93 enum pipe_prim_type prim,
106 if (hwtnl->index_cache[prim][i].buffer != NULL &&
107 hwtnl->index_cache[prim][i].generate == generate) {
108 if (compare(hwtnl->index_cache[prim][i].gen_nr, gen_nr, gen_type)) {
110 hwtnl->index_cache[prim][i].buffer);
118 pipe_resource_reference(&hwtnl->index_cache[prim][i].buffer,
123 i, hwtnl->index_cache[prim][i].gen_nr);
135 if (hwtnl->index_cache[prim][i].buffer == NULL) {
139 else if (hwtnl->index_cache[prim][i].gen_nr < smallest) {
141 smallest_size = hwtnl->index_cache[prim][
92 retrieve_or_generate_indices(struct svga_hwtnl *hwtnl, enum pipe_prim_type prim, unsigned gen_type, unsigned gen_nr, unsigned gen_size, u_generate_func generate, struct pipe_resource **out_buf) argument
176 simple_draw_arrays(struct svga_hwtnl *hwtnl, enum pipe_prim_type prim, unsigned start, unsigned count, unsigned start_instance, unsigned instance_count) argument
208 svga_hwtnl_draw_arrays(struct svga_hwtnl *hwtnl, enum pipe_prim_type prim, unsigned start, unsigned count, unsigned start_instance, unsigned instance_count) argument
[all...]
H A Dsvga_draw_private.h145 SVGA3dPrimitiveRange prim[QSZ]; member in struct:draw_cmd
193 enum pipe_prim_type prim)
197 if (u_reduced_prim(prim) != PIPE_PRIM_TRIANGLES) {
204 if ((prim == PIPE_PRIM_QUADS ||
205 prim == PIPE_PRIM_QUAD_STRIP ||
206 prim == PIPE_PRIM_POLYGON) &&
239 enum pipe_prim_type prim,
192 svga_need_unfilled_fallback(const struct svga_hwtnl *hwtnl, enum pipe_prim_type prim) argument
/external/fec/
H A Dinit_rs.h19 if(prim <= 0 || prim >= (1<<symsize))
79 rs->prim = prim;
82 /* Find prim-th root of 1, used in decoding */
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) {
H A Dinit_rs.c28 * prim = primitive element to generate polynomial roots
32 void *init_rs_common(int symsize,int gfpoly,int fcr,int prim, argument
H A Dinit_rs_char.c24 * prim = primitive element to generate polynomial roots
28 void *init_rs_char(int symsize,int gfpoly,int fcr,int prim, argument
H A Dinit_rs_int.c24 * prim = primitive element to generate polynomial roots
28 void *init_rs_int(int symsize,int gfpoly,int fcr,int prim, argument
H A Drs-common.h15 int prim; /* Primitive element, index form */ member in struct:rs
16 int iprim; /* prim-th root of 1, index form */
/external/mesa3d/src/mesa/state_tracker/
H A Dst_cb_feedback.c119 feedback_tri( struct draw_stage *stage, struct prim_header *prim )
125 feedback_vertex(fs->ctx, draw, prim->v[0]);
126 feedback_vertex(fs->ctx, draw, prim->v[1]);
127 feedback_vertex(fs->ctx, draw, prim->v[2]);
132 feedback_line( struct draw_stage *stage, struct prim_header *prim )
143 feedback_vertex(fs->ctx, draw, prim->v[0]);
144 feedback_vertex(fs->ctx, draw, prim->v[1]);
149 feedback_point( struct draw_stage *stage, struct prim_header *prim )
154 feedback_vertex(fs->ctx, draw, prim->v[0]);
207 select_tri( struct draw_stage *stage, struct prim_header *prim )
[all...]
H A Dst_cb_rasterpos.c64 struct _mesa_prim prim; member in struct:rastpos_stage
87 rastpos_tri( struct draw_stage *stage, struct prim_header *prim )
94 rastpos_line( struct draw_stage *stage, struct prim_header *prim )
131 rastpos_point(struct draw_stage *stage, struct prim_header *prim) argument
145 pos = prim->v[0]->data[0];
155 update_attrib(ctx, outputMapping, prim->v[0],
159 update_attrib(ctx, outputMapping, prim->v[0],
164 update_attrib(ctx, outputMapping, prim->v[0],
206 rs->prim.mode = GL_POINTS;
207 rs->prim
[all...]
/external/mesa3d/src/mesa/drivers/dri/i915/
H A Dintel_tris.h47 void intel_set_prim(struct intel_context *intel, uint32_t prim);
/external/mesa3d/src/mesa/drivers/dri/i965/
H A Dbrw_draw.c78 brw_set_prim(struct brw_context *brw, const struct _mesa_prim *prim) argument
81 uint32_t hw_prim = get_hw_prim_for_gl_prim(prim->mode);
83 DBG("PRIM: %s\n", _mesa_enum_to_string(prim->mode));
87 if (prim->mode == GL_QUAD_STRIP &&
93 if (prim->mode == GL_QUADS && prim->count == 4 &&
104 if (reduced_prim[prim->mode] != brw->reduced_primitive) {
105 brw->reduced_primitive = reduced_prim[prim->mode];
112 gen6_set_prim(struct brw_context *brw, const struct _mesa_prim *prim) argument
117 DBG("PRIM: %s\n", _mesa_enum_to_string(prim
143 trim(GLenum prim, GLuint length) argument
155 brw_emit_prim(struct brw_context *brw, const struct _mesa_prim *prim, uint32_t hw_prim, struct brw_transform_feedback_object *xfb_obj, unsigned stream) argument
[all...]

Completed in 607 milliseconds

1234567