diff options
Diffstat (limited to 'lib/mesa/src/gallium/auxiliary/draw/draw_vs_variant.c')
-rw-r--r-- | lib/mesa/src/gallium/auxiliary/draw/draw_vs_variant.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/mesa/src/gallium/auxiliary/draw/draw_vs_variant.c b/lib/mesa/src/gallium/auxiliary/draw/draw_vs_variant.c index 44cf29b8e..bc320cb1c 100644 --- a/lib/mesa/src/gallium/auxiliary/draw/draw_vs_variant.c +++ b/lib/mesa/src/gallium/auxiliary/draw/draw_vs_variant.c @@ -158,7 +158,8 @@ static void PIPE_CDECL vsvg_run_elts( struct draw_vs_variant *variant, { struct draw_vs_variant_generic *vsvg = (struct draw_vs_variant_generic *)variant; unsigned temp_vertex_stride = vsvg->temp_vertex_stride; - void *temp_buffer = MALLOC( align(count,4) * temp_vertex_stride ); + void *temp_buffer = MALLOC( align(count,4) * temp_vertex_stride + + DRAW_EXTRA_VERTICES_PADDING ); if (0) debug_printf("%s %d \n", __FUNCTION__, count); @@ -227,7 +228,8 @@ static void PIPE_CDECL vsvg_run_linear( struct draw_vs_variant *variant, { struct draw_vs_variant_generic *vsvg = (struct draw_vs_variant_generic *)variant; unsigned temp_vertex_stride = vsvg->temp_vertex_stride; - void *temp_buffer = MALLOC( align(count,4) * temp_vertex_stride ); + void *temp_buffer = MALLOC( align(count,4) * temp_vertex_stride + + DRAW_EXTRA_VERTICES_PADDING ); if (0) debug_printf("%s %d %d (sz %d, %d)\n", __FUNCTION__, start, count, vsvg->base.key.output_stride, |