From 7b17b60786d00c592f0ef18c8481148143baacbd Mon Sep 17 00:00:00 2001 From: Nicolas James Date: Mon, 30 Mar 2026 18:02:21 +1100 Subject: Add nvidia spoofing via LOW_LATENCY_LAYER_SPOOF_NVIDIA=1 --- src/layer_context.hh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/layer_context.hh') diff --git a/src/layer_context.hh b/src/layer_context.hh index 731b273..4979379 100644 --- a/src/layer_context.hh +++ b/src/layer_context.hh @@ -52,11 +52,22 @@ class LayerContext final : public Context { // provided instead of VK_AMD_anti_lag. static constexpr auto EXPOSE_REFLEX_ENV = "LOW_LATENCY_LAYER_EXPOSE_REFLEX"; + // If this is not null and set to 1 then the card's vendor and id will be + // spoofed to appear as a NVIDIA card. + static constexpr auto SPOOF_NVIDIA_ENV = "LOW_LATENCY_LAYER_SPOOF_NVIDIA"; + + public: + // Constants for spoofing. + static constexpr auto NVIDIA_VENDOR_ID = 0x10DE; + static constexpr auto NVIDIA_DEVICE_ID = 0x2B85; // 5090 + static constexpr auto NVIDIA_DEVICE_NAME = "NVIDIA GeForce RTX 5090"; + public: std::mutex mutex; std::unordered_map> contexts; bool should_expose_reflex = false; + bool should_spoof_nvidia = false; public: LayerContext(); -- cgit v1.2.3