summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv30/nv30_vertprog.c
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2008-03-10 14:27:22 +1100
committerBen Skeggs <[email protected]>2008-03-10 14:28:13 +1100
commitae0e047ba4e05d25d6e0b9b0574e36c7e8ccd510 (patch)
tree1a14f2ad5d804c385f2e33aea7dd2aeef5b0e88d /src/gallium/drivers/nv30/nv30_vertprog.c
parent66ba021e9fa2fa932cb9be8fc2fb8272baf51fc6 (diff)
nv30: put the card into vtxprog mode + small cleanups/fixes
Diffstat (limited to 'src/gallium/drivers/nv30/nv30_vertprog.c')
-rw-r--r--src/gallium/drivers/nv30/nv30_vertprog.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv30/nv30_vertprog.c b/src/gallium/drivers/nv30/nv30_vertprog.c
index 548b6907d02..96bc4b5ef9a 100644
--- a/src/gallium/drivers/nv30/nv30_vertprog.c
+++ b/src/gallium/drivers/nv30/nv30_vertprog.c
@@ -193,6 +193,11 @@ emit_dst(struct nv30_vpc *vpc, uint32_t *hw, int slot, struct nv30_sreg dst)
hw[3] |= (dst.index << NV30_VP_INST_DEST_SHIFT);
hw[0] |= NV30_VP_INST_VEC_DEST_TEMP_MASK | (1<<20);
+
+ /*XXX: no way this is entirely correct, someone needs to
+ * figure out what exactly it is.
+ */
+ hw[3] |= 0x800;
break;
default:
assert(0);