0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-09-23 17:12:30 +00:00
Files
termux-packages/packages/mesa/0001-disable-multithreading-for-llvmpipe.patch
2023-10-24 13:53:46 +08:00

16 lines
553 B
Diff

Disable multithreading by default because it seems to introduce a significant
overhead when enabled.
--- a/src/gallium/drivers/llvmpipe/lp_screen.c
+++ b/src/gallium/drivers/llvmpipe/lp_screen.c
@@ -1092,6 +1092,9 @@
screen->num_threads = debug_get_num_option("LP_NUM_THREADS",
screen->num_threads);
screen->num_threads = MIN2(screen->num_threads, LP_MAX_THREADS);
+#if defined __ANDROID__
+ screen->num_threads = 0;
+#endif
lp_build_init(); /* get lp_native_vector_width initialised */