summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2008-04-14 12:46:47 +0100
committerKeith Whitwell <[email protected]>2008-04-14 12:46:57 +0100
commit36bacf97a6b10f7274f0d3fcf37bf7ebf9388161 (patch)
tree4349330c2279c0c5374d9d78f04e14e35301a615
parenta82e4996a13ef3cae1497fef95c2fca7631cd889 (diff)
draw: always malloc verts for fetch_shade_pipeline
-rw-r--r--src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c
index b5d2f81a147..427128f335f 100644
--- a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c
+++ b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c
@@ -144,15 +144,9 @@ static void fetch_pipeline_run( struct draw_pt_middle_end *middle,
struct draw_context *draw = fpme->draw;
struct draw_vertex_shader *shader = draw->vertex_shader;
char *pipeline_verts;
- unsigned i;
- //debug_printf("fc = %d, VS = %d\n", fetch_count, VS_QUEUE_LENGTH);
- if (fetch_count < VS_QUEUE_LENGTH) {
- pipeline_verts = draw->vs.vertex_cache;
- } else {
- pipeline_verts = MALLOC(fpme->pipeline_vertex_size *
- fetch_count);
- }
+ pipeline_verts = MALLOC(fpme->pipeline_vertex_size *
+ fetch_count);
if (!pipeline_verts) {
assert(0);
@@ -216,8 +210,7 @@ static void fetch_pipeline_run( struct draw_pt_middle_end *middle,
}
- if (pipeline_verts != draw->vs.vertex_cache)
- FREE(pipeline_verts);
+ FREE(pipeline_verts);
}