summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv40
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2008-03-23 16:11:03 +1100
committerBen Skeggs <[email protected]>2008-03-23 16:11:03 +1100
commit01cb2cd93efe7ad94d7fd36aa5a776c2e3ab4c7d (patch)
treebcb34016231d6a479af967ce9375393e5a1a889d /src/gallium/drivers/nv40
parent62a8e7685f0567052f50a2b9aaa64054e5dfa0c6 (diff)
nv40: workaround fp result.data[0] clobberage
Temporary, the fp reg handling will get reworked at some point in the near future. But before that, there's a few bugs to find.
Diffstat (limited to 'src/gallium/drivers/nv40')
-rw-r--r--src/gallium/drivers/nv40/nv40_fragprog.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv40/nv40_fragprog.c b/src/gallium/drivers/nv40/nv40_fragprog.c
index 2d82f86ef5c..4e425366985 100644
--- a/src/gallium/drivers/nv40/nv40_fragprog.c
+++ b/src/gallium/drivers/nv40/nv40_fragprog.c
@@ -58,7 +58,7 @@ temp(struct nv40_fpc *fpc)
int idx;
idx = fpc->temp_temp_count++;
- idx += fpc->high_temp + 1;
+ idx += fpc->high_temp + 2;
return nv40_sr(NV40SR_TEMP, idx);
}
@@ -817,7 +817,9 @@ nv40_fragprog_upload(struct nv40_context *nv40,
#if 0
for (i = 0; i < fp->insn_len; i++) {
+ fflush(stdout); fflush(stderr);
NOUVEAU_ERR("%d 0x%08x\n", i, fp->insn[i]);
+ fflush(stdout); fflush(stderr);
}
#endif