gallivm: Use proper index to lookup predicate register array.
authormichal <michal@capacitor.(none)>
Wed, 18 Aug 2010 11:16:42 +0000 (13:16 +0200)
committermichal <michal@capacitor.(none)>
Wed, 18 Aug 2010 11:16:42 +0000 (13:16 +0200)
Doesn't fix anything, as those indices were both always 0.

src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c

index 0aa64af..ca8db9c 100644 (file)
@@ -802,7 +802,7 @@ emit_store(
 
    case TGSI_FILE_PREDICATE:
       lp_exec_mask_store(&bld->exec_mask, pred, value,
-                         bld->preds[index][chan_index]);
+                         bld->preds[reg->Register.Index][chan_index]);
       break;
 
    default: