summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv50
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2010-08-16 17:18:30 +0200
committerChristoph Bumiller <[email protected]>2010-08-17 00:47:47 +0200
commit6c5c55723d32f8933ffb5fc6b5beb209eca84ca8 (patch)
tree30b3a4887901c55177fdda3fb591b214a13cc056 /src/gallium/drivers/nv50
parente7a0bfa69a6ce45bb53baa8220eae418225c5649 (diff)
nv50: fix thinko in store to output reg possible check
Diffstat (limited to 'src/gallium/drivers/nv50')
-rw-r--r--src/gallium/drivers/nv50/nv50_pc_optimize.c2
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 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];