diff options
author | Eric Anholt <eric@anholt.net> | 2008-11-02 18:43:10 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2008-11-12 13:07:22 -0800 |
commit | 82eb7c235db9939d067c4d64e32df96caef939ab (patch) | |
tree | 23a480df81ad1939089b8c6595fb9f6b52dfe094 /src/mesa/drivers/dri/i965/brw_urb.c | |
parent | 5cb7ba10cc6aebfb96c6425d3d822d2b0ac5e102 (diff) | |
download | external_mesa3d-82eb7c235db9939d067c4d64e32df96caef939ab.zip external_mesa3d-82eb7c235db9939d067c4d64e32df96caef939ab.tar.gz external_mesa3d-82eb7c235db9939d067c4d64e32df96caef939ab.tar.bz2 |
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).
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_urb.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_urb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_urb.c b/src/mesa/drivers/dri/i965/brw_urb.c index 5cc51ad..7673dd3 100644 --- a/src/mesa/drivers/dri/i965/brw_urb.c +++ b/src/mesa/drivers/dri/i965/brw_urb.c @@ -91,7 +91,7 @@ static const struct { } limits[CS+1] = { { 16, 32, 1, 5 }, /* vs */ { 4, 8, 1, 5 }, /* gs */ - { 6, 8, 1, 5 }, /* clp */ + { 5, 10, 1, 5 }, /* clp */ { 1, 8, 1, 12 }, /* sf */ { 1, 4, 1, 32 } /* cs */ }; |