use the new macro
authorZack Rusin <zack@tungstengraphics.com>
Mon, 14 Apr 2008 16:32:25 +0000 (12:32 -0400)
committerZack Rusin <zack@tungstengraphics.com>
Mon, 14 Apr 2008 16:32:25 +0000 (12:32 -0400)
src/gallium/auxiliary/draw/draw_context.c
src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c

index 1e70a7752336727dbb9c65ffdd17d0a3b42541ee..0c314f6e1da111f3347ed60294c995ca6e2d7788 100644 (file)
@@ -88,8 +88,7 @@ struct draw_context *draw_create( void )
    /* Statically allocate maximum sized vertices for the cache - could be cleverer...
     */
    {
-      const unsigned size = (MAX_VERTEX_SIZE + 0x0f) & ~0x0f;
-      char *tmp = align_malloc(VS_QUEUE_LENGTH * size, 16);
+      char *tmp = align_malloc(VS_QUEUE_LENGTH * MAX_VERTEX_ALLOCATION, 16);
       if (!tmp)
          goto fail;
 
index b49c9efa65b5a629ea467bf3e4efd75e746da93c..04b3d2c4cfb770013509e43dc2d73a5cf44e8224 100644 (file)
@@ -128,7 +128,7 @@ static void fetch_pipeline_prepare( struct draw_pt_middle_end *middle,
 
    fpme->nr_fetch = nr;
    //fpme->pipeline_vertex_size = sizeof(struct vertex_header) + nr * 4 * sizeof(float);
-   fpme->pipeline_vertex_size = (MAX_VERTEX_SIZE + 0x0f) & ~0x0f;
+   fpme->pipeline_vertex_size = MAX_VERTEX_ALLOCATION;
    fpme->hw_vertex_size = vinfo->size * 4;
 }