summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c
diff options
context:
space:
mode:
authorChia-I Wu <olv@lunarg.com>2010-06-25 18:32:41 +0800
committerChia-I Wu <olv@lunarg.com>2010-06-25 23:17:18 +0800
commit7a9246c5d72290ed8455a426801b85b54374e102 (patch)
treecdc9a7bf9a5587356c92c35f240e3b619cc17a1b /src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c
parenta879d14ecf818d767f5da9dd7fd3b0cd8816cf29 (diff)
draw: Work around an invalid write.
SSE vertex shader does not seem to honor the execution mask. Pad the output array as a workaround.
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.c2
1 files changed, 1 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 24c538b099..121dfc414a 100644
--- a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c
+++ b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c
@@ -184,7 +184,7 @@ static void draw_vertex_shader_run(struct draw_vertex_shader *vshader,
output_verts->count = input_verts->count;
output_verts->verts =
(struct vertex_header *)MALLOC(output_verts->vertex_size *
- output_verts->count);
+ align(output_verts->count, 4));
vshader->run_linear(vshader,
(const float (*)[4])input_verts->verts->data,