diff options
author | Kenneth Graunke <[email protected]> | 2016-05-09 18:11:00 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2016-05-12 01:01:42 -0700 |
commit | 607fb0f13df8e328ed5d173c98fc250449c55aee (patch) | |
tree | a2392214f29b353131279f21a056722950607a58 /src/mesa/drivers/dri/i965/brw_fs.cpp | |
parent | 3aa542c65760c7e9b92a41d850677a44879cc5c7 (diff) |
i965: Reduce the SIMD8 GS push constant threshold from 32 to 24.
Three Shadow of Mordor geometry shaders increase by a single
instruction, but the number of spills/fills in Orbital Explorer
is reduced from 194:1279 -> 82:454. No other programs are affected.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 2a542b8e510..89b30c7bfb8 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -5229,8 +5229,8 @@ fs_visitor::setup_gs_payload() payload.num_regs++; } - /* Use a maximum of 32 registers for push-model inputs. */ - const unsigned max_push_components = 32; + /* Use a maximum of 24 registers for push-model inputs. */ + const unsigned max_push_components = 24; /* If pushing our inputs would take too many registers, reduce the URB read * length (which is in HWords, or 8 registers), and resort to pulling. |