Mesa (master): gallivm: added comment

Brian Paul brianp at kemper.freedesktop.org
Wed Jul 21 16:19:54 UTC 2010


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

Author: Brian Paul <brianp at vmware.com>
Date:   Wed Jul 21 09:17:47 2010 -0600

gallivm: added comment

---

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

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
index 670c974..05f6352 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
@@ -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 );
 




More information about the mesa-commit mailing list