Mesa (nv50-compiler): nv50: fix thinko in store to output reg possible check
Christoph Bumiller
chrisbmr at kemper.freedesktop.org
Mon Aug 16 22:47:16 UTC 2010
Module: Mesa
Branch: nv50-compiler
Commit: 6c5c55723d32f8933ffb5fc6b5beb209eca84ca8
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6c5c55723d32f8933ffb5fc6b5beb209eca84ca8
Author: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
Date: Mon Aug 16 17:18:30 2010 +0200
nv50: fix thinko in store to output reg possible check
---
src/gallium/drivers/nv50/nv50_pc_optimize.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/drivers/nv50/nv50_pc_optimize.c b/src/gallium/drivers/nv50/nv50_pc_optimize.c
index 4cf3872..5d57546 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];
More information about the mesa-commit
mailing list