From 6c5c55723d32f8933ffb5fc6b5beb209eca84ca8 Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Mon, 16 Aug 2010 17:18:30 +0200 Subject: [PATCH] nv50: fix thinko in store to output reg possible check --- src/gallium/drivers/nv50/nv50_pc_optimize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.30.2