diff options
author | Eric Anholt <eric@anholt.net> | 2010-03-02 10:27:51 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-03-03 11:33:37 -0800 |
commit | a3593833dc2c14948c41654ed015c91634a78af3 (patch) | |
tree | 9351061db01386672a4e92edeb184e40f725899e /src | |
parent | 3b8ff24554253cf60bbbc8564c11008ff3866953 (diff) | |
download | external_mesa3d-a3593833dc2c14948c41654ed015c91634a78af3.zip external_mesa3d-a3593833dc2c14948c41654ed015c91634a78af3.tar.gz external_mesa3d-a3593833dc2c14948c41654ed015c91634a78af3.tar.bz2 |
i965: Fix up Sandybridge VS sizing.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vs_emit.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vs_emit.c b/src/mesa/drivers/dri/i965/brw_vs_emit.c index e0be3cc..a7c4b58 100644 --- a/src/mesa/drivers/dri/i965/brw_vs_emit.c +++ b/src/mesa/drivers/dri/i965/brw_vs_emit.c @@ -281,10 +281,12 @@ static void brw_vs_alloc_regs( struct brw_vs_compile *c ) */ attributes_in_vue = MAX2(c->nr_outputs, c->nr_inputs); - if (intel->is_ironlake || intel->gen >= 6) - c->prog_data.urb_entry_size = (attributes_in_vue + 6 + 3) / 4; + if (intel->gen >= 6) + c->prog_data.urb_entry_size = (attributes_in_vue + 4 + 7) / 8; + else if (intel->is_ironlake) + c->prog_data.urb_entry_size = (attributes_in_vue + 6 + 3) / 4; else - c->prog_data.urb_entry_size = (attributes_in_vue + 2 + 3) / 4; + c->prog_data.urb_entry_size = (attributes_in_vue + 2 + 3) / 4; c->prog_data.total_grf = reg; |