Mesa (master): llvmpipe: (trivial) use correct LP_MIN_VECTOR_ALIGN define for alignment.

Roland Scheidegger sroland at kemper.freedesktop.org
Fri Apr 25 17:30:32 UTC 2014


Module: Mesa
Branch: master
Commit: 2f65f61beac3a45fdf27bf25d7b13cd1fa2bbb8c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2f65f61beac3a45fdf27bf25d7b13cd1fa2bbb8c

Author: Roland Scheidegger <sroland at vmware.com>
Date:   Fri Apr  4 04:24:49 2014 +0200

llvmpipe: (trivial) use correct LP_MIN_VECTOR_ALIGN define for alignment.

Currently it's the same value.

Reviewed-by: Brian Paul <brianp at vmware.com>

---

 src/gallium/drivers/llvmpipe/lp_setup.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_setup.c b/src/gallium/drivers/llvmpipe/lp_setup.c
index 848a329..b4ce925 100644
--- a/src/gallium/drivers/llvmpipe/lp_setup.c
+++ b/src/gallium/drivers/llvmpipe/lp_setup.c
@@ -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);




More information about the mesa-commit mailing list