Searched defs:prim (Results 1 - 25 of 85) sorted by relevance

1234

/external/mesa3d/src/gallium/auxiliary/draw/
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.c117 struct prim_header prim; local
119 prim.flags = 0;
120 prim.pad = 0;
121 prim.v[0] = (struct vertex_header *)v0;
123 draw->pipeline.first->point( draw->pipeline.first, &prim );
136 struct prim_header prim; local
138 prim.flags = flags;
139 prim.pad = 0;
140 prim.v[0] = (struct vertex_header *)v0;
141 prim
157 struct prim_header prim; local
[all...]
H A Ddraw_pt.c51 * - pipeline -- the prim pipeline: clipping, wide lines, etc
56 unsigned prim,
68 draw_pt_split_prim(prim, &first, &incr);
77 prim);
112 if (draw->pt.prim != prim || draw->pt.opt != opt) {
134 frontend->prepare( frontend, prim, middle, opt );
138 draw->pt.prim = prim;
223 draw_print_arrays(struct draw_context *draw, uint prim, in argument
55 draw_pt_arrays(struct draw_context *draw, unsigned prim, unsigned start, unsigned count) argument
357 const unsigned prim = info->mode; local
408 draw_arrays(struct draw_context *draw, unsigned prim, unsigned start, unsigned count) argument
[all...]
H A Ddraw_pt_emit.c43 unsigned prim; member in struct:pt_emit
51 unsigned prim,
67 emit->prim = prim;
69 draw->render->set_primitive(draw->render, emit->prim);
145 draw->render->set_primitive(draw->render, emit->prim);
215 draw->render->set_primitive(draw->render, emit->prim);
50 draw_pt_emit_prepare(struct pt_emit *emit, unsigned prim, unsigned *max_vertices) argument
H A Ddraw_pt_fetch_emit.c91 unsigned prim,
102 prim);
90 fetch_emit_prepare( struct draw_pt_middle_end *middle, unsigned prim, unsigned opt, unsigned *max_vertices ) argument
H A Ddraw_pt_fetch_shade_emit.c58 unsigned prim; member in struct:fetch_shade_emit
70 unsigned prim,
85 draw->render->set_primitive(draw->render, prim);
69 fse_prepare(struct draw_pt_middle_end *middle, unsigned prim, unsigned opt, unsigned *max_vertices) argument
H A Ddraw_pt_vsplit.c41 unsigned prim; member in struct:vsplit_frontend
172 vsplit->prim = in_prim;
175 middle->prepare(middle, vsplit->prim, opt, &vsplit->max_vertices);
/external/mesa3d/src/mesa/vbo/
H A Dvbo_exec.c108 count_tessellated_primitives(const struct _mesa_prim *prim) argument
111 switch (prim->mode) {
113 num_primitives = prim->count;
116 num_primitives = prim->count >= 2 ? prim->count - 1 : 0;
119 num_primitives = prim->count >= 2 ? prim->count : 0;
122 num_primitives = prim->count / 2;
127 num_primitives = prim->count >= 3 ? prim
[all...]
H A Dvbo_split.c103 const struct _mesa_prim *prim,
111 GLint max_basevertex = prim->basevertex;
115 max_basevertex = MAX2(max_basevertex, prim[i].basevertex);
137 vbo_split_copy(ctx, arrays, prim, nr_prims, ib,
145 vbo_split_inplace(ctx, arrays, prim, nr_prims, ib,
159 vbo_split_inplace(ctx, arrays, prim, nr_prims, ib,
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.c120 const struct _mesa_prim *prim,
149 tmp_prims = (struct _mesa_prim *)malloc(sizeof(*prim) * nr_prims);
152 tmp_prims[i] = prim[i];
156 prim = tmp_prims;
198 tmp_prims = (struct _mesa_prim *)malloc(sizeof(*prim) * nr_prims);
203 assert(prim[i].start >= min_index);
205 tmp_prims[i] = prim[i];
209 prim = tmp_prims;
234 prim,
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_exec_draw.c57 struct _mesa_prim *prim = &exec->vtx.prim[i]; local
58 printf(" prim %d: %s%s %d..%d %s %s\n",
60 _mesa_lookup_prim_by_nr(prim->mode),
61 prim->weak ? " (weak)" : "",
62 prim->start,
63 prim->start + prim->count,
64 prim->begin ? "BEGIN" : "(wrap)",
65 prim
[all...]
H A Dvbo_save_draw.c120 const struct _mesa_prim *prim = &node->prim[node->prim_count - 1]; local
121 if (prim->end)
124 ctx->Driver.CurrentExecPrimitive = prim->mode;
242 list->prim,
281 node->prim[0].begin) {
324 node->prim,
/external/mesa3d/src/gallium/drivers/nouveau/
H A Dnouveau_gldefs.h169 nvgl_primitive(unsigned prim) { argument
170 switch (prim) {
/external/mesa3d/src/gallium/drivers/nv50/
H A Dnv50_draw.c39 nv50_render_point(struct draw_stage *stage, struct prim_header *prim) argument
45 nv50_render_line(struct draw_stage *stage, struct prim_header *prim) argument
51 nv50_render_tri(struct draw_stage *stage, struct prim_header *prim) argument
H A Dnv50_push.c27 uint32_t prim; member in struct:push_context
183 nv50_prim_gl(unsigned prim) argument
185 switch (prim) {
270 ctx.prim = nv50_prim_gl(info->mode);
285 PUSH_DATA (ctx.push, ctx.prim);
307 ctx.prim |= NV50_3D_VERTEX_BEGIN_GL_INSTANCE_NEXT;
/external/mesa3d/src/gallium/drivers/nvc0/
H A Dnvc0_draw.c39 nvc0_render_point(struct draw_stage *stage, struct prim_header *prim) argument
45 nvc0_render_line(struct draw_stage *stage, struct prim_header *prim) argument
51 nvc0_render_tri(struct draw_stage *stage, struct prim_header *prim) argument
/external/mesa3d/src/mesa/drivers/dri/i965/
H A Dbrw_primitive_restart.c77 const struct _mesa_prim *prim,
101 switch(prim->mode) {
131 const struct _mesa_prim *prim,
169 if (can_cut_index_handle_prims(ctx, prim, nr_prims, ib)) {
173 brw_draw_prims(ctx, prim, nr_prims, ib, GL_FALSE, -1, -1, NULL);
179 vbo_sw_primitive_restart(ctx, prim, nr_prims, ib);
76 can_cut_index_handle_prims(struct gl_context *ctx, const struct _mesa_prim *prim, GLuint nr_prims, const struct _mesa_index_buffer *ib) argument
130 brw_handle_primitive_restart(struct gl_context *ctx, const struct _mesa_prim *prim, GLuint nr_prims, const struct _mesa_index_buffer *ib) argument
/external/mesa3d/src/gallium/auxiliary/indices/
H A Du_indices.c44 unsigned prim,
64 if ((hw_mask & (1<<prim)) &&
73 *out_prim = prim;
79 switch (prim) {
81 *out_translate = translate[in_idx][out_idx][in_pv][out_pv][prim];
87 *out_translate = translate[in_idx][out_idx][in_pv][out_pv][prim];
93 *out_translate = translate[in_idx][out_idx][in_pv][out_pv][prim];
99 *out_translate = translate[in_idx][out_idx][in_pv][out_pv][prim];
105 *out_translate = translate[in_idx][out_idx][in_pv][out_pv][prim];
111 *out_translate = translate[in_idx][out_idx][in_pv][out_pv][prim];
43 u_index_translator( unsigned hw_mask, unsigned prim, unsigned in_index_size, unsigned nr, unsigned in_pv, unsigned out_pv, unsigned *out_prim, unsigned *out_index_size, unsigned *out_nr, u_translate_func *out_translate ) argument
156 u_index_generator( unsigned hw_mask, unsigned prim, unsigned start, unsigned nr, unsigned in_pv, unsigned out_pv, unsigned *out_prim, unsigned *out_index_size, unsigned *out_nr, u_generate_func *out_generate ) argument
[all...]
H A Du_unfilled_indices.c79 static unsigned nr_lines( unsigned prim, argument
82 switch (prim) {
103 int u_unfilled_translator( unsigned prim, argument
147 *out_translate = translate_line[in_idx][out_idx][prim];
148 *out_nr = nr_lines( prim, nr );
155 int u_unfilled_generator( unsigned prim, argument
185 *out_generate = generate_line[out_idx][prim];
186 *out_nr = nr_lines( prim, nr );
/external/mesa3d/src/mesa/drivers/dri/nouveau/
H A Dnouveau_gldefs.h195 nvgl_primitive(unsigned prim) argument
197 switch (prim) {
/external/mesa3d/src/gallium/drivers/i915/
H A Di915_prim_emit.c129 struct prim_header *prim,
168 emit_hw_vertex(i915, prim->v[i]);
173 setup_tri( struct draw_stage *stage, struct prim_header *prim )
175 emit_prim( stage, prim, PRIM3D_TRILIST, 3 );
180 setup_line(struct draw_stage *stage, struct prim_header *prim) argument
182 emit_prim( stage, prim, PRIM3D_LINELIST, 2 );
187 setup_point(struct draw_stage *stage, struct prim_header *prim) argument
189 emit_prim( stage, prim, PRIM3D_POINTLIST, 1 );
128 emit_prim( struct draw_stage *stage, struct prim_header *prim, unsigned hwprim, unsigned nr ) argument
/external/mesa3d/src/gallium/drivers/svga/
H A Dsvga_swtnl_private.h46 unsigned prim; member in struct:svga_vbuf_render
/external/mesa3d/src/mesa/state_tracker/
H A Dst_draw.c163 translate_prim(const struct gl_context *ctx, unsigned prim) argument
172 * prim type! We do that wherever this function is called.
174 if (prim == GL_QUAD_STRIP &&
178 prim = GL_TRIANGLE_STRIP;
180 return prim;
/external/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_setup_vbuf.c117 lp_setup_set_primitive(struct vbuf_render *vbr, unsigned prim) argument
119 lp_setup_context(vbr)->prim = prim;
148 switch (setup->prim) {
346 switch (setup->prim) {
/external/mesa3d/src/gallium/drivers/nv30/
H A Dnv30_push.c51 uint32_t prim; member in struct:push_context
251 ctx.prim = nv30_prim_gl(info->mode);
255 PUSH_DATA (ctx.push, ctx.prim);

Completed in 264 milliseconds

1234