mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 15:48:36 +02:00
i965: Fix up Sandybridge VS sizing.
This commit is contained in:
parent
3b8ff24554
commit
a3593833dc
1 changed files with 5 additions and 3 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue