Mesa (llvm-context): gallivm: add missing function parameter

Brian Paul brianp at kemper.freedesktop.org
Wed Nov 3 00:40:50 UTC 2010


Module: Mesa
Branch: llvm-context
Commit: 0405398737a5b220da3f6e29f8bdb7de17499a30
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0405398737a5b220da3f6e29f8bdb7de17499a30

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Nov  2 15:32:45 2010 -0600

gallivm: add missing function parameter

---

 src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c b/src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c
index 7bb0172..991f6fa 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c
@@ -888,7 +888,7 @@ lp_build_sample_mipmap(struct lp_build_sample_context *bld,
             int i;
             assert(h16_bld.type.length <= Elements(shuffles));
             for (i = 0; i < h16_bld.type.length; i++)
-               shuffles[i] = lp_build_const_int32(2 * (i & 1));
+               shuffles[i] = lp_build_const_int32(bld->gallivm, 2 * (i & 1));
             shuffle = LLVMConstVector(shuffles, h16_bld.type.length);
             lod_fpart = LLVMBuildShuffleVector(builder,
                                                lod_fpart, lod_fpart,




More information about the mesa-commit mailing list