From: michal Date: Wed, 18 Aug 2010 11:16:42 +0000 (+0200) Subject: gallivm: Use proper index to lookup predicate register array. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8690c6a6b4fb0b48e2ae75cd0f64de86b039081c;p=mesa.git gallivm: Use proper index to lookup predicate register array. Doesn't fix anything, as those indices were both always 0. --- diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c index 0aa64affacc..ca8db9ce01d 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c @@ -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: