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 7f0f058c2225d75dd53fca86bec148f486f690e6..2f658195b2ca6c22d669fb5e2541ce45cca7552f 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: