From: Chia-I Wu Date: Fri, 25 Jun 2010 10:32:41 +0000 (+0800) Subject: draw: Work around an invalid write. X-Git-Tag: 062012170305~11653 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7a9246c5d72290ed8455a426801b85b54374e102;p=profile%2Fivi%2Fmesa.git draw: Work around an invalid write. SSE vertex shader does not seem to honor the execution mask. Pad the output array as a workaround. --- 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 24c538b..121dfc4 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,