Home
last modified time | relevance | path

Searched refs:prim_count (Results 1 – 15 of 15) sorted by relevance

/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_draw_private.h68 svga_translate_prim(unsigned mode, unsigned vcount, unsigned *prim_count, in svga_translate_prim() argument
73 *prim_count = vcount; in svga_translate_prim()
77 *prim_count = vcount / 2; in svga_translate_prim()
81 *prim_count = vcount - 1; in svga_translate_prim()
85 *prim_count = vcount / 3; in svga_translate_prim()
89 *prim_count = vcount - 2; in svga_translate_prim()
93 *prim_count = vcount - 2; in svga_translate_prim()
97 *prim_count = vcount / 4; in svga_translate_prim()
101 *prim_count = vcount - 3; in svga_translate_prim()
105 *prim_count = vcount / 6; in svga_translate_prim()
[all …]
Dsvga_draw.c80 for (i = 0; i < hwtnl->cmd.prim_count; i++) in svga_hwtnl_destroy()
122 assert(hwtnl->cmd.prim_count == 0); in svga_hwtnl_vertex_decls()
170 if (!hwtnl->cmd.prim_count) { in svga_hwtnl_is_buffer_referred()
180 for (i = 0; i < hwtnl->cmd.prim_count; ++i) { in svga_hwtnl_is_buffer_referred()
231 for (i = 0; i < hwtnl->cmd.prim_count; i++) { in draw_vgpu9()
275 hwtnl->cmd.prim_count); in draw_vgpu9()
280 &prim, hwtnl->cmd.prim_count); in draw_vgpu9()
297 if (hwtnl->cmd.prim_count == 1) { in draw_vgpu9()
312 hwtnl->cmd.prim, hwtnl->cmd.prim_count * sizeof hwtnl->cmd.prim[0]); in draw_vgpu9()
314 for (i = 0; i < hwtnl->cmd.prim_count; i++) { in draw_vgpu9()
[all …]
/third_party/mesa3d/src/intel/compiler/
Dgfx6_gs_visitor.cpp97 this->prim_count = src_reg(this, glsl_type::uint_type); in emit_prolog()
98 emit(MOV(dst_reg(this->prim_count), brw_imm_ud(0u))); in emit_prolog()
186 emit(ADD(dst_reg(this->prim_count), this->prim_count, brw_imm_ud(1u))); in gs_emit_vertex()
242 emit(ADD(dst_reg(this->prim_count), this->prim_count, brw_imm_ud(1u))); in gs_end_primitive()
360 this->prim_count, in emit_thread_end()
363 dst_reg(this->temp), this->prim_count, this->svbi); in emit_thread_end()
366 dst_reg(this->temp), this->prim_count, brw_imm_ud(0u)); in emit_thread_end()
Dgfx6_gs_visitor.h72 src_reg prim_count; variable
/third_party/mesa3d/src/mesa/vbo/
Dvbo_exec_draw.c49 exec->vtx.prim_count, in vbo_exec_debug_verts()
52 for (i = 0 ; i < exec->vtx.prim_count ; i++) { in vbo_exec_debug_verts()
70 unsigned last = exec->vtx.prim_count - 1; in vbo_exec_copy_vertices()
314 if (exec->vtx.prim_count && in vbo_exec_vtx_flush()
332 printf("%s %d %d\n", __func__, exec->vtx.prim_count, in vbo_exec_vtx_flush()
338 exec->vtx.prim_count); in vbo_exec_vtx_flush()
367 exec->vtx.prim_count = 0; in vbo_exec_vtx_flush()
Dvbo_exec_api.c66 if (exec->vtx.prim_count == 0) { in vbo_exec_wrap_buffers()
73 unsigned last = exec->vtx.prim_count - 1; in vbo_exec_wrap_buffers()
105 exec->vtx.prim_count = 0; in vbo_exec_wrap_buffers()
111 assert(exec->vtx.prim_count == 0); in vbo_exec_wrap_buffers()
117 exec->vtx.prim_count++; in vbo_exec_wrap_buffers()
844 i = exec->vtx.prim_count++; in _mesa_Begin()
875 unsigned cur = exec->vtx.prim_count - 1; in try_vbo_merge()
877 assert(exec->vtx.prim_count >= 1); in try_vbo_merge()
881 if (exec->vtx.prim_count >= 2) { in try_vbo_merge()
896 exec->vtx.prim_count--; /* drop the last primitive */ in try_vbo_merge()
[all …]
Dvbo_save_loopback.c184 const GLuint prim_count = node->cold->prim_count; in _vbo_loopback_vertex_list() local
186 for (GLuint i = 0; i < prim_count; i++) { in _vbo_loopback_vertex_list()
Dvbo_save_api.c154 struct _mesa_prim *prim = &node->cold->prims[node->cold->prim_count - 1]; in copy_vertices()
175 realloc_prim_store(struct vbo_save_primitive_store *store, int prim_count) in realloc_prim_store() argument
181 store->size = prim_count; in realloc_prim_store()
206 GLuint *prim_count) in merge_prims() argument
211 for (i = 1; i < *prim_count; i++) { in merge_prims()
237 *prim_count = prev_prim - prim_list + 1; in merge_prims()
250 struct _mesa_prim *prim = &node->cold->prims[node->cold->prim_count - 1]; in convert_line_loop_to_strip()
538 node->cold->prim_count = save->prim_store->used; in compile_vertex_list()
575 if (node->cold->prims[node->cold->prim_count - 1].mode == GL_LINE_LOOP) { in compile_vertex_list()
579 merge_prims(ctx, node->cold->prims, &node->cold->prim_count); in compile_vertex_list()
[all …]
Dvbo_save_draw.c121 if (node->cold->prim_count) { in playback_copy_to_current()
122 const struct _mesa_prim *prim = &node->cold->prims[node->cold->prim_count - 1]; in playback_copy_to_current()
Dvbo_save.h95 GLuint prim_count; member
Dvbo.h110 unsigned prim_count; member
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/
Dfd6_vsc.c65 prim_count(const struct pipe_draw_info *info, in prim_count() function
95 unsigned num_prims = prim_count(info, draw); in primitive_stream_size_bits()
/third_party/mesa3d/src/gallium/auxiliary/tgsi/
Dtgsi_exec.c1840 unsigned prim_count; in emit_vertex() local
1848 prim_count = mach->OutputPrimCount[stream_id]; in emit_vertex()
1850 if (mach->Primitives[stream_id][prim_count] >= mach->MaxOutputVertices) in emit_vertex()
1853 if (mach->Primitives[stream_id][prim_count] == 0) in emit_vertex()
1854 mach->PrimitiveOffsets[stream_id][prim_count] = mach->OutputVertexOffset; in emit_vertex()
1856 mach->Primitives[stream_id][prim_count]++; in emit_vertex()
1864 unsigned *prim_count; in emit_primitive() local
1876 prim_count = &mach->OutputPrimCount[stream_id]; in emit_primitive()
1878 ++(*prim_count); in emit_primitive()
1879 assert((*prim_count * mach->NumOutputs) < TGSI_MAX_TOTAL_VERTICES); in emit_primitive()
[all …]
/third_party/mesa3d/src/mesa/main/
Ddraw.c461 size_t prim_count = count_tessellated_primitives(mode, count, numInstances); in validate_draw_arrays() local
462 if (xfb_obj->GlesRemainingPrims < prim_count) in validate_draw_arrays()
465 xfb_obj->GlesRemainingPrims -= prim_count; in validate_draw_arrays()
Ddlist.c780 node->cold->vertex_count, node->cold->prim_count, vertex_size, in vbo_print_vertex_list()
783 for (i = 0; i < node->cold->prim_count; i++) { in vbo_print_vertex_list()