gallivm: added comment
authorBrian Paul <brianp@vmware.com>
Wed, 21 Jul 2010 15:17:47 +0000 (09:17 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 21 Jul 2010 16:16:32 +0000 (10:16 -0600)
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c

index 670c9747c0af3b157d0e8238377cc6ca22d230cd..05f63526ee5c1bbd37f34a6e625a7de94eccb67c 100644 (file)
@@ -481,6 +481,12 @@ emit_fetch(
    }
 
    if (reg->Register.Indirect) {
+      /*
+       * Compute addr_vec: a vector of offsets into the register file
+       * from which we need to gather elements.  Recall that the ADDR
+       * register's elements can all be different.
+       */
+
       LLVMTypeRef int_vec_type = lp_build_int_vec_type(bld->base.type);
       unsigned swizzle = tgsi_util_get_src_register_swizzle( &reg->Indirect, chan_index );