/external/chromium_org/third_party/mesa/src/src/mesa/vbo/ |
vbo_exec.c | 108 count_tessellated_primitives(const struct _mesa_prim *prim) 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->count - 2 : 0 [all...] |
vbo_split_inplace.c | 46 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->start', depending on the previou 153 const struct _mesa_prim *prim = &split->prim[i]; local [all...] |
vbo_save_loopback.c | 89 const struct _mesa_prim *prim, 94 GLint start = prim->start; 95 GLint end = start + prim->count; 101 printf("loopback prim %s(%s,%s) verts %d..%d\n", 102 _mesa_lookup_prim_by_nr(prim->mode), 103 prim->begin ? "begin" : "..", 104 prim->end ? "end" : "..", 108 if (prim->begin) { 109 CALL_Begin(GET_DISPATCH(), ( prim->mode )); 132 if (prim->end) [all...] |
vbo_split.c | 103 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,
|
/external/mesa3d/src/mesa/vbo/ |
vbo_exec.c | 108 count_tessellated_primitives(const struct _mesa_prim *prim) 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->count - 2 : 0 [all...] |
vbo_split_inplace.c | 46 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->start', depending on the previou 153 const struct _mesa_prim *prim = &split->prim[i]; local [all...] |
vbo_save_loopback.c | 89 const struct _mesa_prim *prim, 94 GLint start = prim->start; 95 GLint end = start + prim->count; 101 printf("loopback prim %s(%s,%s) verts %d..%d\n", 102 _mesa_lookup_prim_by_nr(prim->mode), 103 prim->begin ? "begin" : "..", 104 prim->end ? "end" : "..", 108 if (prim->begin) { 109 CALL_Begin(GET_DISPATCH(), ( prim->mode )); 132 if (prim->end) [all...] |
vbo_split.c | 103 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,
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/indices/ |
u_indices.c | 44 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]; [all...] |
u_unfilled_gen.py | 120 def name(intype, outtype, prim): 122 return 'generate_' + prim + '_' + outtype 124 return 'translate_' + prim + '_' + intype + '2' + outtype 126 def preamble(intype, outtype, prim): 127 print 'static void ' + name( intype, outtype, prim ) + '(' 144 preamble(intype, outtype, prim='tris') 152 preamble(intype, outtype, prim='tristrip') 160 preamble(intype, outtype, prim='trifan') 169 preamble(intype, outtype, prim='polygon') 177 preamble(intype, outtype, prim='quads' [all...] |
u_indices.h | 56 unsigned prim, 72 unsigned prim, 85 int u_unfilled_translator( unsigned prim, 94 int u_unfilled_generator( unsigned prim,
|
/external/mesa3d/src/gallium/auxiliary/indices/ |
u_indices.c | 44 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]; [all...] |
u_unfilled_gen.py | 120 def name(intype, outtype, prim): 122 return 'generate_' + prim + '_' + outtype 124 return 'translate_' + prim + '_' + intype + '2' + outtype 126 def preamble(intype, outtype, prim): 127 print 'static void ' + name( intype, outtype, prim ) + '(' 144 preamble(intype, outtype, prim='tris') 152 preamble(intype, outtype, prim='tristrip') 160 preamble(intype, outtype, prim='trifan') 169 preamble(intype, outtype, prim='polygon') 177 preamble(intype, outtype, prim='quads' [all...] |
u_indices.h | 56 unsigned prim, 72 unsigned prim, 85 int u_unfilled_translator( unsigned prim, 94 int u_unfilled_generator( unsigned prim,
|
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/i965/ |
brw_draw.c | 89 const struct _mesa_prim *prim) 92 uint32_t hw_prim = prim_to_hw_prim[prim->mode]; 94 DBG("PRIM: %s\n", _mesa_lookup_enum_by_nr(prim->mode)); 98 if (prim->mode == GL_QUAD_STRIP && 104 if (prim->mode == GL_QUADS && prim->count == 4 && 115 if (reduced_prim[prim->mode] != brw->intel.reduced_primitive) { 116 brw->intel.reduced_primitive = reduced_prim[prim->mode]; 123 const struct _mesa_prim *prim) [all...] |
brw_primitive_restart.c | 77 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);
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
brw_draw.c | 89 const struct _mesa_prim *prim) 92 uint32_t hw_prim = prim_to_hw_prim[prim->mode]; 94 DBG("PRIM: %s\n", _mesa_lookup_enum_by_nr(prim->mode)); 98 if (prim->mode == GL_QUAD_STRIP && 104 if (prim->mode == GL_QUADS && prim->count == 4 && 115 if (reduced_prim[prim->mode] != brw->intel.reduced_primitive) { 116 brw->intel.reduced_primitive = reduced_prim[prim->mode]; 123 const struct _mesa_prim *prim) [all...] |
brw_primitive_restart.c | 77 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);
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/draw/ |
draw_so_emit_tmp.h | 10 const unsigned prim = input_prims->prim; \ 16 switch (prim) { \
|
draw_pt_util.c | 38 void draw_pt_split_prim(unsigned prim, unsigned *first, unsigned *incr) 40 switch (prim) {
|
/external/mesa3d/src/gallium/auxiliary/draw/ |
draw_so_emit_tmp.h | 10 const unsigned prim = input_prims->prim; \ 16 switch (prim) { \
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/svga/ |
svga_draw_arrays.c | 95 unsigned prim, 106 if (hwtnl->index_cache[prim][i].buffer != NULL && 107 hwtnl->index_cache[prim][i].generate == generate) 109 if (compare(hwtnl->index_cache[prim][i].gen_nr, gen_nr, gen_type)) 112 hwtnl->index_cache[prim][i].buffer ); 121 pipe_resource_reference( &hwtnl->index_cache[prim][i].buffer, 126 i, hwtnl->index_cache[prim][i].gen_nr); 139 if (hwtnl->index_cache[prim][i].buffer == NULL) 144 else if (hwtnl->index_cache[prim][i].gen_nr < smallest) 147 smallest_size = hwtnl->index_cache[prim][i].gen_nr [all...] |
/external/mesa3d/src/gallium/drivers/svga/ |
svga_draw_arrays.c | 95 unsigned prim, 106 if (hwtnl->index_cache[prim][i].buffer != NULL && 107 hwtnl->index_cache[prim][i].generate == generate) 109 if (compare(hwtnl->index_cache[prim][i].gen_nr, gen_nr, gen_type)) 112 hwtnl->index_cache[prim][i].buffer ); 121 pipe_resource_reference( &hwtnl->index_cache[prim][i].buffer, 126 i, hwtnl->index_cache[prim][i].gen_nr); 139 if (hwtnl->index_cache[prim][i].buffer == NULL) 144 else if (hwtnl->index_cache[prim][i].gen_nr < smallest) 147 smallest_size = hwtnl->index_cache[prim][i].gen_nr [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/i915/ |
intel_render.c | 113 intelDmaPrimitive(struct intel_context *intel, GLenum prim) 116 fprintf(stderr, "%s %s\n", __FUNCTION__, _mesa_lookup_enum_by_nr(prim)); 118 intel->vtbl.reduced_primitive_state(intel, reduced_prim[prim]); 119 intel_set_prim(intel, hw_prim[prim]); 144 ret = (INTEL_VB_SIZE - intel->prim.current_offset); 150 #define INIT( prim ) \ 152 intelDmaPrimitive( intel, prim ); \ 188 GLuint prim = VB->Primitive[i].mode; local 195 nr_rverts += length * scale_prim[prim & PRIM_MODE_MASK]; 197 if (reduced_prim[prim & PRIM_MODE_MASK] != rprim) 246 GLuint prim = _tnl_translate_prim(&VB->Primitive[i]); local [all...] |
/external/mesa3d/src/mesa/drivers/dri/i915/ |
intel_render.c | 113 intelDmaPrimitive(struct intel_context *intel, GLenum prim) 116 fprintf(stderr, "%s %s\n", __FUNCTION__, _mesa_lookup_enum_by_nr(prim)); 118 intel->vtbl.reduced_primitive_state(intel, reduced_prim[prim]); 119 intel_set_prim(intel, hw_prim[prim]); 144 ret = (INTEL_VB_SIZE - intel->prim.current_offset); 150 #define INIT( prim ) \ 152 intelDmaPrimitive( intel, prim ); \ 188 GLuint prim = VB->Primitive[i].mode; local 195 nr_rverts += length * scale_prim[prim & PRIM_MODE_MASK]; 197 if (reduced_prim[prim & PRIM_MODE_MASK] != rprim) 246 GLuint prim = _tnl_translate_prim(&VB->Primitive[i]); local [all...] |