Skip to content

Instantly share code, notes, and snippets.

@anarsoul
Created October 23, 2019 23:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anarsoul/0705b66043ee0bf3f0a2a94b3d1ec2ab to your computer and use it in GitHub Desktop.
Save anarsoul/0705b66043ee0bf3f0a2a94b3d1ec2ab to your computer and use it in GitHub Desktop.
diff --git a/src/gallium/drivers/lima/lima_bo.c b/src/gallium/drivers/lima/lima_bo.c
index 22263ea0054..fb6aed5d118 100644
--- a/src/gallium/drivers/lima/lima_bo.c
+++ b/src/gallium/drivers/lima/lima_bo.c
@@ -174,8 +174,8 @@ lima_bo_cache_free_stale_bos(struct lima_screen *screen, time_t time)
{
list_for_each_entry_safe(struct lima_bo, entry,
&screen->bo_cache_time, time_list) {
- /* Free BOs that are sitting idle for longer than 5 seconds */
- if (time - entry->free_time > 6) {
+ /* Free BOs that are sitting idle for longer than 1 second */
+ if (time - entry->free_time > 2) {
lima_bo_cache_remove(entry);
lima_bo_free(entry);
} else
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment