/external/mesa3d/src/mesa/tnl/ |
D | t_split_inplace.c | 47 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() 124 const struct _mesa_prim *prim) in update_index_bounds() argument 126 split->min_index = MIN2(split->min_index, prim->start); in update_index_bounds() 127 split->max_index = MAX2(split->max_index, prim->start + prim->count - 1); in update_index_bounds() 137 const struct _mesa_prim *prim) in get_max_vertices() argument 139 if ((prim->start > split->min_index && in get_max_vertices() 140 prim->start - split->min_index >= split->limit) || in get_max_vertices() [all …]
|
D | t_split_copy.c | 57 const struct _mesa_prim *prim; member 231 struct _mesa_prim *prim = ©->dstprim[copy->dstprim_nr]; in begin() local 233 prim->mode = mode; in begin() 234 prim->begin = begin_flag; in begin() 245 GLuint elt = copy->srcelt[elt_idx] + copy->prim->basevertex; in elt() 306 struct _mesa_prim *prim = ©->dstprim[copy->dstprim_nr]; in end() local 308 prim->end = end_flag; in end() 309 prim->count = copy->dstelt_nr - prim->start; in end() 324 const struct _mesa_prim *prim = ©->prim[i]; in replay_elts() local 325 const GLuint start = prim->start; in replay_elts() [all …]
|
D | t_rebase.c | 105 const struct _mesa_prim *prim, in REBASE() 134 tmp_prims = malloc(sizeof(*prim) * nr_prims); in REBASE() 142 tmp_prims[i] = prim[i]; in REBASE() 146 prim = tmp_prims; in REBASE() 194 tmp_prims = malloc(sizeof(*prim) * nr_prims); in REBASE() 203 assert(prim[i].start >= min_index); in REBASE() 205 tmp_prims[i] = prim[i]; in REBASE() 209 prim = tmp_prims; in REBASE() 236 prim, in REBASE()
|
D | t_draw.c | 401 const struct _mesa_prim *prim, in bind_prims() argument 407 VB->Primitive = prim; in bind_prims() 425 const struct _mesa_prim *prim, in _tnl_draw_prims() argument 437 GLint max_basevertex = prim->basevertex; in _tnl_draw_prims() 441 vbo_get_minmax_indices(ctx, prim, ib, &min_index, &max_index, nr_prims); in _tnl_draw_prims() 450 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 t_rebase_prims(ctx, arrays, prim, nr_prims, ib, in _tnl_draw_prims() [all …]
|
/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_draw_arrays.c | 93 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 …]
|
D | svga_draw_private.h | 153 SVGA3dPrimitiveRange prim[QSZ]; member 201 enum pipe_prim_type prim) in svga_need_unfilled_fallback() argument 203 if (u_reduced_prim(prim) != PIPE_PRIM_TRIANGLES) { in svga_need_unfilled_fallback() 208 if ((prim == PIPE_PRIM_QUADS || in svga_need_unfilled_fallback() 209 prim == PIPE_PRIM_QUAD_STRIP || in svga_need_unfilled_fallback() 210 prim == PIPE_PRIM_POLYGON) && in svga_need_unfilled_fallback() 241 enum pipe_prim_type prim,
|
/external/mesa3d/src/gallium/auxiliary/indices/ |
D | u_unfilled_gen.py | 125 def name(intype, outtype, prim): argument 127 return 'generate_' + prim + '_' + outtype 129 return 'translate_' + prim + '_' + intype + '2' + outtype 131 def preamble(intype, outtype, prim): argument 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='quads') [all …]
|
D | u_indices_gen.py | 184 def name(intype, outtype, inpv, outpv, pr, prim): argument 186 return 'generate_' + prim + '_' + outtype + '_' + inpv + '2' + outpv 188 … return 'translate_' + prim + '_' + intype + '2' + outtype + '_' + inpv + '2' + outpv + '_' + pr 190 def preamble(intype, outtype, inpv, outpv, pr, prim): argument 191 print('static void ' + name( intype, outtype, inpv, outpv, pr, prim ) + '(') 230 preamble(intype, outtype, inpv, outpv, pr, prim='points') 237 preamble(intype, outtype, inpv, outpv, pr, prim='lines') 244 preamble(intype, outtype, inpv, outpv, pr, prim='linestrip') 251 preamble(intype, outtype, inpv, outpv, pr, prim='lineloop') 270 preamble(intype, outtype, inpv, outpv, pr, prim='tris') [all …]
|
D | u_unfilled_indices.c | 98 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()
|
D | u_indices.c | 88 enum pipe_prim_type prim, in u_index_translator() argument 113 if ((hw_mask & (1<<prim)) && in u_index_translator() 123 *out_prim = prim; in u_index_translator() 129 *out_translate = translate[in_idx][out_idx][in_pv][out_pv][prim_restart][prim]; in u_index_translator() 131 switch (prim) { in u_index_translator() 238 enum pipe_prim_type prim, in u_index_generator() argument 255 if ((hw_mask & (1<<prim)) && in u_index_generator() 259 *out_prim = prim; in u_index_generator() 264 *out_generate = generate[out_idx][in_pv][out_pv][prim]; in u_index_generator() 266 switch (prim) { in u_index_generator()
|
/external/mesa3d/src/mesa/drivers/dri/i915/ |
D | intel_tris.c | 60 static void intelRenderPrimitive(struct gl_context * ctx, GLenum prim); 67 GLuint used = intel->batch.used - intel->prim.start_ptr; in intel_flush_inline_primitive() 69 assert(intel->prim.primitive != ~0); in intel_flush_inline_primitive() 76 intel->batch.map[intel->prim.start_ptr] = in intel_flush_inline_primitive() 77 _3DPRIMITIVE | intel->prim.primitive | (used - 2); in intel_flush_inline_primitive() 82 intel->batch.used = intel->prim.start_ptr; in intel_flush_inline_primitive() 85 intel->prim.primitive = ~0; in intel_flush_inline_primitive() 86 intel->prim.start_ptr = 0; in intel_flush_inline_primitive() 87 intel->prim.flush = 0; in intel_flush_inline_primitive() 90 static void intel_start_inline(struct intel_context *intel, uint32_t prim) in intel_start_inline() argument [all …]
|
D | intel_render.c | 109 intelDmaPrimitive(struct intel_context *intel, GLenum prim) in intelDmaPrimitive() argument 112 fprintf(stderr, "%s %s\n", __func__, _mesa_enum_to_string(prim)); in intelDmaPrimitive() 114 intel->vtbl.reduced_primitive_state(intel, reduced_prim[prim]); in intelDmaPrimitive() 115 intel_set_prim(intel, hw_prim[prim]); in intelDmaPrimitive() 140 ret = (INTEL_VB_SIZE - intel->prim.current_offset); in intel_get_current_max() 146 #define INIT( prim ) \ argument 148 intelDmaPrimitive( intel, prim ); \ 184 GLuint prim = VB->Primitive[i].mode; in choose_render() local 191 nr_rverts += length * scale_prim[prim & PRIM_MODE_MASK]; in choose_render() 193 if (reduced_prim[prim & PRIM_MODE_MASK] != rprim) { in choose_render() [all …]
|
/external/virglrenderer/src/gallium/auxiliary/util/ |
D | u_prim.h | 50 u_decomposed_prim(unsigned prim) in u_decomposed_prim() argument 52 switch (prim) { in u_decomposed_prim() 66 return prim; in u_decomposed_prim() 75 u_reduced_prim(unsigned prim) in u_reduced_prim() argument 77 switch (prim) { in u_reduced_prim() 95 u_assembled_prim(unsigned 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(unsigned prim) in u_prim_vertex_count() argument 136 return (likely(prim < PIPE_PRIM_MAX)) ? &prim_table[prim] : NULL; in u_prim_vertex_count()
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_cb_feedback.c | 122 feedback_tri( struct draw_stage *stage, struct prim_header *prim ) in feedback_tri() argument 128 feedback_vertex(fs->ctx, draw, prim->v[0]); in feedback_tri() 129 feedback_vertex(fs->ctx, draw, prim->v[1]); in feedback_tri() 130 feedback_vertex(fs->ctx, draw, prim->v[2]); in feedback_tri() 135 feedback_line( struct draw_stage *stage, struct prim_header *prim ) in feedback_line() argument 146 feedback_vertex(fs->ctx, draw, prim->v[0]); in feedback_line() 147 feedback_vertex(fs->ctx, draw, prim->v[1]); in feedback_line() 152 feedback_point( struct draw_stage *stage, struct prim_header *prim ) in feedback_point() argument 157 feedback_vertex(fs->ctx, draw, prim->v[0]); in feedback_point() 210 select_tri( struct draw_stage *stage, struct prim_header *prim ) in select_tri() argument [all …]
|
D | st_cb_rasterpos.c | 68 struct _mesa_prim prim; member 91 rastpos_tri( struct draw_stage *stage, struct prim_header *prim ) in rastpos_tri() argument 98 rastpos_line( struct draw_stage *stage, struct prim_header *prim ) in rastpos_line() argument 137 rastpos_point(struct draw_stage *stage, struct prim_header *prim) in rastpos_point() argument 152 pos = prim->v[0]->data[0]; in rastpos_point() 162 update_attrib(ctx, outputMapping, prim->v[0], in rastpos_point() 166 update_attrib(ctx, outputMapping, prim->v[0], in rastpos_point() 171 update_attrib(ctx, outputMapping, prim->v[0], in rastpos_point() 207 rs->prim.mode = GL_POINTS; in new_draw_rastpos_stage() 208 rs->prim.begin = 1; in new_draw_rastpos_stage() [all …]
|
/external/mesa3d/src/gallium/auxiliary/draw/ |
D | draw_pipe.c | 122 struct prim_header prim; in do_point() local 124 prim.flags = 0; in do_point() 125 prim.pad = 0; in do_point() 126 prim.v[0] = (struct vertex_header *)v0; in do_point() 128 draw->pipeline.first->point( draw->pipeline.first, &prim ); in do_point() 141 struct prim_header prim; in do_line() local 143 prim.flags = flags; in do_line() 144 prim.pad = 0; in do_line() 145 prim.v[0] = (struct vertex_header *)v0; in do_line() 146 prim.v[1] = (struct vertex_header *)v1; in do_line() [all …]
|
D | draw_pipe_vbuf.c | 142 vbuf_tri(struct draw_stage *stage, struct prim_header *prim) in vbuf_tri() argument 150 vbuf->indices[vbuf->nr_indices++] = emit_vertex(vbuf, prim->v[i]); in vbuf_tri() 156 vbuf_line(struct draw_stage *stage, struct prim_header *prim) in vbuf_line() argument 164 vbuf->indices[vbuf->nr_indices++] = emit_vertex(vbuf, prim->v[i]); in vbuf_line() 170 vbuf_point(struct draw_stage *stage, struct prim_header *prim) in vbuf_point() argument 176 vbuf->indices[vbuf->nr_indices++] = emit_vertex(vbuf, prim->v[0]); in vbuf_point() 186 vbuf_start_prim(struct vbuf_stage *vbuf, uint prim) in vbuf_start_prim() argument 193 vbuf->render->set_primitive(vbuf->render, prim); in vbuf_start_prim() 266 vbuf_first_tri(struct draw_stage *stage, struct prim_header *prim) in vbuf_first_tri() argument 273 stage->tri(stage, prim); in vbuf_first_tri() [all …]
|
D | draw_split_tmp.h | 39 __FUNCTION__, prim, start, count, max_count_simple, in FUNC() 43 if (prim == PIPE_PRIM_PATCHES) { in FUNC() 47 draw_pt_split_prim(prim, &first, &incr); in FUNC() 81 switch (prim) { in FUNC() 96 if (prim == PIPE_PRIM_TRIANGLE_STRIP || in FUNC() 97 prim == PIPE_PRIM_TRIANGLE_STRIP_ADJACENCY) { in FUNC()
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_prim.h | 50 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/mesa/main/ |
D | draw.c | 358 struct _mesa_prim prim = { in _mesa_draw_arrays() local 367 ctx->Driver.Draw(ctx, &prim, 1, NULL, in _mesa_draw_arrays() 446 GLenum prim; in _mesa_EvalMesh1() local 450 prim = GL_POINTS; in _mesa_EvalMesh1() 453 prim = GL_LINE_STRIP; in _mesa_EvalMesh1() 469 CALL_Begin(ctx->CurrentServerDispatch, (prim)); in _mesa_EvalMesh1() 666 #define MAX_ALLOCA_PRIMS (50000 / sizeof(*prim)) 670 #define ALLOC_PRIMS(prim, primcount, func) do { \ argument 672 prim = calloc(primcount, sizeof(*prim)); \ 673 if (!prim) { \ [all …]
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_draw.c | 82 brw_set_prim(struct brw_context *brw, const struct _mesa_prim *prim) in brw_set_prim() argument 85 uint32_t hw_prim = get_hw_prim_for_gl_prim(prim->mode); in brw_set_prim() 87 DBG("PRIM: %s\n", _mesa_enum_to_string(prim->mode)); in brw_set_prim() 91 if (prim->mode == GL_QUAD_STRIP && in brw_set_prim() 97 if (prim->mode == GL_QUADS && prim->count == 4 && in brw_set_prim() 108 if (reduced_prim[prim->mode] != brw->reduced_primitive) { in brw_set_prim() 109 brw->reduced_primitive = reduced_prim[prim->mode]; in brw_set_prim() 116 gen6_set_prim(struct brw_context *brw, const struct _mesa_prim *prim) in gen6_set_prim() argument 121 DBG("PRIM: %s\n", _mesa_enum_to_string(prim->mode)); in gen6_set_prim() 123 if (prim->mode == GL_PATCHES) { in gen6_set_prim() [all …]
|
/external/fec/ |
D | init_rs.h | 19 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/gallium/drivers/i915/ |
D | i915_prim_emit.c | 129 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/mesa/vbo/ |
D | vbo_save_loopback.c | 97 const struct _mesa_prim *prim, in loopback_prim() argument 102 GLuint start = prim->start; in loopback_prim() 103 const GLuint end = start + prim->count; in loopback_prim() 108 _mesa_lookup_prim_by_nr(prim->mode), in loopback_prim() 109 prim->begin ? "begin" : "..", in loopback_prim() 110 prim->end ? "end" : "..", in loopback_prim() 114 if (prim->begin) { in loopback_prim() 115 CALL_Begin(ctx->Exec, (prim->mode)); in loopback_prim() 130 if (prim->end) { in loopback_prim()
|
/external/mesa3d/src/intel/vulkan/ |
D | genX_gpu_memcpy.c | 235 anv_batch_emit(&cmd_buffer->batch, GENX(3DPRIMITIVE), prim) { in genX() 236 prim.VertexAccessType = SEQUENTIAL; in genX() 237 prim.PrimitiveTopologyType = _3DPRIM_POINTLIST; in genX() 238 prim.VertexCountPerInstance = size / bs; in genX() 239 prim.StartVertexLocation = 0; in genX() 240 prim.InstanceCount = 1; in genX() 241 prim.StartInstanceLocation = 0; in genX() 242 prim.BaseVertexLocation = 0; in genX()
|