summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/i965
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2009-11-09 18:04:58 -0800
committerKeith Whitwell <keithw@vmware.com>2009-11-11 18:51:57 -0800
commit0c547d63c497f06c38f7a3c000e478bdcf2594b6 (patch)
tree3dd12d20e349d9e09a89efdf2abb4447f56804f7 /src/gallium/drivers/i965
parenta010307e0adc2c0d4ef586c81507d99ef15c2142 (diff)
i965g: skip over vertex position output when preallocating FS inputs
Diffstat (limited to 'src/gallium/drivers/i965')
-rw-r--r--src/gallium/drivers/i965/brw_wm_pass2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/i965/brw_wm_pass2.c b/src/gallium/drivers/i965/brw_wm_pass2.c
index a5574bd1a3..2a879863ab 100644
--- a/src/gallium/drivers/i965/brw_wm_pass2.c
+++ b/src/gallium/drivers/i965/brw_wm_pass2.c
@@ -83,6 +83,10 @@ static void init_registers( struct brw_wm_compile *c )
for (j = 0; j < c->nr_creg; j++)
prealloc_reg(c, &c->creg[j], reg++);
+ reg++; /* XXX: skip over position output */
+
+ /* XXX: currently just hope the VS outputs line up with FS inputs:
+ */
for (j = 0; j < c->key.vp_nr_outputs; j++)
prealloc_reg(c, &c->payload.input_interp[j], reg++);