summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2014-09-18 16:11:04 +0200
committerRoland Scheidegger <[email protected]>2014-09-18 16:13:24 +0200
commit019ca99bee14e793751e3460309bf4132ee76225 (patch)
treed5a7c2a6d8ed4554986105635d2758ca3e21a380 /src
parent7b2c7032446da4138dedeee8feaa79d741f1f108 (diff)
draw: (trivial) remove duplicated lines
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c
index 5549cb3b90a..54dc47aa07d 100644
--- a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c
+++ b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c
@@ -192,18 +192,6 @@ llvm_middle_end_prepare( struct draw_pt_middle_end *middle,
*/
fpme->vertex_size = sizeof(struct vertex_header) + nr * 4 * sizeof(float);
- /* Get the number of float[4] attributes per vertex.
- * Note: this must be done after draw_pt_emit_prepare() since that
- * can effect the vertex size.
- */
- nr = MAX2(vs->info.num_inputs, draw_total_vs_outputs(draw));
-
- /* Always leave room for the vertex header whether we need it or
- * not. It's hard to get rid of it in particular because of the
- * viewport code in draw_pt_post_vs.c.
- */
- fpme->vertex_size = sizeof(struct vertex_header) + nr * 4 * sizeof(float);
-
/* return even number */
*max_vertices = *max_vertices & ~1;