mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-01 11:10:27 +01:00
i965: Add support for 2 threads in the GS.
This brings noop vertex shader throughput from 6.8M verts/sec to 10.4M verts/sec using GL_QUADs on my GM45.
This commit is contained in:
parent
8f7f22ca1d
commit
a47858e45e
1 changed files with 4 additions and 1 deletions
|
|
@ -93,7 +93,10 @@ gs_unit_create_from_key(struct brw_context *brw, struct brw_gs_unit_key *key)
|
|||
gs.thread4.nr_urb_entries = key->nr_urb_entries;
|
||||
gs.thread4.urb_entry_allocation_size = key->urb_size - 1;
|
||||
|
||||
gs.thread4.max_threads = 0; /* Hardware requirement */
|
||||
if (key->nr_urb_entries >= 8)
|
||||
gs.thread4.max_threads = 1;
|
||||
else
|
||||
gs.thread4.max_threads = 0;
|
||||
|
||||
if (BRW_IS_IGDNG(brw))
|
||||
gs.thread4.rendering_enable = 1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue