Module: Mesa
Branch: master
Commit: a47858e45efd95d798468cfff34616c0de200032
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a47858e45efd95d798468cfff34616c0de200032

Author: Eric Anholt <[email protected]>
Date:   Thu Sep  3 09:19:43 2009 -0700

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.

---

 src/mesa/drivers/dri/i965/brw_gs_state.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_gs_state.c 
b/src/mesa/drivers/dri/i965/brw_gs_state.c
index a761c03..ed9d2ff 100644
--- a/src/mesa/drivers/dri/i965/brw_gs_state.c
+++ b/src/mesa/drivers/dri/i965/brw_gs_state.c
@@ -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;

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to