gallivm: rename a var to avoid compiler warnings
authorBrian Paul <brianp@vmware.com>
Wed, 21 Jul 2010 14:08:12 +0000 (08:08 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 21 Jul 2010 14:08:12 +0000 (08:08 -0600)
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c

index 3515d268f8406880de00ae7189c4dd060f952613..994bc537ce8764b611a6cbf49f0c7e96629a5794 100644 (file)
@@ -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;