[vk, qcom] Extending GetTotalPipelineWorker resources.

This commit is contained in:
CamilleLaVey 2025-12-01 05:03:17 -04:00 committed by Caio Oliveira
parent 822d485e18
commit 49894f3897
No known key found for this signature in database
GPG key ID: AAAE6C7FD4186B0C

View file

@ -318,8 +318,9 @@ size_t GetTotalPipelineWorkers() {
const size_t max_core_threads =
std::max<size_t>(static_cast<size_t>(std::thread::hardware_concurrency()), 2ULL) - 1ULL;
#ifdef ANDROID
// Leave at least a few cores free in android
constexpr size_t free_cores = 3ULL;
// Leave at least a few cores free on Android; reserve two instead of three so
// pipeline compilation can consume one more worker thread for testing.
constexpr size_t free_cores = 2ULL;
if (max_core_threads <= free_cores) {
return 1ULL;
}