Mesa (master): gallivm: rename a var

Brian Paul brianp at kemper.freedesktop.org
Thu May 13 20:17:12 UTC 2010


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

Author: Brian Paul <brianp at vmware.com>
Date:   Wed May 12 15:32:04 2010 -0600

gallivm: rename a var

---

 src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
index 1622eda..0062805 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
@@ -391,15 +391,16 @@ emit_ddy(struct lp_build_tgsi_soa_context *bld,
 static LLVMValueRef
 get_temp_ptr(struct lp_build_tgsi_soa_context *bld,
              unsigned index,
-             unsigned swizzle,
+             unsigned chan,
              boolean is_indirect,
              LLVMValueRef addr)
 {
+   assert(chan < 4);
    if (!bld->has_indirect_addressing) {
-      return bld->temps[index][swizzle];
+      return bld->temps[index][chan];
    } else {
       LLVMValueRef lindex =
-         LLVMConstInt(LLVMInt32Type(), index*4 + swizzle, 0);
+         LLVMConstInt(LLVMInt32Type(), index * 4 + chan, 0);
       if (is_indirect)
          lindex = lp_build_add(&bld->base, lindex, addr);
       return LLVMBuildGEP(bld->base.builder, bld->temps_array, &lindex, 1, "");




More information about the mesa-commit mailing list