diff options
| author | Omar Mahboubi <166836773+omar-mahboubi@users.noreply.github.com> | 2026-10-30 15:04:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-10-30 15:04:05 +0100 |
| commit | 5d7b3b0abd4883394edc3d656e08d66067bfa5bd (patch) | |
| tree | 4247cabf4448fc2d08df21f2fd6316840bc06b03 /src/video_core/gpu_split.cpp | |
| parent | 6e7edd7462325ee18a0db6fdc29ff7698ac108cc (diff) | |
| parent | 9ad01b60c8cefe0bb2d91eabf67cf54a1eeeb92c (diff) | |
Merge pull request #37 from givethesourceplox/nx2-arm64-spin-hint
video_core: arm64 spin hint in the GPU split
Diffstat (limited to 'src/video_core/gpu_split.cpp')
| -rw-r--r-- | src/video_core/gpu_split.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/video_core/gpu_split.cpp b/src/video_core/gpu_split.cpp index f913ca82ce..2bc8e29470 100644 --- a/src/video_core/gpu_split.cpp +++ b/src/video_core/gpu_split.cpp @@ -34,12 +34,14 @@ void Pause() { _mm_pause(); #elif defined(__x86_64__) || defined(__i386__) __builtin_ia32_pause(); +#elif defined(__aarch64__) + asm volatile("yield"); #else std::this_thread::yield(); #endif } -std::atomic<u32> g_back_thread_id{}; +[[maybe_unused]] std::atomic<u32> g_back_thread_id{}; std::atomic<bool> g_back_busy{}; } // Anonymous namespace |
