diff options
Diffstat (limited to 'src/gallium')
-rw-r--r-- | 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 4cf387257d..5d575461ca 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]; |