aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv50
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2012-02-06 12:15:17 +0100
committerChristoph Bumiller <[email protected]>2012-02-06 12:19:57 +0100
commit189e6c7e81ce35b89d9b52d4bd0d6271a7e9c10f (patch)
treead8442061e9ad5a70c72c70b5f89ff93274f6c81 /src/gallium/drivers/nv50
parentffc8494db556f9e95b4bcc3d3c49d7c48b4e2f41 (diff)
nv50: fix bad assertion on Elements(phi->src) in regalloc
The array is phi->src, phi->src[i] is just a pointer.
Diffstat (limited to 'src/gallium/drivers/nv50')
-rw-r--r--src/gallium/drivers/nv50/nv50_pc_regalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv50/nv50_pc_regalloc.c b/src/gallium/drivers/nv50/nv50_pc_regalloc.c
index 72922cb0388..12a59cb6cbd 100644
--- a/src/gallium/drivers/nv50/nv50_pc_regalloc.c
+++ b/src/gallium/drivers/nv50/nv50_pc_regalloc.c
@@ -421,7 +421,7 @@ phi_opnd_for_bb(struct nv_instruction *phi, struct nv_basic_block *b,
int i, j;
for (j = -1, i = 0; i < 6 && phi->src[i]; ++i) {
- assert(i < Elements(phi->src[i]));
+ assert(i < Elements(phi->src));
srci = phi->src[i];
/* if already replaced, check with original source first */
if (srci->flags & NV_REF_FLAG_REGALLOC_PRIV)