diff options
author | Axel Davy <[email protected]> | 2018-12-08 20:42:23 +0100 |
---|---|---|
committer | Axel Davy <[email protected]> | 2018-12-23 08:14:50 +0100 |
commit | c6b37e5412f1bdc0bf71a22e3917313278441e2b (patch) | |
tree | 392fab205a9b5aa4ab78bddfd1d1de2ab6a8ad11 | |
parent | 104681c5d528a823a3fdc3f7d9c6f8133c27201c (diff) |
st/nine: Increase the limit of cached ff shaders
100 is too small for some games, which triggers recompilations
every frame. Increase to 1024.
Signed-off-by: Axel Davy <[email protected]>
Tested-by: Dieter Nützel <[email protected]>
-rw-r--r-- | src/gallium/state_trackers/nine/nine_ff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/nine/nine_ff.c b/src/gallium/state_trackers/nine/nine_ff.c index 261be276ad8..cb77d6915b9 100644 --- a/src/gallium/state_trackers/nine/nine_ff.c +++ b/src/gallium/state_trackers/nine/nine_ff.c @@ -2138,7 +2138,7 @@ nine_ff_prune_vs(struct NineDevice9 *device) { struct nine_context *context = &device->context; - if (device->ff.num_vs > 100) { + if (device->ff.num_vs > 1024) { /* could destroy the bound one here, so unbind */ context->pipe->bind_vs_state(context->pipe, NULL); util_hash_table_foreach(device->ff.ht_vs, nine_ff_ht_delete_cb, NULL); @@ -2152,7 +2152,7 @@ nine_ff_prune_ps(struct NineDevice9 *device) { struct nine_context *context = &device->context; - if (device->ff.num_ps > 100) { + if (device->ff.num_ps > 1024) { /* could destroy the bound one here, so unbind */ context->pipe->bind_fs_state(context->pipe, NULL); util_hash_table_foreach(device->ff.ht_ps, nine_ff_ht_delete_cb, NULL); |