summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c
diff options
context:
space:
mode:
authorBen Skeggs <skeggsb@gmail.com>2008-04-29 09:00:48 +1000
committerBen Skeggs <skeggsb@gmail.com>2008-04-29 09:00:48 +1000
commit95295081a8557f0b63cd89f387205d5abe772788 (patch)
treebbc1ee8f36fdb2d2ba34f15cf406292e1439a87d /src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c
parent480ab1b7893290505efba925ea95d3b173aa97d4 (diff)
parent059ab50c60f19fd6dd30c574644c0e4e5747a330 (diff)
Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c3
1 files changed, 2 insertions, 1 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 f0763dad8d..4ec20493c4 100644
--- a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c
+++ b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c
@@ -109,9 +109,10 @@ 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;
unsigned opt = fpme->opt;
+ unsigned alloc_count = align_int( fetch_count, 4 );
struct vertex_header *pipeline_verts =
- (struct vertex_header *)MALLOC(fpme->vertex_size * fetch_count);
+ (struct vertex_header *)MALLOC(fpme->vertex_size * alloc_count);
if (!pipeline_verts) {
/* Not much we can do here - just skip the rendering.