Created
October 23, 2019 23:19
-
-
Save anarsoul/0705b66043ee0bf3f0a2a94b3d1ec2ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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