aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/host1x
diff options
context:
space:
mode:
authorlizzie <lizzie@eden-emu.dev>2026-05-30 21:59:10 +0200
committercrueter <crueter@eden-emu.dev>2026-05-30 21:59:10 +0200
commit7c32cf03a1ce2a88b5bda041a5aebc8405fe634d (patch)
tree8eabbb338cceebd7f018a7c442a304fd66c68adc /src/video_core/host1x
parentff7bbaea7db5a9a9528c1ef087d3a49a18931b52 (diff)
[core/core_timing] better MWAITX and WAITPKG delays (#3984)
This implements MWAITX and WAITPKG extensions (umonitor, mwait) for CPUs that support them. Reduces wait times and bypasses the timing stuff from the OS that is slow (windows notably). generally it should answer within 0.2 to 0.5 microsecs (since most requests wait for that long). Also does a general rework of static ctors and stuff Signed-off-by: lizzie <lizzie@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3984 Reviewed-by: MaranBr <maranbr@eden-emu.dev> Reviewed-by: crueter <crueter@eden-emu.dev>
Diffstat (limited to 'src/video_core/host1x')
-rw-r--r--src/video_core/host1x/vic.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/video_core/host1x/vic.cpp b/src/video_core/host1x/vic.cpp
index 906714cc16..bafbb0ed25 100644
--- a/src/video_core/host1x/vic.cpp
+++ b/src/video_core/host1x/vic.cpp
@@ -39,7 +39,7 @@ extern "C" {
#include "video_core/textures/decoders.h"
#if defined(ARCHITECTURE_x86_64)
-#include "common/x64/cpu_detect.h"
+#include "common/cpu_features.h"
#endif
#if defined(ARCHITECTURE_x86_64) \
@@ -55,9 +55,8 @@ namespace Tegra::Host1x {
namespace {
static bool HasSSE41() {
-#if defined(ARCHITECTURE_x86_64)
- static bool has_sse41 = Common::GetCPUCaps().sse4_1;
- return has_sse41;
+#ifdef ARCHITECTURE_x86_64
+ return Common::g_cpu_caps.sse4_1;
#else
return false;
#endif