From: Christoph Bumiller Date: Mon, 16 Aug 2010 15:18:30 +0000 (+0200) Subject: nv50: fix thinko in store to output reg possible check X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6c5c55723d32f8933ffb5fc6b5beb209eca84ca8;p=mesa.git nv50: fix thinko in store to output reg possible check --- diff --git a/src/gallium/drivers/nv50/nv50_pc_optimize.c b/src/gallium/drivers/nv50/nv50_pc_optimize.c index 4cf387257df..5d575461ca9 100644 --- a/src/gallium/drivers/nv50/nv50_pc_optimize.c +++ b/src/gallium/drivers/nv50/nv50_pc_optimize.c @@ -315,7 +315,7 @@ nv_pass_fold_stores(struct nv_pass *ctx, struct nv_basic_block *b) for (j = 0; j < 4 && nvi->src[j]; ++j) if (nvi->src[j]->value->reg.file == NV_FILE_IMM) break; - if (j < 4) + if (j < 4 && nvi->src[j]) continue; nvi->def[0] = sti->def[0];