llvmpipe: (trivial) use correct LP_MIN_VECTOR_ALIGN define for alignment.
authorRoland Scheidegger <sroland@vmware.com>
Fri, 4 Apr 2014 02:24:49 +0000 (04:24 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Fri, 25 Apr 2014 17:29:30 +0000 (19:29 +0200)
Currently it's the same value.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/llvmpipe/lp_setup.c

index 848a3292e05dd7f83bb5e78182f6bb76c20c77e7..b4ce92558bdf1aee7e76c608594608ced36638e9 100644 (file)
@@ -953,7 +953,7 @@ try_update_scene_state( struct lp_setup_context *setup )
       /* Alloc u8_blend_color (16 x i8) and f_blend_color (4 or 8 x f32) */
       size  = 4 * 16 * sizeof(uint8_t);
       size += (LP_MAX_VECTOR_LENGTH / 4) * sizeof(float);
-      stored = lp_scene_alloc_aligned(scene, size, LP_MAX_VECTOR_LENGTH);
+      stored = lp_scene_alloc_aligned(scene, size, LP_MIN_VECTOR_ALIGN);
 
       if (!stored) {
          assert(!new_scene);