diff options
| author | Nicolas James <Eele1Ephe7uZahRie@tutanota.com> | 2026-03-30 18:02:21 +1100 |
|---|---|---|
| committer | Nicolas James <Eele1Ephe7uZahRie@tutanota.com> | 2026-03-30 18:02:21 +1100 |
| commit | 7b17b60786d00c592f0ef18c8481148143baacbd (patch) | |
| tree | 42ea87f660b42149d805e25b38086c4da68d9a6e /src/layer_context.hh | |
| parent | 22f8e5196508c7075493c246edb9cb9cad097c45 (diff) | |
Add nvidia spoofing via LOW_LATENCY_LAYER_SPOOF_NVIDIA=1
Diffstat (limited to 'src/layer_context.hh')
| -rw-r--r-- | src/layer_context.hh | 11 |
1 files changed, 11 insertions, 0 deletions
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<void*, std::shared_ptr<Context>> contexts; bool should_expose_reflex = false; + bool should_spoof_nvidia = false; public: LayerContext(); |
