summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c
diff options
context:
space:
mode:
authorMichal Krol <michal@ubuntu-vbox.(none)>2008-04-28 18:50:27 +0200
committerMichal Krol <michal@ubuntu-vbox.(none)>2008-04-28 18:50:58 +0200
commit58d3dff0d3115ddd5397b7f77b5bcf4f9ca616b6 (patch)
tree03211346223ed2171d6269d0d6fccbb39bfa2230 /src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c
parent7f5e9d3f07f6fbfa699bef4ffff85fe0b557584a (diff)
gallium: Generate SSE code to swizzle and unswizzle vs inputs and outputs.
Change SSE_SWIZZLES #define to 0 to disable it.
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.