From: Zack Rusin Date: Tue, 30 Nov 2010 07:01:43 +0000 (-0500) Subject: gallivm: fix storing of the addr register X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=557280542399629ac64a48f5b618365e2b18fce1;p=mesa.git gallivm: fix storing of the addr register we store into the index specified by the register index, not an indirect register. --- diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c index 7f0f058c222..2f658195b2c 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c @@ -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: