Mesa (master): gallivm: fix storing of the addr register

Zack Rusin zack at kemper.freedesktop.org
Tue Nov 30 06:59:14 UTC 2010


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

Author: Zack Rusin <zackr at vmware.com>
Date:   Tue Nov 30 02:01:43 2010 -0500

gallivm: fix storing of the addr register

we store into the index specified by the register index, not an
indirect register.

---

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

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
index 7f0f058..2f65819 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
@@ -984,7 +984,7 @@ emit_store(
 
    case TGSI_FILE_ADDRESS:
       lp_exec_mask_store(&bld->exec_mask, pred, value,
-                         bld->addr[reg->Indirect.Index][chan_index]);
+                         bld->addr[reg->Register.Index][chan_index]);
       break;
 
    case TGSI_FILE_PREDICATE:




More information about the mesa-commit mailing list