i965: Fix up clip min_nr_entries, preferred_nr_entries, and max_threads.
authorEric Anholt <eric@anholt.net>
Mon, 3 Nov 2008 02:43:10 +0000 (18:43 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 12 Nov 2008 21:07:22 +0000 (13:07 -0800)
commit82eb7c235db9939d067c4d64e32df96caef939ab
tree23a480df81ad1939089b8c6595fb9f6b52dfe094
parent5cb7ba10cc6aebfb96c6425d3d822d2b0ac5e102
i965: Fix up clip min_nr_entries, preferred_nr_entries, and max_threads.

The clip thread could potentially deadlock when processing tristrips since
being moved back to dual-thread mode, as the two threads could each have 4 VUEs
referenced and not be able to allocate another one since SF processing
wasn't able to continue (needing 5 entries before it freed 2).
In constrained URB mode, similar deadlock could even have occurred with
polygons (so we cut back max_threads if we can't handle it any primitive type).
src/mesa/drivers/dri/i965/brw_clip_state.c
src/mesa/drivers/dri/i965/brw_urb.c