gallivm: fix storing of the addr register
authorZack Rusin <zackr@vmware.com>
Tue, 30 Nov 2010 07:01:43 +0000 (02:01 -0500)
committerZack Rusin <zackr@vmware.com>
Tue, 30 Nov 2010 07:01:43 +0000 (02:01 -0500)
we store into the index specified by the register index, not an
indirect register.

src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c

index 7f0f058..2f65819 100644 (file)
@@ -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: