From db4c960a3b3bf288ce92414df707c1afc2154ce2 Mon Sep 17 00:00:00 2001 From: hoholee12 Date: Tue, 25 Jul 2023 15:52:59 +0900 Subject: [PATCH] Root user gets proper privilege --- rpcs3/Emu/CPU/CPUThread.cpp | 2 -- rpcs3/Emu/RSX/GL/GLPipelineCompiler.cpp | 4 +--- rpcs3/Emu/RSX/VK/VKPipelineCompiler.cpp | 2 -- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/rpcs3/Emu/CPU/CPUThread.cpp b/rpcs3/Emu/CPU/CPUThread.cpp index 74f3f1e0bc..dd26620ab1 100644 --- a/rpcs3/Emu/CPU/CPUThread.cpp +++ b/rpcs3/Emu/CPU/CPUThread.cpp @@ -479,8 +479,6 @@ namespace cpu_counter void cpu_thread::operator()() { - thread_ctrl::scoped_priority stock_prio(0); - const auto old_prefix = g_tls_log_prefix; g_tls_this_thread = this; diff --git a/rpcs3/Emu/RSX/GL/GLPipelineCompiler.cpp b/rpcs3/Emu/RSX/GL/GLPipelineCompiler.cpp index 19dc24f81d..62576fc8ac 100644 --- a/rpcs3/Emu/RSX/GL/GLPipelineCompiler.cpp +++ b/rpcs3/Emu/RSX/GL/GLPipelineCompiler.cpp @@ -37,9 +37,7 @@ namespace gl } void pipe_compiler::operator()() - { - thread_ctrl::scoped_priority stock_prio(0); - + { while (thread_ctrl::state() != thread_state::aborting) { for (auto&& job : m_work_queue.pop_all()) diff --git a/rpcs3/Emu/RSX/VK/VKPipelineCompiler.cpp b/rpcs3/Emu/RSX/VK/VKPipelineCompiler.cpp index c34efeb7ae..f83d564393 100644 --- a/rpcs3/Emu/RSX/VK/VKPipelineCompiler.cpp +++ b/rpcs3/Emu/RSX/VK/VKPipelineCompiler.cpp @@ -32,8 +32,6 @@ namespace vk void pipe_compiler::operator()() { - thread_ctrl::scoped_priority stock_prio(0); - while (thread_ctrl::state() != thread_state::aborting) { for (auto&& job : m_work_queue.pop_all())