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 0aa64affacc0346c400ed668ab9bb6256f9fe3fb..ca8db9ce01d1320b7c100e02acd7963aebad3115 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: