Searched refs:num_vertices (Results 1 - 25 of 52) sorted by relevance

123

/xsrc/external/mit/MesaLib/dist/src/amd/llvm/
H A Dac_llvm_cull.h50 uint8_t num_vertices; /* 1..3 */ member in struct:ac_cull_options
H A Dac_llvm_cull.c55 struct ac_position_w_info *w, unsigned num_vertices)
63 for (unsigned i = 0; i < num_vertices; i++) {
140 assert(options->num_vertices >= 2);
144 if (options->num_vertices == 3) {
237 ac_analyze_position_w(ctx, pos, &w, options->num_vertices);
54 ac_analyze_position_w(struct ac_llvm_context * ctx,LLVMValueRef pos[3][4],struct ac_position_w_info * w,unsigned num_vertices) argument
/xsrc/external/mit/MesaLib/dist/src/compiler/nir/
H A Dnir_lower_io_to_vector.c52 unsigned *num_vertices)
56 if (num_vertices)
57 *num_vertices = glsl_get_length(var->type);
60 if (num_vertices)
61 *num_vertices = 0;
157 unsigned *loc, nir_variable **first_var, unsigned *num_vertices)
163 *num_vertices = 0;
192 get_per_vertex_type(shader, var, num_vertices), vs_in);
292 unsigned num_vertices; local in function:create_new_io_vars
295 get_flat_type(shader, old_vars, &new_loc, &first_var, &num_vertices);
51 get_per_vertex_type(const nir_shader * shader,const nir_variable * var,unsigned * num_vertices) argument
156 get_flat_type(const nir_shader * shader,nir_variable * old_vars[MAX_SLOTS][4],unsigned * loc,nir_variable ** first_var,unsigned * num_vertices) argument
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/auxiliary/hud/
H A Dhud_context.c70 float *buffer, unsigned num_vertices,
75 unsigned size = num_vertices * hud->color_prims.vbuf.stride;
95 cso_draw_arrays(cso, prim, 0, num_vertices);
121 float *vertices = hud->bg.vertices + hud->bg.num_vertices*2;
124 assert(hud->bg.num_vertices + 4 <= hud->bg.max_num_vertices);
138 hud->bg.num_vertices += num/2;
147 float *vertices = hud->text.vertices + hud->text.num_vertices*4;
179 assert(hud->text.num_vertices + num/4 + 4 <= hud->text.max_num_vertices);
205 hud->text.num_vertices += num/4;
304 if (gr->num_vertices <
69 hud_draw_colored_prims(struct hud_context * hud,unsigned prim,float * buffer,unsigned num_vertices,float r,float g,float b,float a,int xoffset,int yoffset,float yscale) argument
445 hud_prepare_vertices(struct hud_context * hud,struct vertex_queue * v,unsigned num_vertices,unsigned stride) argument
[all...]
H A Dhud_private.h90 unsigned num_vertices; member in struct:hud_context::vertex_queue
113 unsigned num_vertices; member in struct:hud_graph
/xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/hud/
H A Dhud_context.c72 float *buffer, unsigned num_vertices,
91 num_vertices * 2 * sizeof(float), 16, buffer,
99 cso_draw_arrays(cso, prim, 0, num_vertices);
121 float *vertices = hud->bg.vertices + hud->bg.num_vertices*2;
124 assert(hud->bg.num_vertices + 4 <= hud->bg.max_num_vertices);
138 hud->bg.num_vertices += num/2;
147 float *vertices = hud->text.vertices + hud->text.num_vertices*4;
179 assert(hud->text.num_vertices + num/4 + 4 <= hud->text.max_num_vertices);
205 hud->text.num_vertices += num/4;
304 if (gr->num_vertices <
71 hud_draw_colored_prims(struct hud_context * hud,unsigned prim,float * buffer,unsigned num_vertices,float r,float g,float b,float a,int xoffset,int yoffset,float yscale) argument
445 hud_prepare_vertices(struct hud_context * hud,struct vertex_queue * v,unsigned num_vertices,unsigned stride) argument
[all...]
H A Dhud_private.h92 unsigned num_vertices; member in struct:hud_context::vertex_queue
115 unsigned num_vertices; member in struct:hud_graph
/xsrc/external/mit/MesaLib.old/dist/src/gallium/auxiliary/draw/
H A Ddraw_gs.h113 unsigned num_vertices,
H A Ddraw_pt_so_emit.c113 unsigned num_vertices)
141 for (i = 0; i < num_vertices; ++i) {
166 for (i = 0; i < num_vertices; ++i) {
111 so_emit_prim(struct pt_so_emit * so,unsigned * indices,unsigned num_vertices) argument
/xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/draw/
H A Ddraw_gs.h114 unsigned num_vertices,
H A Ddraw_tess.c57 unsigned num_vertices)
66 for (i = 0; i < num_vertices; i++) {
68 int vertex_idx = prim_id * num_vertices + i;
115 unsigned num_vertices = shader->vertices_out; local in function:llvm_store_tcs_output
120 for (i = 0; i < num_vertices; i++) {
221 unsigned num_vertices)
230 for (i = 0; i < num_vertices; i++) {
232 int vertex_idx = prim_id * num_vertices + i;
274 unsigned num_vertices,
284 input = (const float (*)[4])((const char *)input_ptr + ((patch_id * num_vertices) * shade
54 llvm_fetch_tcs_input(struct draw_tess_ctrl_shader * shader,const struct draw_prim_info * input_prim_info,unsigned prim_id,unsigned num_vertices) argument
218 llvm_fetch_tes_input(struct draw_tess_eval_shader * shader,const struct draw_prim_info * input_prim_info,unsigned prim_id,unsigned num_vertices) argument
272 llvm_fetch_tess_factors(struct draw_tess_eval_shader * shader,unsigned patch_id,unsigned num_vertices,struct pipe_tessellation_factors * factors) argument
[all...]
H A Ddraw_pt_so_emit.c117 unsigned num_vertices)
145 for (i = 0; i < num_vertices; ++i) {
170 for (i = 0; i < num_vertices; ++i) {
115 so_emit_prim(struct pt_so_emit * so,unsigned * indices,unsigned num_vertices) argument
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a6xx/
H A Dfd6_const.c150 unsigned num_vertices = emit->hs local in function:fd6_build_tess_consts
155 emit->vs->output_size * num_vertices * 4, /* vs primitive stride */
163 emit->vs->output_size * num_vertices * 4, /* vs primitive stride */
172 num_vertices = emit->gs->shader->nir->info.gs.vertices_in;
175 emit->ds->output_size * num_vertices * 4, /* ds primitive stride */
193 prev->output_size * num_vertices * 4, /* ds primitive stride */
199 num_vertices = emit->gs->shader->nir->info.gs.vertices_in;
/xsrc/external/mit/MesaLib.old/dist/src/gallium/auxiliary/util/
H A Du_vbuf.c392 int start_vertex, unsigned num_vertices,
418 unsigned size = vb->stride ? num_vertices * vb->stride
432 /* Also adjust num_vertices. A common user error is to call
439 num_vertices = (size + vb->stride - 1) / vb->stride;
496 key->output_stride * num_vertices, 4,
504 tr->run(tr, 0, num_vertices, 0, 0, out_map);
571 int start_vertex, unsigned num_vertices,
588 num_vertices, /* VERTEX */
902 int start_vertex, unsigned num_vertices,
954 size = vb->stride * (num_vertices
389 u_vbuf_translate_buffers(struct u_vbuf * mgr,struct translate_key * key,const struct pipe_draw_info * info,unsigned vb_mask,unsigned out_vb,int start_vertex,unsigned num_vertices,int min_index,boolean unroll_indices) argument
569 u_vbuf_translate_begin(struct u_vbuf * mgr,const struct pipe_draw_info * info,int start_vertex,unsigned num_vertices,int min_index,boolean unroll_indices) argument
901 u_vbuf_upload_buffers(struct u_vbuf * mgr,int start_vertex,unsigned num_vertices,int start_instance,unsigned num_instances) argument
1166 unsigned num_vertices; local in function:u_vbuf_draw_vbo
[all...]
/xsrc/external/mit/MesaLib/dist/src/mesa/main/
H A Dglthread_draw.c111 unsigned start_vertex, unsigned num_vertices,
119 assert((num_vertices || !(user_buffer_mask & ~vao->NonZeroDivisorMask)) &&
160 size = stride * (num_vertices - 1) + element_size;
239 size = stride * (num_vertices - 1) + element_size;
533 unsigned num_vertices = max_index_exclusive - min_index; local in function:_mesa_marshal_MultiDrawArrays
534 if (num_vertices == 0) {
542 if (!upload_vertices(ctx, user_buffer_mask, min_index, num_vertices,
824 unsigned num_vertices = max_index + 1 - min_index; local in function:draw_elements
828 if (util_is_vbo_upload_ratio_too_large(count, num_vertices))
833 !upload_vertices(ctx, user_buffer_mask, start_vertex, num_vertices,
110 upload_vertices(struct gl_context * ctx,unsigned user_buffer_mask,unsigned start_vertex,unsigned num_vertices,unsigned start_instance,unsigned num_instances,struct glthread_attrib_binding * buffers) argument
1024 unsigned num_vertices = 0; local in function:_mesa_marshal_MultiDrawElementsBaseVertex
[all...]
/xsrc/external/mit/xgc/dist/
H A Dtests.c164 circle_line_test(int num_vertices, int radius) argument
173 relative_angle = num_vertices*5/12+1;
174 delta = (double) relative_angle / (double) num_vertices * 2 * PI;
177 coord = (XPoint *) malloc (sizeof(XPoint)*(num_vertices+1));
181 for (i=0;i<=num_vertices;++i) {
189 XDrawLines(X.dpy,X.win,X.gc,coord,num_vertices+1,CoordModeOrigin);
193 snprintf(buf,sizeof buf,"%d lines of length %d in %.3f seconds.",num_vertices,
/xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/util/
H A Du_vbuf.c453 int start_vertex, unsigned num_vertices,
479 unsigned size = vb->stride ? num_vertices * vb->stride
509 /* Also adjust num_vertices. A common user error is to call
516 num_vertices = (size + vb->stride - 1) / vb->stride;
573 key->output_stride * num_vertices, 4,
581 tr->run(tr, 0, num_vertices, 0, 0, out_map);
671 int start_vertex, unsigned num_vertices,
688 num_vertices, /* VERTEX */
1050 int start_vertex, unsigned num_vertices,
1081 *size = vb->stride * (num_vertices
449 u_vbuf_translate_buffers(struct u_vbuf * mgr,struct translate_key * key,const struct pipe_draw_info * info,const struct pipe_draw_start_count_bias * draw,unsigned vb_mask,unsigned out_vb,int start_vertex,unsigned num_vertices,int min_index,boolean unroll_indices) argument
668 u_vbuf_translate_begin(struct u_vbuf * mgr,const struct pipe_draw_info * info,const struct pipe_draw_start_count_bias * draw,int start_vertex,unsigned num_vertices,int min_index,boolean unroll_indices) argument
1045 get_upload_offset_size(struct u_vbuf * mgr,const struct pipe_vertex_buffer * vb,struct u_vbuf_elements * ve,const struct pipe_vertex_element * velem,unsigned vb_index,unsigned velem_index,int start_vertex,unsigned num_vertices,int start_instance,unsigned num_instances,unsigned * offset,unsigned * size) argument
1088 u_vbuf_upload_buffers(struct u_vbuf * mgr,int start_vertex,unsigned num_vertices,int start_instance,unsigned num_instances) argument
1390 unsigned num_vertices; local in function:u_vbuf_draw_vbo
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/radeonsi/
H A Dgfx10_shader_ngg.c74 * Return the number of vertices as a constant in \p num_vertices,
77 static LLVMValueRef ngg_get_vertices_per_prim(struct si_shader_context *ctx, unsigned *num_vertices) argument
84 *num_vertices = 3;
87 *num_vertices = 2;
94 *num_vertices = 3;
104 *num_vertices = 1;
106 *num_vertices = 2;
108 *num_vertices = 3;
110 return LLVMConstInt(ctx->ac.i32, *num_vertices, false);
157 unsigned num_vertices; local in function:gfx10_ngg_build_export_prim
252 LLVMValueRef num_vertices; member in struct:ngg_streamout
798 unsigned num_vertices; local in function:gfx10_build_primitive_accepted
880 unsigned num_vertices; local in function:gfx10_emit_ngg_culling_epilogue
1359 unsigned num_vertices; local in function:gfx10_emit_ngg_epilogue
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/freedreno/a2xx/
H A Dfd2_draw.c127 OUT_RING(ring, fui(ctx->batch->num_vertices));
187 unsigned num_vertices = ctx->batch->num_vertices; local in function:fd2_draw_vbo
197 ctx->batch->num_vertices += step;
200 ctx->batch->num_vertices = num_vertices;
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a2xx/
H A Dfd2_draw.c129 OUT_RING(ring, fui(ctx->batch->num_vertices));
197 unsigned num_vertices = ctx->batch->num_vertices; local in function:fd2_draw_vbo
207 ctx->batch->num_vertices += step;
210 ctx->batch->num_vertices = num_vertices;
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/freedreno/
H A Dfreedreno_draw.h100 OUT_RING(ring, batch->num_vertices);
H A Dfreedreno_batch.h128 unsigned num_vertices; /* number of vertices in current batch */ member in struct:fd_batch
/xsrc/external/mit/MesaLib.old/dist/src/imgui/
H A Dimstb_truetype.h1623 static int stbtt__close_shape(stbtt_vertex *vertices, int num_vertices, int was_off, int start_off, argument
1628 stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, (cx+scx)>>1, (cy+scy)>>1, cx,cy);
1629 stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, sx,sy,scx,scy);
1632 stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve,sx,sy,cx,cy);
1634 stbtt_setvertex(&vertices[num_vertices++], STBTT_vline,sx,sy,0,0);
1636 return num_vertices;
1645 int num_vertices=0; local in function:stbtt__GetGlyphShapeTT
1724 num_vertices=0;
1733 num_vertices = stbtt__close_shape(vertices, num_vertices, was_of
1874 int num_vertices; member in struct:__anonc735d1c90f08
[all...]
/xsrc/external/mit/MesaLib/dist/src/imgui/
H A Dimstb_truetype.h1623 static int stbtt__close_shape(stbtt_vertex *vertices, int num_vertices, int was_off, int start_off, argument
1628 stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, (cx+scx)>>1, (cy+scy)>>1, cx,cy);
1629 stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, sx,sy,scx,scy);
1632 stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve,sx,sy,cx,cy);
1634 stbtt_setvertex(&vertices[num_vertices++], STBTT_vline,sx,sy,0,0);
1636 return num_vertices;
1645 int num_vertices=0; local in function:stbtt__GetGlyphShapeTT
1724 num_vertices=0;
1733 num_vertices = stbtt__close_shape(vertices, num_vertices, was_of
1874 int num_vertices; member in struct:__anon748b3c5c0f08
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/freedreno/
H A Dfreedreno_draw.h97 OUT_RING(ring, batch->num_vertices);

Completed in 57 milliseconds

123