Mesa (master): gallivm: rename a var to avoid compiler warnings

Brian Paul brianp at kemper.freedesktop.org
Wed Jul 21 14:08:42 UTC 2010


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

Author: Brian Paul <brianp at vmware.com>
Date:   Wed Jul 21 08:08:12 2010 -0600

gallivm: rename a var to avoid compiler warnings

---

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

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
index 3515d26..994bc53 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
@@ -463,10 +463,10 @@ static LLVMValueRef
 emit_fetch(
    struct lp_build_tgsi_soa_context *bld,
    const struct tgsi_full_instruction *inst,
-   unsigned index,
+   unsigned src_op,
    const unsigned chan_index )
 {
-   const struct tgsi_full_src_register *reg = &inst->Src[index];
+   const struct tgsi_full_src_register *reg = &inst->Src[src_op];
    const unsigned swizzle =
       tgsi_util_get_full_src_register_swizzle(reg, chan_index);
    LLVMValueRef res;




More information about the mesa-commit mailing list