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

1234567891011>>

/xsrc/external/mit/MesaLib.old/dist/src/mesa/tnl/
H A Dt_split_inplace.c47 const struct _mesa_prim *prim; member in struct:split_context
112 struct _mesa_prim *prim = &split->dstprim[split->dstprim_nr++]; local in function:next_outprim
113 memset(prim, 0, sizeof(*prim));
114 return prim;
121 const struct _mesa_prim *prim)
123 split->min_index = MIN2(split->min_index, prim->start);
124 split->max_index = MAX2(split->max_index, prim->start + prim->count - 1);
129 * primitive starting at 'prim
120 update_index_bounds(struct split_context * split,const struct _mesa_prim * prim) argument
133 get_max_vertices(struct split_context * split,const struct _mesa_prim * prim) argument
156 const struct _mesa_prim *prim = &split->prim[i]; local in function:split_prims
267 _tnl_split_inplace(struct gl_context * ctx,const struct tnl_vertex_array * arrays,const struct _mesa_prim * prim,GLuint nr_prims,const struct _mesa_index_buffer * ib,GLuint min_index,GLuint max_index,tnl_draw_func draw,const struct split_limits * limits) argument
[all...]
H A Dt_rebase.h32 const struct _mesa_prim *prim,
H A Dt_split.h55 const struct _mesa_prim *prim,
68 const struct _mesa_prim *prim,
/xsrc/external/mit/MesaLib/dist/src/mesa/tnl/
H A Dt_split_inplace.c47 const struct _mesa_prim *prim; member in struct:split_context
115 struct _mesa_prim *prim = &split->dstprim[split->dstprim_nr++]; local in function:next_outprim
116 memset(prim, 0, sizeof(*prim));
117 return prim;
124 const struct _mesa_prim *prim)
126 split->min_index = MIN2(split->min_index, prim->start);
127 split->max_index = MAX2(split->max_index, prim->start + prim->count - 1);
132 * primitive starting at 'prim
123 update_index_bounds(struct split_context * split,const struct _mesa_prim * prim) argument
136 get_max_vertices(struct split_context * split,const struct _mesa_prim * prim) argument
159 const struct _mesa_prim *prim = &split->prim[i]; local in function:split_prims
265 _tnl_split_inplace(struct gl_context * ctx,const struct tnl_vertex_array * arrays,const struct _mesa_prim * prim,GLuint nr_prims,const struct _mesa_index_buffer * ib,GLuint num_instances,GLuint base_instance,tnl_draw_func draw,const struct split_limits * limits) argument
[all...]
H A Dt_rebase.c106 const struct _mesa_prim *prim,
135 tmp_prims = malloc(sizeof(*prim) * nr_prims);
143 tmp_prims[i] = prim[i];
147 prim = tmp_prims;
149 unsigned start = prim[0].start;
151 if (prim[i].start != start) {
154 "(prim[0].start = %u vs. prim[%u].start = %u)\n",
155 __func__, start, i, prim[i].start);
158 t_rebase_prims(ctx, arrays, &prim[
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/auxiliary/indices/
H A Du_unfilled_gen.py125 def name(intype, outtype, prim):
127 return 'generate_' + prim + '_' + outtype
129 return 'translate_' + prim + '_' + intype + '2' + outtype
131 def preamble(intype, outtype, prim):
132 print('static void ' + name( intype, outtype, prim ) + '(')
154 preamble(intype, outtype, prim='tris')
162 preamble(intype, outtype, prim='tristrip')
170 preamble(intype, outtype, prim='trifan')
179 preamble(intype, outtype, prim='polygon')
187 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...]
/xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/indices/
H A Du_unfilled_gen.py123 def name(intype, outtype, prim):
125 return 'generate_' + prim + '_' + outtype
127 return 'translate_' + prim + '_' + intype + '2' + outtype
129 def preamble(intype, outtype, prim):
130 print('static void ' + name( intype, outtype, prim ) + '(')
152 preamble(intype, outtype, prim='tris')
160 preamble(intype, outtype, prim='tristrip')
168 preamble(intype, outtype, prim='trifan')
177 preamble(intype, outtype, prim='polygon')
185 preamble(intype, outtype, prim
[all...]
H A Du_indices.c63 u_index_prim_type_convert(unsigned hw_mask, enum pipe_prim_type prim, bool pv_matches) argument
65 if ((hw_mask & (1<<prim)) && pv_matches)
66 return prim;
68 switch (prim) {
110 * \param prim incoming PIPE_PRIM_x
123 enum pipe_prim_type prim,
148 if ((hw_mask & (1<<prim)) &&
158 *out_prim = prim;
163 *out_translate = translate[in_idx][out_idx][in_pv][out_pv][prim_restart][prim];
164 *out_prim = u_index_prim_type_convert(hw_mask, prim, in_p
122 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
171 u_index_count_converted_indices(unsigned hw_mask,bool pv_matches,enum pipe_prim_type prim,unsigned nr) argument
237 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...]
H A Du_indices.h87 u_index_prim_type_convert(unsigned hw_mask, enum pipe_prim_type prim, bool pv_matches);
96 u_index_count_converted_indices(unsigned hw_mask, bool pv_matches, enum pipe_prim_type prim, unsigned nr);
108 enum pipe_prim_type prim,
131 enum pipe_prim_type prim,
151 u_unfilled_translator(enum pipe_prim_type prim,
164 u_unfilled_generator(enum pipe_prim_type prim,
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...]
/xsrc/external/mit/MesaLib.old/dist/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...]
H A Du_prim.c28 u_prim_name(enum pipe_prim_type prim) argument
47 return debug_dump_enum(names, prim);
/xsrc/external/mit/MesaLib.old/dist/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) {
/xsrc/external/mit/MesaLib.old/dist/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.h144 SVGA3dPrimitiveRange prim[QSZ]; member in struct:draw_cmd
192 enum pipe_prim_type prim)
194 if (u_reduced_prim(prim) != PIPE_PRIM_TRIANGLES) {
199 if ((prim == PIPE_PRIM_QUADS ||
200 prim == PIPE_PRIM_QUAD_STRIP ||
201 prim == PIPE_PRIM_POLYGON) &&
230 enum pipe_prim_type prim,
191 svga_need_unfilled_fallback(const struct svga_hwtnl * hwtnl,enum pipe_prim_type prim) argument
/xsrc/external/mit/MesaLib/dist/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,ubyte vertices_per_patch) argument
210 svga_hwtnl_draw_arrays(struct svga_hwtnl * hwtnl,enum pipe_prim_type prim,unsigned start,unsigned count,unsigned start_instance,unsigned instance_count,ubyte vertices_per_patch) argument
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/draw/
H A Ddraw_so_emit_tmp.h10 const unsigned prim = input_prims->prim; \
15 switch (prim) { \
H A Ddraw_prim_assembler_tmp.h10 const unsigned prim = input_prims->prim; \
13 switch (prim) { \
15 debug_assert(!"unexpected primitive type in prim assembler"); \
/xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/util/
H A Du_prim.h51 u_decomposed_prim(enum pipe_prim_type prim) argument
53 switch (prim) {
67 return prim;
76 u_reduced_prim(enum pipe_prim_type prim) argument
78 switch (prim) {
96 u_assembled_prim(enum pipe_prim_type prim) argument
98 switch (prim) {
106 return prim;
118 u_prim_vertex_count(enum pipe_prim_type prim) argument
137 return (likely(prim < PIPE_PRIM_MA
145 u_prims_for_vertices(enum pipe_prim_type prim,unsigned num) argument
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/mesa/state_tracker/
H A Dst_cb_rasterpos.c68 struct _mesa_prim prim; member in struct:rastpos_stage
91 rastpos_tri( struct draw_stage *stage, struct prim_header *prim ) argument
98 rastpos_line( struct draw_stage *stage, struct prim_header *prim ) argument
137 rastpos_point(struct draw_stage *stage, struct prim_header *prim) argument
151 pos = prim->v[0]->data[0];
161 update_attrib(ctx, outputMapping, prim->v[0],
165 update_attrib(ctx, outputMapping, prim->v[0],
170 update_attrib(ctx, outputMapping, prim->v[0],
206 rs->prim.mode = GL_POINTS;
207 rs->prim
[all...]
H A Dst_cb_feedback.c121 feedback_tri( struct draw_stage *stage, struct prim_header *prim ) argument
127 feedback_vertex(fs->ctx, draw, prim->v[0]);
128 feedback_vertex(fs->ctx, draw, prim->v[1]);
129 feedback_vertex(fs->ctx, draw, prim->v[2]);
134 feedback_line( struct draw_stage *stage, struct prim_header *prim ) argument
145 feedback_vertex(fs->ctx, draw, prim->v[0]);
146 feedback_vertex(fs->ctx, draw, prim->v[1]);
151 feedback_point( struct draw_stage *stage, struct prim_header *prim ) argument
156 feedback_vertex(fs->ctx, draw, prim->v[0]);
209 select_tri( struct draw_stage *stage, struct prim_header *prim ) argument
218 select_line(struct draw_stage * stage,struct prim_header * prim) argument
227 select_point(struct draw_stage * stage,struct prim_header * prim) argument
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/mesa/drivers/dri/i965/
H A Dbrw_draw.c82 brw_set_prim(struct brw_context *brw, const struct _mesa_prim *prim) argument
85 uint32_t hw_prim = get_hw_prim_for_gl_prim(prim->mode);
87 DBG("PRIM: %s\n", _mesa_enum_to_string(prim->mode));
91 if (prim->mode == GL_QUAD_STRIP &&
97 if (prim->mode == GL_QUADS && prim->count == 4 &&
108 if (reduced_prim[prim->mode] != brw->reduced_primitive) {
109 brw->reduced_primitive = reduced_prim[prim->mode];
116 gen6_set_prim(struct brw_context *brw, const struct _mesa_prim *prim) argument
121 DBG("PRIM: %s\n", _mesa_enum_to_string(prim
147 trim(GLenum prim,GLuint length) argument
159 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
898 gen9_emit_preempt_wa(struct brw_context * brw,const struct _mesa_prim * prim) argument
954 brw_draw_single_prim(struct gl_context * ctx,const struct _mesa_prim * prim,unsigned prim_id,struct brw_transform_feedback_object * xfb_obj,unsigned stream,struct gl_buffer_object * indirect) argument
1204 struct _mesa_prim *prim; local in function:brw_draw_indirect_prims
[all...]

Completed in 10 milliseconds

1234567891011>>